aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2022-12-29 21:27:45 -0800
committerPaul Eggert2022-12-29 21:32:15 -0800
commitd11e34ce76aac8680337f247419657e042e4cf34 (patch)
tree6b8d65f635b9eb7068adc013efa8676c45261829
parent73769dc2b872441eb0b8565e1090e97fc0b5d521 (diff)
downloademacs-d11e34ce76aac8680337f247419657e042e4cf34.tar.gz
emacs-d11e34ce76aac8680337f247419657e042e4cf34.zip
Default mbox "From " time zone to -0000
* lisp/mail/rmailout.el (rmail-nuke-pinhead-header): Default the time zone to "-0000" instead of "EST", as "-0000" is the RFC-2822-and-later standard for unknown time zones.
-rw-r--r--lisp/mail/rmailout.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el
index c1371308d4f..18f980df975 100644
--- a/lisp/mail/rmailout.el
+++ b/lisp/mail/rmailout.el
@@ -327,15 +327,14 @@ Replaces the From line with a \"Mail-from\" header. Adds \"Date\" and
327 "Date: \\2, \\4 \\3 \\9 \\5 " 327 "Date: \\2, \\4 \\3 \\9 \\5 "
328 328
329 ;; The timezone could be matched by group 7 or group 10. 329 ;; The timezone could be matched by group 7 or group 10.
330 ;; If neither of them matched, assume EST, since only 330 ;; If neither matched, use "-0000" for an unknown zone.
331 ;; Easterners would be so sloppy.
332 ;; It's a shame the substitution can't use "\\10". 331 ;; It's a shame the substitution can't use "\\10".
333 (cond 332 (cond
334 ((/= (match-beginning 7) (match-end 7)) "\\7") 333 ((/= (match-beginning 7) (match-end 7)) "\\7")
335 ((/= (match-beginning 10) (match-end 10)) 334 ((/= (match-beginning 10) (match-end 10))
336 (buffer-substring (match-beginning 10) 335 (buffer-substring (match-beginning 10)
337 (match-end 10))) 336 (match-end 10)))
338 (t "EST")) 337 (t "-0000"))
339 "\n")) 338 "\n"))
340 ;; Keep and reformat the sender if we don't 339 ;; Keep and reformat the sender if we don't
341 ;; have a From: field. 340 ;; have a From: field.