Commit graph

34 commits

Author SHA1 Message Date
Julian Schacher
07ef29225e remove the exclude arg and instead have the revs and notes args be opt.
And then only act on notes/revisions, if the relevant argument got
specified.
This makes the CLI cleaner.
2024-12-09 18:27:53 +01:00
Julian Schacher
4bee60b8dd include date header in mail as some mail servers require that 2024-12-09 18:27:53 +01:00
Julian Schacher
1911694baf only login to SMTP server, if username and password set 2024-12-09 18:27:53 +01:00
Julian Schacher
48ba4ef7ca add logic for removing deleted notes from users histories 2024-12-02 19:49:08 +01:00
Julian Schacher
b471bbd4d3 switch to another postgresql python library (from pgsql to psycopg)
Switch to a library which is more well-known.
I also thought the library was the problem for not being able to
template in a JSON path, but that is just a PostgreSQL problem it seems.
2024-12-02 19:49:05 +01:00
Julian Schacher
62cd667db5 add option for excluding notes or revisions from the action
This is useful, if one just wants to either expire notes or revisions.
2024-11-25 19:02:19 +01:00
Julian Schacher
86e03c0d4e make docker image build work
- Depend on a python version Debian actually ships with in
  pyproject.toml and update the poetry.lock accordingly.
- Fix poetry bundle complaining about no python by installing
  python-is-python3.
  Also remove the python flag for poetry bundle then.
2024-11-25 17:50:55 +01:00
4abb4d7516 Try the new runner
All checks were successful
docker-image / docker (push) Successful in 5m42s
2024-07-21 14:42:25 +02:00
cecad168d0 Improve email encoding
All checks were successful
docker-image / docker (push) Successful in 3m28s
2024-06-07 14:40:54 +02:00
e0439dc667 Use correct quotes
All checks were successful
docker-image / docker (push) Successful in 6m4s
2024-06-04 19:05:19 +02:00
d72f7d7b10 properly encode UTF-8
All checks were successful
docker-image / docker (push) Successful in 3m38s
2024-06-04 18:58:35 +02:00
7a367cd8de use correct to address in log message
Some checks failed
docker-image / docker (push) Has been cancelled
2024-06-04 18:56:09 +02:00
89b0659cba Send report with emailcheck
All checks were successful
docker-image / docker (push) Successful in 3m26s
2024-05-25 13:35:09 +02:00
5fc42907e3 Add a success indication
All checks were successful
docker-image / docker (push) Successful in 3m20s
Also document the command.
2024-05-25 12:34:29 +02:00
1fc917bdf5 Report SMTP error with more info
All checks were successful
docker-image / docker (push) Successful in 3m38s
2024-05-25 12:21:29 +02:00
5d950facab Add a command to test the email config with
All checks were successful
docker-image / docker (push) Successful in 4m3s
2024-05-25 11:52:26 +02:00
d73c5f8a52 Use options correctly
All checks were successful
docker-image / docker (push) Successful in 3m50s
The age for notes and revisions was swapped
2024-05-20 13:01:51 +02:00
5575cc9156 Ad cron functionality
All checks were successful
docker-image / docker (push) Successful in 3m27s
Refactor the code to get rid of global variables. Also improve the docs.
2024-05-20 12:09:04 +02:00
3c1a44c4ee Improve docs
All checks were successful
docker-image / docker (push) Successful in 3m41s
2024-05-19 12:35:42 +02:00
7eb261a945 Sort revisions to be expired more nicely
All checks were successful
docker-image / docker (push) Successful in 3m21s
2024-05-19 11:13:04 +02:00
5458f21624 Use correct variables
All checks were successful
docker-image / docker (push) Successful in 3m29s
2024-05-19 10:34:41 +02:00
bc25bfef80 Try my own runner
Some checks failed
docker-image / docker (push) Failing after 8s
2024-05-19 10:24:20 +02:00
077b1fd5ab Try my own runner
Some checks failed
docker-image / docker (push) Failing after 1m9s
2024-05-19 10:22:36 +02:00
b74873ae23 Small improvements
Some checks failed
docker-image / docker (push) Failing after 5s
2024-05-19 00:34:36 +02:00
5c37e0a2b4 Try just docker
Some checks failed
docker-image / docker (push) Failing after 5s
2024-05-18 22:52:04 +02:00
06522af002 Try setting the image explicitly
Some checks failed
docker-image / docker (push) Failing after 58s
2024-05-18 22:45:20 +02:00
0f13bf4df4 First stab at pipeline to build the image
Some checks are pending
docker-image / docker (push) Waiting to run
2024-05-18 22:14:25 +02:00
39168e2aa9 Set default for revisions to 14 days 2024-05-18 22:04:57 +02:00
359f308104 Extract email from profile if necessary 2024-05-18 21:24:25 +02:00
9bc4278c82 use correct columns 2024-05-18 21:05:00 +02:00
7c4cb94ea8 improve docs 2024-05-18 19:19:06 +02:00
5cde4ac06b Also report note URL for revision check 2024-05-18 18:59:41 +02:00
a9d7f142e7 Build an image and add it to compose 2024-05-18 18:56:22 +02:00
56641f66d5 first version of the script 2024-05-18 18:31:30 +02:00