aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
authorEli Zaretskii2002-02-02 16:54:59 +0000
committerEli Zaretskii2002-02-02 16:54:59 +0000
commitf04f5c7689cdbb0cb6a89bb75dcb064d64512cf0 (patch)
treef066ac5cc24c97f15720970f33e6e92a07eae8f9 /lisp/mail
parentd54f26b13e909a86a5a442ea30971e7d369f7452 (diff)
downloademacs-f04f5c7689cdbb0cb6a89bb75dcb064d64512cf0.tar.gz
emacs-f04f5c7689cdbb0cb6a89bb75dcb064d64512cf0.zip
(uce-reply-to-uce): Prune the headers before copying
the message text into the *mail* buffer, and restore the pruned state after that.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/uce.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/mail/uce.el b/lisp/mail/uce.el
index 3d11b7f8482..8b86dc68dc2 100644
--- a/lisp/mail/uce.el
+++ b/lisp/mail/uce.el
@@ -222,10 +222,15 @@ address, and postmaster of the mail relay used."
222 (cond ((eq uce-mail-reader 'gnus) gnus-original-article-buffer) 222 (cond ((eq uce-mail-reader 'gnus) gnus-original-article-buffer)
223 ((eq uce-mail-reader 'rmail) "RMAIL") 223 ((eq uce-mail-reader 'rmail) "RMAIL")
224 (t (error 224 (t (error
225 "Variable uce-mail-reader set to unrecognized value"))))) 225 "Variable uce-mail-reader set to unrecognized value"))))
226 (full-header-p (and (eq uce-mail-reader 'rmail)
227 (not (rmail-msg-is-pruned)))))
226 (or (get-buffer message-buffer) 228 (or (get-buffer message-buffer)
227 (error (concat "No buffer " message-buffer ", cannot find UCE"))) 229 (error (concat "No buffer " message-buffer ", cannot find UCE")))
228 (switch-to-buffer message-buffer) 230 (switch-to-buffer message-buffer)
231 ;; We need the message with headers pruned.
232 (if full-header-p
233 (rmail-toggle-header 1))
229 (let ((to (mail-strip-quoted-names (mail-fetch-field "from" t))) 234 (let ((to (mail-strip-quoted-names (mail-fetch-field "from" t)))
230 (reply-to (mail-fetch-field "reply-to")) 235 (reply-to (mail-fetch-field "reply-to"))
231 temp) 236 temp)
@@ -254,6 +259,9 @@ address, and postmaster of the mail relay used."
254 (rmail-maybe-set-message-counters) 259 (rmail-maybe-set-message-counters)
255 (copy-region-as-kill (rmail-msgbeg rmail-current-message) 260 (copy-region-as-kill (rmail-msgbeg rmail-current-message)
256 (rmail-msgend rmail-current-message)))))) 261 (rmail-msgend rmail-current-message))))))
262 ;; Restore the pruned header state we found.
263 (if full-header-p
264 (rmail-toggle-header 0))
257 (switch-to-buffer "*mail*") 265 (switch-to-buffer "*mail*")
258 (erase-buffer) 266 (erase-buffer)
259 (setq temp (point)) 267 (setq temp (point))