sender's user id to the recipients list if `pgg-encrypt-for-me' is
specified.
* pgg-def.el (pgg-encrypt-for-me): New user option.
:group 'pgg
:type 'string)
+(defcustom pgg-encrypt-for-me nil
+ "Encrypt all outgoing messages with user's public key."
+ :group 'pgg
+ :type 'boolean)
+
(defvar pgg-status-buffer " *PGG status*")
(defvar pgg-errors-buffer " *PGG errors*")
(defvar pgg-output-buffer " *PGG output*")
(mapcar (lambda (rcpt)
(list "--remote-user"
(concat "\"" rcpt "\"")))
- recipients))))))
+ (append recipients
+ (if pgg-encrypt-for-me
+ (list pgg-gpg-user-id)))))))
+ ))
(pgg-as-lbt start end 'CRLF
(pgg-gpg-process-region start end nil pgg-gpg-program args)
)
"+language=us" "-fate"
,@(if recipients
(mapcar (lambda (rcpt) (concat "\"" rcpt "\""))
- recipients)))))
+ (append recipients
+ (if pgg-encrypt-for-me
+ (list pgg-pgp-user-id))))))
+ ))
(pgg-pgp-process-region start end nil
pgg-pgp-program args)
(pgg-process-when-success nil)
(mapcar (lambda (rcpt)
(list "-r"
(concat "\"" rcpt "\"")))
- recipients))))))
+ (append recipients
+ (if pgg-encrypt-for-me
+ (list pgg-pgp5-user-id)))))))
+ ))
(pgg-pgp5-process-region start end nil
pgg-pgp5-pgpe-program args)
(pgg-process-when-success nil)