From ace19d2963e8ddbda0eabdac1ccd6c6845625a0a Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Mon, 9 Oct 2000 13:34:14 +0000 Subject: [PATCH] critical fix for #12392: "Always encrypt to self" doesn't work with GnuPG. Tested by submitter and okay'ed by Don. svn path=/trunk/kdenetwork/kmail/; revision=66943 --- kpgpbase.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kpgpbase.cpp b/kpgpbase.cpp index 27c9b1254..8f2840a50 100644 --- a/kpgpbase.cpp +++ b/kpgpbase.cpp @@ -391,8 +391,11 @@ KpgpBaseG::encsign(const QStrList *_recipients, const char *passphrase, cmd += "\" "; ++it; } - if(flagEncryptToSelf) - cmd += " --default-recipient-self"; + } + if(flagEncryptToSelf) { + cmd += " --recipient \""; + cmd += user(); + cmd += "\" "; } cmd += " --set-filename stdin ";