* mime-edit.el (mime-edit-encrypt-pgp-mime): Added Version tag for
pgp-encrypted messages to comply with RFC3156.
+ * mime-edit.el (mime-edit-pgp-enclose-buffer): Sign and encrypt
+ pgp message in conformance to RFC3156.
2010-01-25 Harald Judt <h.judt@gmx.at>
(match-end 0)
)))
)
- (if beg
- (dolist (pgp-processing mime-edit-pgp-processing)
- (case pgp-processing
- (sign
- (mime-edit-enclose-pgp-signed-region
- beg (point-max))
- )
- (encrypt
- (mime-edit-enclose-pgp-encrypted-region
- beg (point-max))
- )))
+ (when beg
+ (if (memq 'sign mime-edit-pgp-processing)
+ (mime-edit-enclose-pgp-signed-region beg (point-max)))
+ (if (memq 'encrypt mime-edit-pgp-processing)
+ (mime-edit-enclose-pgp-encrypted-region beg (point-max)))
)))
-
;;; @ split
;;;