aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/unrmail.el20
1 files changed, 15 insertions, 5 deletions
diff --git a/lisp/mail/unrmail.el b/lisp/mail/unrmail.el
index 9d1717368bd..8fb15f1813c 100644
--- a/lisp/mail/unrmail.el
+++ b/lisp/mail/unrmail.el
@@ -184,11 +184,21 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
184 (setq mail-from 184 (setq mail-from
185 (or (mail-fetch-field "Mail-From") 185 (or (mail-fetch-field "Mail-From")
186 (concat "From " 186 (concat "From "
187 (mail-strip-quoted-names (or (mail-fetch-field "from") 187 (mail-strip-quoted-names
188 (mail-fetch-field "really-from") 188 (or (mail-fetch-field "from")
189 (mail-fetch-field "sender") 189 (mail-fetch-field "really-from")
190 "unknown")) 190 (mail-fetch-field "sender")
191 " " (current-time-string)))) 191 "unknown"))
192 " "
193 (let ((date (mail-fetch-field "date")))
194 (or
195 (and date
196 (setq date
197 (ignore-errors
198 (format-time-string
199 "%a %b %e %T %Y"
200 (date-to-time date)))))
201 (current-time-string))))))
192 202
193 ;; If the message specifies a coding system, use it. 203 ;; If the message specifies a coding system, use it.
194 (let ((maybe-coding (mail-fetch-field "X-Coding-System"))) 204 (let ((maybe-coding (mail-fetch-field "X-Coding-System")))