summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/sendmail.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 1de964cb349..d97eaa0946d 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -370,7 +370,7 @@ the user from the mailer."
(call-process "date" nil t nil)
(goto-char (point-min))
(re-search-forward
- "[0-9] \\([A-Za-z][A-Za-z ]*[A-Za-z]\\)[0-9 ]*$")
+ "[0-9] \\([A-Za-z][-A-Za-z ]*[A-Za-z]\\)[0-9 ]*$")
(setq timezone (buffer-substring (match-beginning 1) (match-end 1)))
(erase-buffer)
(insert "\nFrom " (user-login-name) " "