about summary refs log tree commit diff stats
path: root/commands/global.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2021-12-30 10:25:09 +0100
committerRobin Jarry <robin@jarry.cc>2022-01-07 13:45:34 +0100
commitb19b844a6326793f078b4a03eaf63ca96528796e (patch)
tree06fdd642c321347d0b30a5ce4def17851fbd18bf /commands/global.go
parent69d4e3895fd15f292036320d27bbe9b83651bb78 (diff)
downloadaerc-b19b844a6326793f078b4a03eaf63ca96528796e.tar.gz
pgp: PGP/MIME encryption for outgoing emails
implements PGP/MIME encryption with go-pgpmail. The Encrypt() function of
go-pgpmail requires a list of public keys which are taken from the
keystore. The keystore is searched for the email addresses of all
recipients (to, cc, and bcc).
If you want to be able to read the encrypted email afterwards, add
yourself as a recipient in either to, cc, or bcc as well.

Public keys can be exported from gpg into aerc as follows:
$ gpg --export  >> ~/.local/share/aerc/keyring.asc

When composing a message, the encryption is enabled with the
":encrypt" command. This sets a bool flag in the Composer struct.
A reapted application of this command will toggle the flag.
The encrypted message can also be signed by using the ":sign"
command before or after ":encrypt".

References: https://todo.sr.ht/~rjarry/aerc/6
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'commands/global.go')
0 files changed, 0 insertions, 0 deletions
/a> 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198