diff options
| author | Jeffrey C Honig | 2007-08-19 21:17:59 +0000 |
|---|---|---|
| committer | Jeffrey C Honig | 2007-08-19 21:17:59 +0000 |
| commit | 2001ba38f6d4fe433c69dcf512bbc3433f7f300b (patch) | |
| tree | 4176594a2dbf5ff45314da92068a4151d6ecc94d | |
| parent | 243256f81319ffd8dc3fb61e969efde40c2e9bd1 (diff) | |
| download | emacs-2001ba38f6d4fe433c69dcf512bbc3433f7f300b.tar.gz emacs-2001ba38f6d4fe433c69dcf512bbc3433f7f300b.zip | |
(mh-mml-to-mime): GPG requires e-mail addresses, not
aliases. So resolve aliases before passing addresses to GPG/PGP.
Closes SF #649226.
| -rw-r--r-- | lisp/mh-e/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/mh-e/mh-mime.el | 18 |
2 files changed, 20 insertions, 2 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 72f39b2c361..c865fea9f9a 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2007-08-19 Jeffrey C Honig <jch@honig.net> | 1 | 2007-08-19 Jeffrey C Honig <jch@honig.net> |
| 2 | 2 | ||
| 3 | * mh-mime.el (mh-mml-to-mime): GPG requires e-mail addresses, not | ||
| 4 | aliases. So resolve aliases before passing addresses to GPG/PGP. | ||
| 5 | Closes SF #649226. | ||
| 6 | |||
| 3 | * mh-e.el (mh-invisible-header-fields-internal): Update with all | 7 | * mh-e.el (mh-invisible-header-fields-internal): Update with all |
| 4 | the entries from | 8 | the entries from |
| 5 | http://people.dsv.su.se/~jpalme/ietf/mail-headers, plus some of my | 9 | http://people.dsv.su.se/~jpalme/ietf/mail-headers, plus some of my |
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el index 4b10ad18592..eefaa0ed8ac 100644 --- a/lisp/mh-e/mh-mime.el +++ b/lisp/mh-e/mh-mime.el | |||
| @@ -1621,8 +1621,22 @@ encoding if you wish by running this command. | |||
| 1621 | This action can be undone by running \\[undo]." | 1621 | This action can be undone by running \\[undo]." |
| 1622 | (interactive) | 1622 | (interactive) |
| 1623 | (require 'message) | 1623 | (require 'message) |
| 1624 | (when mh-pgp-support-flag ;; This is only needed for PGP | 1624 | (when mh-pgp-support-flag |
| 1625 | (message-options-set-recipient)) | 1625 | ;; PGP requires actual e-mail addresses, not aliases. |
| 1626 | ;; Parse the recipients and sender from the message | ||
| 1627 | (message-options-set-recipient) | ||
| 1628 | ;; Do an alias lookup on sender | ||
| 1629 | (message-options-set 'message-sender | ||
| 1630 | (mail-strip-quoted-names | ||
| 1631 | (mh-alias-expand | ||
| 1632 | (message-options-get 'message-sender)))) | ||
| 1633 | ;; Do an alias lookup on recipients | ||
| 1634 | (message-options-set 'message-recipients | ||
| 1635 | (mapconcat | ||
| 1636 | '(lambda (ali) | ||
| 1637 | (mail-strip-quoted-names (mh-alias-expand ali))) | ||
| 1638 | (split-string (message-options-get 'message-recipients) "[, ]+") | ||
| 1639 | ", "))) | ||
| 1626 | (let ((saved-text (buffer-string)) | 1640 | (let ((saved-text (buffer-string)) |
| 1627 | (buffer (current-buffer)) | 1641 | (buffer (current-buffer)) |
| 1628 | (modified-flag (buffer-modified-p))) | 1642 | (modified-flag (buffer-modified-p))) |