diff options
| author | Richard M. Stallman | 1994-01-29 23:56:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-29 23:56:27 +0000 |
| commit | 1de48e7f1f95cb54d3981ecd1087a8bb5982004e (patch) | |
| tree | f8a7aaef8d0d20921dd8172ce3b897e5b029317e | |
| parent | e58077c89313edd673379fa6bd540d0416e53561 (diff) | |
| download | emacs-1de48e7f1f95cb54d3981ecd1087a8bb5982004e.tar.gz emacs-1de48e7f1f95cb54d3981ecd1087a8bb5982004e.zip | |
(rmail-make-in-reply-to-field): Discard text properties from
the address before printing it.
| -rw-r--r-- | lisp/mail/rmail.el | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index bd788b78d8d..b496102a57a 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -1789,11 +1789,15 @@ use \\[mail-yank-original] to yank the original message into it." | |||
| 1789 | ;; Message-ID is sufficiently informative | 1789 | ;; Message-ID is sufficiently informative |
| 1790 | message-id | 1790 | message-id |
| 1791 | (concat message-id " (" tem ")")) | 1791 | (concat message-id " (" tem ")")) |
| 1792 | ;; Use prin1 to fake RFC822 quoting | 1792 | ;; Copy TEM, discarding text properties. |
| 1793 | (let ((field (prin1-to-string tem))) | 1793 | (setq tem (copy-sequence tem)) |
| 1794 | (if date | 1794 | (set-text-properties 0 (length tem) nil tem) |
| 1795 | (concat field "'s message of " date) | 1795 | (setq tem (copy-sequence tem)) |
| 1796 | field))))) | 1796 | ;; Use prin1 to fake RFC822 quoting |
| 1797 | (let ((field (prin1-to-string tem))) | ||
| 1798 | (if date | ||
| 1799 | (concat field "'s message of " date) | ||
| 1800 | field))))) | ||
| 1797 | ((let* ((foo "[^][\000-\037\177-\377()<>@,;:\\\" ]+") | 1801 | ((let* ((foo "[^][\000-\037\177-\377()<>@,;:\\\" ]+") |
| 1798 | (bar "[^][\000-\037\177-\377()<>@,;:\\\"]+")) | 1802 | (bar "[^][\000-\037\177-\377()<>@,;:\\\"]+")) |
| 1799 | ;; Can't use format because format loses on \000 (unix *^&%*^&%$!!) | 1803 | ;; Can't use format because format loses on \000 (unix *^&%*^&%$!!) |