]> git.eshelyaron.com Git - emacs.git/commitdiff
Default mbox "From " time zone to -0000
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Dec 2022 05:27:45 +0000 (21:27 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Dec 2022 05:32:15 +0000 (21:32 -0800)
* 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

index c1371308d4fde8f9bd2c8630cbcaf22ad15eb3da..18f980df975dff0f7e7c72acbc1568c8a608f067 100644 (file)
@@ -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.