fdb36624
email: properly set headers if no PGP configured
If neither the instance nor the recipient has a PGP key, the codepath (correctly) sets the message body to the plain text but uses a fresh set of headers, so all configured headers get dropped, including subject and from. While the service is certainly intended to be run with PGP configured it makes sense to keep this option reasonably functional for testing and development purposes. This commit fixes the issue by initializing the header set to the already configured headers if neither encryption nor signing is used.
Conrad Hoffmann <ch@bitfehler.net> — 2026-05-19 12:59:00 UTC
Commit fdb3662452dcb530963439b098a13816ef38ea6d —
view raw patch
Parent(s):
ff38670c
| File | Status | + | − |
|---|---|---|---|
email/worker.go
|
M | +5 | -3 |