ffd5f08ad9
Make PGP message recognition more thorough
2023-05-08 22:17:02 +02:00
5e408259c0
Start using Content Manager
...
Also:
- Pass text to Popen in GnuPG (used to be bytes).
- Make is_payload_pgp_inline type-agnostic (str / bytes).
2023-05-08 22:17:01 +02:00
1cdca1d06d
Log up to 2,5kB of message headers
2023-05-08 22:14:24 +02:00
53378b516e
Add a test for message with PGP inline markers that's not encrypted
...
If a user mentions PGP markers inside their message, we should not classify it
as already encrypted.
2022-10-22 21:29:59 +02:00
fc85cdb841
Rework PGP-Inline verification/recognition
2022-10-22 19:58:16 +02:00
5f601fa50c
Implement a basic KeyCache
2022-10-19 18:36:23 +00:00
ddcef93abb
Fix a bug introduced by refactoring, clean up code
...
- Fix certificate retrieval.
- Store recipients within MailOperation objects.
- Log more information.
- Fix some warnings.
2022-10-19 18:36:23 +00:00
ce2e55e90c
Change indentation from tabs to 4 spaces
2022-10-19 18:36:23 +00:00
c86c620668
Extract delimiter support, add unit tests
...
Also: fix recursive call to get_cert_for_email.
2022-06-07 22:14:32 +02:00
937046eb17
Use CRLF for line-endings
...
Mail RFCs use CRLF for line endings and it turns out things may break in
strange ways if only LF is used.
2022-06-02 19:56:32 +02:00
46be24670c
Fix charset resolution in Content-Type parser
2022-06-01 23:44:41 +02:00
d3b1717290
Extract PGP/INLINE checks, remove unnecessary byte-check
2022-06-01 23:00:05 +02:00
4c6fdc52ec
Check mandatory config early, add tests
...
Also: extend failover logging configuration with file-based handler to make
sure that the user gets _some_ logs even if they do not configure Lacre at
all.
2022-05-31 22:09:10 +02:00