aboutsummaryrefslogtreecommitdiffstats
path: root/app/compose.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/compose.go')
-rw-r--r--app/compose.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/compose.go b/app/compose.go
index 6cdc3458..469f3c36 100644
--- a/app/compose.go
+++ b/app/compose.go
@@ -947,6 +947,15 @@ func (c *Composer) WriteMessage(header *mail.Header, writer io.Writer) error {
if err != nil {
return err
}
+
+ if c.acct.acct.PgpSelfEncrypt {
+ signer, err := c.Signer()
+ if err != nil {
+ return err
+ }
+ rcpts = append(rcpts, signer)
+ }
+
cleartext, err = CryptoProvider().Encrypt(&buf, rcpts, signer, DecryptKeys, header)
if err != nil {
return err