diff options
author | witcher <witcher@wiredspace.de> | 2023-03-02 21:50:32 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-03-02 22:09:11 +0100 |
commit | f28235b9f785bf9fee311d6229c5ca70bb7cb264 (patch) | |
tree | 908cea1b512841faf1b715a370b928e7fc9a6f65 /widgets/selector.go | |
parent | 58ca92bcd872e3114c9261819aae6118ea267d63 (diff) | |
download | aerc-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 'widgets/selector.go')
0 files changed, 0 insertions, 0 deletions