mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
Handle encrypting mime parts
* epa-mail.el (epa-mail-encrypt): Insert any encoded mime parts that are queued up to insert before sending the message.
This commit is contained in:
parent
0fac3f5532
commit
e6aab30128
@ -243,6 +243,11 @@ If no one is selected, symmetric encryption will be performed. "
|
||||
(setq epa-last-coding-system-specified
|
||||
(or coding-system-for-write
|
||||
(select-safe-coding-system (point) (point-max)))))
|
||||
|
||||
;; Insert contents of requested attachments, if any.
|
||||
(when (and (eq major-mode 'mail-mode) mail-encode-mml)
|
||||
(mml-to-mime)
|
||||
(setq mail-encode-mml nil))
|
||||
|
||||
;; Don't let some read-only text stop us from encrypting.
|
||||
(let ((inhibit-read-only t))
|
||||
|
Loading…
Reference in New Issue
Block a user