diff options
Diffstat (limited to 'pith/send.c')
-rw-r--r-- | pith/send.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pith/send.c b/pith/send.c index bd99d49a..4620d1aa 100644 --- a/pith/send.c +++ b/pith/send.c @@ -1768,12 +1768,12 @@ call_mailer(METAENV *header, struct mail_bodystruct *body, char **alt_smtp_serve result = 1; - if(ps_global->smime->do_encrypt) - result = encrypt_outgoing_message(header, &body); + if(ps_global->smime->do_sign) + result = sign_outgoing_message(header, &body, 0); /* need to free new body from encrypt if sign fails? */ - if(result && ps_global->smime->do_sign) - result = sign_outgoing_message(header, &body, ps_global->smime->do_encrypt); + if(result && ps_global->smime->do_encrypt) + result = encrypt_outgoing_message(header, &body); lmc.so = so; |