holger krekel
79a9d2345b
more tests and refinements
2024-07-16 10:34:08 +02:00
holger krekel
c4f46dc499
fix maildata handling after prematurely merging #369
2024-07-13 19:20:06 +02:00
Daniel Kahn Gillmor
c1fd573de2
Add tests for alternate mail subjects
2024-07-13 18:33:42 +02:00
Daniel Kahn Gillmor
c6b083472f
Accept encrypted messages that use hcp_minimal
...
in draft-ietf-lamps-header-protection-22, hcp_minimal recommends
"[...]" as the obscured Subject header. In the pending draft
-23 (hopefully released this week, going into a working group last
call), the same HCP will be renamed to hcp_baseline, but it still
recommends the use of "[...]" for the obscured Subject header.
2024-07-13 18:33:42 +02:00
link2xt
02df395dab
filtermail: do not inject addresses into fromat string
2024-07-13 11:46:49 +02:00
holger krekel
73e6f5e6da
apply last review suggestions
2024-07-10 19:20:51 +02:00
holger krekel
b7e6926880
changing newline-naming as suggested
2024-07-10 19:20:51 +02:00
holger krekel
a7ef6ee35b
don't use kwargs for overrides parameter
2024-07-10 19:20:51 +02:00
holger krekel
920e062293
let config.get_user_maildir return a Path
2024-07-10 19:20:51 +02:00
holger krekel
794a0608a1
Path-ify config.mailboxes_dir
2024-07-10 19:20:51 +02:00
holger krekel
fc09653de3
remove all occurences of hardcoded /home/vmail for database and mailbox dirs
2024-07-10 19:20:51 +02:00
holger krekel
c8661fd135
introduce "mailboxes_dir" config ini option to avoid hardcoding /home/vmail/mail/....
...
in source code and to improve testability.
2024-07-10 19:20:51 +02:00
holger krekel
4b0600a453
be a bit more lenient on keeping old users
2024-07-10 00:02:34 +02:00
holger krekel
f1c10cac2b
chunked deletion
2024-07-10 00:02:34 +02:00
holger krekel
af83ca0235
ensuring int-ness of last_login
2024-07-09 19:12:55 +02:00
holger krekel
8f6870ebb7
fix and streamline deletion test
2024-07-09 19:12:55 +02:00
holger krekel
0e8bdbd3e3
streamline address deletion test
2024-07-09 19:12:55 +02:00
holger krekel
0d593c22d1
apply code review and also catch "." as username
2024-07-09 19:12:55 +02:00
holger krekel
a1f0a3e23b
Apply suggestions from code review
...
Co-authored-by: link2xt <link2xt@testrun.org >
2024-07-09 19:12:55 +02:00
holger krekel
9b15d8de24
more precise test, streamline wording (accounts -> address)
2024-07-09 19:12:55 +02:00
holger krekel
66c7115cfc
run removal of inactive users daily
2024-07-09 19:12:55 +02:00
holger krekel
823386d824
delete inactive users works
2024-07-09 19:12:55 +02:00
holger krekel
433cb71211
basic remove-users functionality and tests
2024-07-09 19:12:55 +02:00
link2xt
62c60d3070
doveauth: log when a new account is created
2024-07-09 00:24:06 +02:00
link2xt
4292355310
Add nonci_accounts metric
...
Calculating this with PromQL is not easy
due to interpolation.
Also add HELP and TYPE metadata for each metric.
2024-07-08 18:33:18 +00:00
holger krekel
3d96f0fdfa
Support iterating over all users with doveadm commands ( #344 )
2024-07-06 01:19:57 +00:00
link2xt
e948bdaea8
filtermail: do not allow ASCII armor without actual payload
...
Last line is removed as "optional checksum",
so it can contain anything.
Make sure that there is at least some actual payload
besides this line.
2024-07-03 19:36:07 +00:00
holger krekel
67be981176
make a more complete test
2024-06-27 15:36:39 +02:00
missytake
0b8402c187
doveauth: ensure username length
2024-06-27 15:36:39 +02:00
missytake
7c98c1f8c9
test: ensure minimum username length
2024-06-27 15:36:39 +02:00
link2xt
2b5d903cc5
Allow SKESK packets in encrypted mails
...
They are not used by Delta Chat now,
but this will allow to start using them in the future.
2024-06-13 19:48:59 +02:00
link2xt
c8d270a853
Check that OpenPGP has only PKESK and SEIPD packets ( #323 )
2024-06-12 17:21:37 +00:00
link2xt
72f4e9edbf
filtermail: remove support for unencrypted MDNs
...
Delta Chat does not send them since 1.43.
1.44 has been released for a while already
and 1.46 is in the process of being released.
2024-06-11 16:18:39 +00:00
link2xt
1ce0a2b0ba
Improve filtermail checks for encrypted messages
...
Ensure that first part only contains "Version: 1"
and second part only contains base64 payload
enclosed in "-----BEGIN PGP MESSAGE-----"
and "-----END PGP MESSAGE-----".
2024-06-11 16:18:39 +00:00
Christian Hagenest
772b86a4b5
update delete-mails-after value in test_config.py
2024-05-18 23:06:03 +02:00
Christian Hagenest
e0013b9bee
change delete_mails_after default to 20
2024-05-18 23:06:03 +02:00
link2xt
76b56d7b78
metadata: add support for /shared/vendor/deltachat/irohrelay
2024-05-07 15:52:54 +00:00
link2xt
879cffc056
Configure more lints and switch from black to ruff format
2024-05-06 14:41:00 +00:00
link2xt
e1b1a945b1
Authenticate echobot by passing /run/echobot/password to doveauth
2024-05-05 15:25:44 +00:00
link2xt
0493e27312
Move echobot into /var/lib/echobot
2024-05-05 15:25:44 +00:00
holger krekel
9b76d46558
refinements and fixes
2024-04-04 12:57:49 +02:00
holger krekel
cc4920ddc7
a bit of renaming
2024-04-04 12:57:49 +02:00
holger krekel
2af10175fa
ignore and remove .tmp files in notification_dir
2024-04-04 12:57:49 +02:00
holger krekel
ae455fa9e1
avoid float with time, and be safe against crashes during file writing
2024-04-04 12:57:49 +02:00
holger krekel
60d7e516dd
implemented suggestion fopr using an absolute deadline instead of retrying but choose 5 hours for now because if our own notification server is down/buggy we have at least a bit of time to fix it
2024-04-04 12:57:49 +02:00
holger krekel
bf18905e02
address typo-level review comments
2024-04-04 12:57:49 +02:00
holger krekel
4d6f520f18
finally use persistent queue items with random file names, simplifying the flows
2024-04-04 12:57:49 +02:00
holger krekel
9da626dfc8
proper doc string for Notifier
2024-04-04 12:57:49 +02:00
holger krekel
1cca9aa441
fix failing CI (uncovering real bug)
2024-04-04 12:57:49 +02:00
holger krekel
3d054847a0
split metadata and notifier into separate files
2024-04-04 12:57:49 +02:00