Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
58400e4f
Commit
58400e4f
authored
Feb 03, 2009
by
Glenn Morris
Browse files
(unrmail): In the absence of Mail-from, prefer Date over current-time.
(Bug#2175)
parent
e18cc61c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/mail/unrmail.el
lisp/mail/unrmail.el
+15
-5
No files found.
lisp/ChangeLog
View file @
58400e4f
2009-02-03 Glenn Morris <rgm@gnu.org>
* mail/unrmail.el (unrmail): In the absence of Mail-from, prefer Date
over current-time. (Bug#2175)
* mail/rmail.el (rmail-convert-babyl-to-mbox): Disable undo while
inserting the converted mailbox.
(rmail-get-new-mail): Restore the loop over inboxes when two or more
...
...
lisp/mail/unrmail.el
View file @
58400e4f
...
...
@@ -184,11 +184,21 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
(
setq
mail-from
(
or
(
mail-fetch-field
"Mail-From"
)
(
concat
"From "
(
mail-strip-quoted-names
(
or
(
mail-fetch-field
"from"
)
(
mail-fetch-field
"really-from"
)
(
mail-fetch-field
"sender"
)
"unknown"
))
" "
(
current-time-string
))))
(
mail-strip-quoted-names
(
or
(
mail-fetch-field
"from"
)
(
mail-fetch-field
"really-from"
)
(
mail-fetch-field
"sender"
)
"unknown"
))
" "
(
let
((
date
(
mail-fetch-field
"date"
)))
(
or
(
and
date
(
setq
date
(
ignore-errors
(
format-time-string
"%a %b %e %T %Y"
(
date-to-time
date
)))))
(
current-time-string
))))))
;; If the message specifies a coding system, use it.
(
let
((
maybe-coding
(
mail-fetch-field
"X-Coding-System"
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment