aboutsummaryrefslogtreecommitdiffstats
path: root/worker
diff options
context:
space:
mode:
authorwitcher <witcher@wiredspace.de>2023-03-02 21:50:32 +0100
committerRobin Jarry <robin@jarry.cc>2023-03-02 22:09:11 +0100
commitf28235b9f785bf9fee311d6229c5ca70bb7cb264 (patch)
tree908cea1b512841faf1b715a370b928e7fc9a6f65 /worker
parent58ca92bcd872e3114c9261819aae6118ea267d63 (diff)
downloadaerc-f28235b9f785bf9fee311d6229c5ca70bb7cb264.tar.gz
pgp: automatically determine signer from sender
This patch automatically determines the signing account from the sender of the email (i.e. the From email header). To reflect this in the compose view after changing the From field, the restriction in updateCrypto() to only run the update if the signing key is empty has been lifted, so the key always gets updated when calling updateCrypt(). Additionally, a Signer() method has been added to the Composer to avoid specifying the same logic twice; once in updateCrypto() and once in WriteMessage(). If the From header is not populated for any reason the Signer() method falls back to the from field specified in accounts.conf. Signed-off-by: witcher <witcher@wiredspace.de> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker')
0 files changed, 0 insertions, 0 deletions