* Mail/drafts is still at ~/
@ 2008-02-26 11:08 anhnmncb
2008-02-26 18:59 ` Reiner Steib
0 siblings, 1 reply; 8+ messages in thread
From: anhnmncb @ 2008-02-26 11:08 UTC (permalink / raw)
To: info-gnus-english
After setting:
(setq gnus-home-directory "~/.emacs.d/gnus")
(setq message-directory (concat gnus-home-directory "/Mail"))
Everything goes well except that when I postpone a mail, drafts will go
into ~/Mail/drafts, not the expecting ~/.emacs.d/gnus/Mail/drafts.
Still a bug too?
--
Regards,
anhnmncb
gpg key: 44A31344
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mail/drafts is still at ~/
2008-02-26 11:08 Mail/drafts is still at ~/ anhnmncb
@ 2008-02-26 18:59 ` Reiner Steib
2008-02-26 23:46 ` anhnmncb
2008-03-01 10:32 ` anhnmncb
0 siblings, 2 replies; 8+ messages in thread
From: Reiner Steib @ 2008-02-26 18:59 UTC (permalink / raw)
To: info-gnus-english
On Tue, Feb 26 2008, anhnmncb wrote:
> After setting:
> (setq gnus-home-directory "~/.emacs.d/gnus")
> (setq message-directory (concat gnus-home-directory "/Mail"))
> Everything goes well except that when I postpone a mail, drafts will go
> into ~/Mail/drafts, not the expecting ~/.emacs.d/gnus/Mail/drafts.
The relevant variable `nndraft-directory' is correctly derived from
`gnus-directory':
(defvoo nndraft-directory (nnheader-concat gnus-directory "drafts/")
"Where nndraft will store its files."
It seems to work correctly for me:
,----[ emacs -Q -f ielm ]
| *** Welcome to IELM *** Type (describe-mode) for help.
| ELISP> (setq gnus-home-directory "~/.emacs.d/gnus")
| "~/.emacs.d/gnus"
| ELISP> (setq message-directory (concat gnus-home-directory "/Mail"))
| "~/.emacs.d/gnus/Mail"
| ELISP> (require 'nndraft)
| nndraft
| ELISP> nndraft-directory
| "~/.emacs.d/gnus/News/drafts/"
`----
Maybe for you loaded `nndraft.el' before setting those variables?
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mail/drafts is still at ~/
2008-02-26 18:59 ` Reiner Steib
@ 2008-02-26 23:46 ` anhnmncb
2008-02-27 0:48 ` Katsumi Yamaoka
2008-03-01 10:32 ` anhnmncb
1 sibling, 1 reply; 8+ messages in thread
From: anhnmncb @ 2008-02-26 23:46 UTC (permalink / raw)
To: info-gnus-english
hi, reiner:
I tried again: write an article in newsgroup, C-x C-k to quit, then
Mail/drafts is appeared in $HOME. Maybe I've missed something?
My Gnus version 5.13
--
Regards,
anhnmncb
gpg key: 44A31344
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mail/drafts is still at ~/
2008-02-26 23:46 ` anhnmncb
@ 2008-02-27 0:48 ` Katsumi Yamaoka
2008-02-27 3:58 ` anhnmncb
0 siblings, 1 reply; 8+ messages in thread
From: Katsumi Yamaoka @ 2008-02-27 0:48 UTC (permalink / raw)
To: info-gnus-english
>>>>> anhnmncb wrote:
> hi, reiner:
> I tried again: write an article in newsgroup, C-x C-k to quit, then
> Mail/drafts is appeared in $HOME. Maybe I've missed something?
> My Gnus version 5.13
I tried
(setq gnus-home-directory "~/.emacs.d/gnus")
(setq message-directory (concat gnus-home-directory "/Mail"))
in ~/.gnus.el and got "~/News/drafts" for `nndraft-directory'.
It is because `nndraft-directory' is derived from `gnus-directory'
of which the default value is determined by `gnus-home-directory'
before ~/.gnus.el is loaded. Though I don't see why you got
"~/Mail/drafts", not "~/News/drafts". You might have the
environment variable SAVEDIR with the value "~/Mail/" perhaps.
;; gnus.el
(defcustom gnus-home-directory "~/"
...)
(defcustom gnus-directory (or (getenv "SAVEDIR")
(nnheader-concat gnus-home-directory "News/"))
...)
Anyway you seem to need to set `gnus-directory' explicitly like:
(setq gnus-home-directory "~/.emacs.d/gnus"
gnus-directory (concat gnus-home-directory "/News")
message-directory (concat gnus-home-directory "/Mail"))
Regards,
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mail/drafts is still at ~/
2008-02-27 0:48 ` Katsumi Yamaoka
@ 2008-02-27 3:58 ` anhnmncb
2008-02-27 4:28 ` anhnmncb
0 siblings, 1 reply; 8+ messages in thread
From: anhnmncb @ 2008-02-27 3:58 UTC (permalink / raw)
To: info-gnus-english
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> I tried
>
> (setq gnus-home-directory "~/.emacs.d/gnus")
> (setq message-directory (concat gnus-home-directory "/Mail"))
>
> in ~/.gnus.el and got "~/News/drafts" for `nndraft-directory'.
> It is because `nndraft-directory' is derived from `gnus-directory'
> of which the default value is determined by `gnus-home-directory'
> before ~/.gnus.el is loaded. Though I don't see why you got
> "~/Mail/drafts", not "~/News/drafts". You might have the
> environment variable SAVEDIR with the value "~/Mail/" perhaps.
>
> ;; gnus.el
> (defcustom gnus-home-directory "~/"
> ...)
> (defcustom gnus-directory (or (getenv "SAVEDIR")
> (nnheader-concat gnus-home-directory "News/"))
> ...)
>
> Anyway you seem to need to set `gnus-directory' explicitly like:
>
> (setq gnus-home-directory "~/.emacs.d/gnus"
> gnus-directory (concat gnus-home-directory "/News")
> message-directory (concat gnus-home-directory "/Mail"))
>
I have these setting:
(setq gnus-home-directory "~/.emacs.d/gnus")
(setq gnus-init-file "~/.emacs.d/site-lisp/.gnus.el"
gnus-inhibit-startup-message t)
in ~/.emacs
and this:
(setq message-directory (concat gnus-home-directory "/Mail"))
in ~/.emacs.d/site-lisp/.gnus.el
I also check the enviroment, no $SAVEDIR defined.
So be confused much.
I didn't set the gnus-directory, will try it.
--
Regards,
anhnmncb
gpg key: 44A31344
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mail/drafts is still at ~/
2008-02-27 3:58 ` anhnmncb
@ 2008-02-27 4:28 ` anhnmncb
2008-02-27 6:54 ` Katsumi Yamaoka
0 siblings, 1 reply; 8+ messages in thread
From: anhnmncb @ 2008-02-27 4:28 UTC (permalink / raw)
To: info-gnus-english
Not work :(
But that dir is empty, don't know why gnus make such dir?
>ls -a Mail/drafts/
. ..
--
Regards,
anhnmncb
gpg key: 44A31344
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mail/drafts is still at ~/
2008-02-27 4:28 ` anhnmncb
@ 2008-02-27 6:54 ` Katsumi Yamaoka
0 siblings, 0 replies; 8+ messages in thread
From: Katsumi Yamaoka @ 2008-02-27 6:54 UTC (permalink / raw)
To: info-gnus-english
>>>>> anhnmncb wrote:
> I have these setting:
> (setq gnus-home-directory "~/.emacs.d/gnus")
> (setq gnus-init-file "~/.emacs.d/site-lisp/.gnus.el"
> gnus-inhibit-startup-message t)
> in ~/.emacs
> and this:
> (setq message-directory (concat gnus-home-directory "/Mail"))
> in ~/.emacs.d/site-lisp/.gnus.el
> I also check the enviroment, no $SAVEDIR defined.
> So be confused much.
> I didn't set the gnus-directory, will try it.
I tried exactly the same settings as yours, and I got:
gnus-directory => "~/.emacs.d/gnus/News/"
nndraft-directory => "~/.emacs.d/gnus/News/drafts/"
And the draft was saved in the file:
/home/yamaoka/.emacs.d/gnus/News/drafts/drafts/1
>>>>> anhnmncb wrote:
> Not work :(
> But that dir is empty, don't know why gnus make such dir?
>>ls -a Mail/drafts/
> . ..
That's a mystery.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mail/drafts is still at ~/
2008-02-26 18:59 ` Reiner Steib
2008-02-26 23:46 ` anhnmncb
@ 2008-03-01 10:32 ` anhnmncb
1 sibling, 0 replies; 8+ messages in thread
From: anhnmncb @ 2008-03-01 10:32 UTC (permalink / raw)
To: info-gnus-english
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> On Tue, Feb 26 2008, anhnmncb wrote:
>
>> After setting:
>> (setq gnus-home-directory "~/.emacs.d/gnus")
>> (setq message-directory (concat gnus-home-directory "/Mail"))
>> Everything goes well except that when I postpone a mail, drafts will go
>> into ~/Mail/drafts, not the expecting ~/.emacs.d/gnus/Mail/drafts.
>
> The relevant variable `nndraft-directory' is correctly derived from
> `gnus-directory':
>
> (defvoo nndraft-directory (nnheader-concat gnus-directory "drafts/")
> "Where nndraft will store its files."
>
> It seems to work correctly for me:
>
> ,----[ emacs -Q -f ielm ]
> | *** Welcome to IELM *** Type (describe-mode) for help.
> | ELISP> (setq gnus-home-directory "~/.emacs.d/gnus")
> | "~/.emacs.d/gnus"
> | ELISP> (setq message-directory (concat gnus-home-directory "/Mail"))
> | "~/.emacs.d/gnus/Mail"
> | ELISP> (require 'nndraft)
> | nndraft
> | ELISP> nndraft-directory
> | "~/.emacs.d/gnus/News/drafts/"
> `----
>
> Maybe for you loaded `nndraft.el' before setting those variables?
>
> Bye, Reiner.
Hi, reiner, seems the variable is right, but ~/Mail/drafts still
appears, though it's empty, don't know why.
I've testied after rm -r ~/Mail several times.
------
nndraft-directory is a variable defined in `nndraft.el'.
Its value is
"~/.emacs.d/gnus/News/drafts/"
------
--
Regards,
anhnmncb
gpg key: 44A31344
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-03-01 10:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-26 11:08 Mail/drafts is still at ~/ anhnmncb
2008-02-26 18:59 ` Reiner Steib
2008-02-26 23:46 ` anhnmncb
2008-02-27 0:48 ` Katsumi Yamaoka
2008-02-27 3:58 ` anhnmncb
2008-02-27 4:28 ` anhnmncb
2008-02-27 6:54 ` Katsumi Yamaoka
2008-03-01 10:32 ` anhnmncb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).