[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d11e34ce76 3/7: Default mbox "From " time zone to -0000
From: |
Paul Eggert |
Subject: |
master d11e34ce76 3/7: Default mbox "From " time zone to -0000 |
Date: |
Fri, 30 Dec 2022 00:32:26 -0500 (EST) |
branch: master
commit d11e34ce76aac8680337f247419657e042e4cf34
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
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.
---
lisp/mail/rmailout.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el
index c1371308d4..18f980df97 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
"Date: \\2, \\4 \\3 \\9 \\5 "
;; The timezone could be matched by group 7 or group 10.
- ;; If neither of them matched, assume EST, since only
- ;; Easterners would be so sloppy.
+ ;; If neither matched, use "-0000" for an unknown zone.
;; It's a shame the substitution can't use "\\10".
(cond
((/= (match-beginning 7) (match-end 7)) "\\7")
((/= (match-beginning 10) (match-end 10))
(buffer-substring (match-beginning 10)
(match-end 10)))
- (t "EST"))
+ (t "-0000"))
"\n"))
;; Keep and reformat the sender if we don't
;; have a From: field.
- master updated (91ae9f3d12 -> 9153cf8158), Paul Eggert, 2022/12/30
- master 523261b454 6/7: Document calc-time-zone abbreviation obsolescence, Paul Eggert, 2022/12/30
- master 007e66bccb 5/7: Use RFC 822 abbrevs in sunrise-sunset strings, Paul Eggert, 2022/12/30
- master 8c13e84978 1/7: Fix newsticker timezone decode, Paul Eggert, 2022/12/30
- master 73769dc2b8 2/7: In cal-dst, be consistent re default to UTC, Paul Eggert, 2022/12/30
- master bc4cbbcc57 4/7: Add nndiary-headers obsolescence comment, Paul Eggert, 2022/12/30
- master d11e34ce76 3/7: Default mbox "From " time zone to -0000,
Paul Eggert <=
- master 9153cf8158 7/7: Avoid some obsolescent tz abbrevs in doc., Paul Eggert, 2022/12/30