* Gnus: user save directory not respected?
@ 2021-08-07 2:16 T.V Raman
2021-08-07 6:20 ` Michael Heerdegen
0 siblings, 1 reply; 2+ messages in thread
From: T.V Raman @ 2021-08-07 2:16 UTC (permalink / raw)
To: emacs-devel
Easiest to cite the code below:
Doc says it uses gnus-article-save-directory' as the default directory
to save, but that doesn't appear to happen in practice, and the code
appears to not check that custom variable.
(defun gnus-summary-save-in-mail (&optional filename)
"Append this article to Unix mail file.
Optional argument FILENAME specifies file name.
Directory to save to is default to `gnus-article-save-directory'."
(setq filename (gnus-read-save-file-name
"Save %s in Unix mail file" filename
gnus-mail-save-name gnus-newsgroup-name
gnus-current-headers 'gnus-newsgroup-last-mail))
(with-current-buffer gnus-save-article-buffer
(save-excursion
(save-restriction
(widen)
(if (and (file-readable-p filename)
(file-regular-p filename)
(mail-file-babyl-p filename))
(gnus-output-to-rmail filename)
(gnus-output-to-mail filename)))))
filename)
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Gnus: user save directory not respected?
2021-08-07 2:16 Gnus: user save directory not respected? T.V Raman
@ 2021-08-07 6:20 ` Michael Heerdegen
0 siblings, 0 replies; 2+ messages in thread
From: Michael Heerdegen @ 2021-08-07 6:20 UTC (permalink / raw)
To: emacs-devel
"T.V Raman" <raman@google.com> writes:
> Easiest to cite the code below:
> Doc says it uses gnus-article-save-directory' as the default directory
> to save, but that doesn't appear to happen in practice, and the code
> appears to not check that custom variable.
>
> (defun gnus-summary-save-in-mail (&optional filename)
> "Append this article to Unix mail file.
> Optional argument FILENAME specifies file name.
> Directory to save to is default to `gnus-article-save-directory'."
> (setq filename (gnus-read-save-file-name
> "Save %s in Unix mail file" filename
> gnus-mail-save-name gnus-newsgroup-name
> gnus-current-headers 'gnus-newsgroup-last-mail))
Hmm - it does check it: look at that `gnus-read-save-file-name' call.
The third arg FUNCTION is specified as `gnus-mail-save-name', defaulting
to the function `gnus-plain-save-name' - and that function uses
`gnus-article-save-directory's value.
If saving doesn't work for you, I have no idea why, I guess you have to
dig further or provide more information.
Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-07 6:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-07 2:16 Gnus: user save directory not respected? T.V Raman
2021-08-07 6:20 ` Michael Heerdegen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.