mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
(unrmail): Default the directory of TO-FILE based on FILE.
This commit is contained in:
parent
5246db4e1f
commit
a538e583ca
@ -53,6 +53,8 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
|
||||
(rmail-display-summary nil)
|
||||
(rmail-delete-after-output nil))
|
||||
(rmail file)
|
||||
;; Default the directory of TO-FILE based on where FILE is.
|
||||
(setq to-file (expand-file-name to-file default-directory))
|
||||
(message "Writing messages to %s..." to-file)
|
||||
(while (< message-count rmail-total-messages)
|
||||
(rmail-show-message
|
||||
|
Loading…
Reference in New Issue
Block a user