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
d1cad408
Commit
d1cad408
authored
May 23, 1998
by
Richard M. Stallman
Browse files
(rmail-output-body-to-file): Avoid error if message has no subject.
Use and set rmail-default-body-file.
parent
966fbd00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
lisp/mail/rmailout.el
lisp/mail/rmailout.el
+12
-6
No files found.
lisp/mail/rmailout.el
View file @
d1cad408
...
...
@@ -333,12 +333,18 @@ The optional fourth argument FROM-GNUS is set when called from GNUS."
FILE-NAME defaults, interactively, from the Subject field of the message."
(
interactive
(
let
((
default-file
(
mail-fetch-field
"Subject"
)))
(
list
(
read-file-name
"Output message body to file: "
(
file-name-directory
default-file
)
default-file
nil
default-file
))))
(
or
(
mail-fetch-field
"Subject"
)
rmail-default-body-file
)))
(
list
(
setq
rmail-default-body-file
(
read-file-name
"Output message body to file: "
(
and
default-file
(
file-name-directory
default-file
))
default-file
nil
default-file
)))))
(
setq
file-name
(
expand-file-name
file-name
(
and
rmail-default-body-file
(
file-name-directory
rmail-default-body-file
))))
(
save-excursion
(
goto-char
(
point-min
))
(
search-forward
"\n\n"
)
...
...
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