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
88d03607
Commit
88d03607
authored
Jul 08, 2009
by
Chong Yidong
Browse files
* mail/unrmail.el (unrmail): Make sure the message ends with two
newlines (Bug#3769).
parent
ee047ec4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/mail/unrmail.el
lisp/mail/unrmail.el
+4
-0
No files found.
lisp/ChangeLog
View file @
88d03607
2009-07-08 E. Jay Berkenbilt <ejb@ql.org> (tiny change)
* mail/unrmail.el (unrmail): Make sure the message ends with two
newlines (Bug#3769).
2009-07-08 Glenn Morris <rgm@gnu.org>
* calendar/calendar.el (calendar-current-date): Rework previous change.
...
...
lisp/mail/unrmail.el
View file @
88d03607
...
...
@@ -232,6 +232,10 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
(
while
(
search-forward
"\nFrom "
nil
t
)
(
forward-char
-5
)
(
insert
?>
)))
;; Make sure the message ends with two newlines
(
goto-char
(
point-max
))
(
unless
(
looking-back
"\n\n"
)
(
insert
"\n"
))
;; Write it to the output file, suitably encoded.
(
let
((
coding-system-for-write
coding
))
(
write-region
(
point-min
)
(
point-max
)
to-file
t
...
...
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