Gnus development mailing list
 help / color / mirror / Atom feed
* nndraft directory
@ 2011-01-19 17:52 Richard Riley
  2011-01-19 21:31 ` Richard Riley
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Riley @ 2011-01-19 17:52 UTC (permalink / raw)
  To: nognus


I have nndraft-directory set to ~/Mail but drafts are still stored in
~/.emacs.d/drafts/drafts.

Since nndraft is automatically created, how do I set the "server
variable" nndraft-directory to point to my ~/Mail or is the issue
elsewhere?



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nndraft directory
  2011-01-19 17:52 nndraft directory Richard Riley
@ 2011-01-19 21:31 ` Richard Riley
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Riley @ 2011-01-19 21:31 UTC (permalink / raw)
  To: nognus

Richard Riley <rileyrg@googlemail.com> writes:

> I have nndraft-directory set to ~/Mail but drafts are still stored in
> ~/.emacs.d/drafts/drafts.
>
> Since nndraft is automatically created, how do I set the "server
> variable" nndraft-directory to point to my ~/Mail or is the issue
> elsewhere?

OK, ignore that : one of the perils of keeping parts of ones gnus config
in a gpg file is that you can easily forget about them ....

Solved.

r.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nndraft directory
  2014-05-30 18:17 ` Jorge A. Alfaro-Murillo
@ 2014-05-30 22:46   ` Vincent Bernat
  0 siblings, 0 replies; 7+ messages in thread
From: Vincent Bernat @ 2014-05-30 22:46 UTC (permalink / raw)
  To: Jorge A. Alfaro-Murillo; +Cc: ding

 ❦ 30 mai 2014 14:17 -0400, jorge.a.alfaro@gmail.com (Jorge A. Alfaro-Murillo) :

> I had a similar issue recently. I wanted to move the Mail and News
> directories to another location. I did not have your problem exactly,
> probably because I use nntp as my gnus-select-method and the nnimap's as
> gnus-secondary-select-methods. But ~/Mail/archive kept being created
> even after changing nnfolder-active-file and it was driving me crazy.
> The documentation of the variable that you mention and of
> nnfolder-active-file mention that they are "Gnus server variables". I
> understood after reading (info "(gnus) Server Variables") that for my
> case I could not set it simply with a setq, this was needed:
>
> #+BEGIN_SRC emacs-lisp
>   (setq message-directory "~/path_that_I_wanted/Mail/")
>   (setq gnus-message-archive-method
>         '(nnfolder "archive"
>                    (nnfolder-directory 
>                     "~/path_that_I_wanted/Mail/archive/")
>                    (nnfolder-active-file 
>                     "~/path_that_I_wanted/Mail/archive/active")
>                    (nnfolder-inhibit-expiry t)))
>   (setq gnus-update-message-archive-method t)
> #+END_SRC

Good catch. For the archive, I have the path to ~/Mail/archive in my
.newsrc.eld. So the directory is created when Gnus started. I edited the
backend in the *Server* buffer and I think the problem is gone.

Now, I need to do the same thing for the nndraft backend.
Unfortunately, this backend is not editable. I suppose I can customize
it as a secondary method? I have tried something like this:

#+begin_src emacs-lisp
(setq gnus-secondary-select-methods
      '((nndraft ""
                 (nndraft-directory (nnheader-concat message-directory "drafts")))))
#+end_src

Unfortunately, as soon as I replay to a message, the initial directory
is created... What's odd is that saving my reply (C-x C-s) results in
writing to the specified location...
-- 
 /* After several hours of tedious analysis, the following hash
  * function won.  Do not mess with it... -DaveM
  */
	2.2.16 /usr/src/linux/fs/buffer.c



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nndraft directory
  2014-05-23 19:03 Vincent Bernat
  2014-05-23 19:09 ` Rasmus
@ 2014-05-30 18:17 ` Jorge A. Alfaro-Murillo
  2014-05-30 22:46   ` Vincent Bernat
  1 sibling, 1 reply; 7+ messages in thread
From: Jorge A. Alfaro-Murillo @ 2014-05-30 18:17 UTC (permalink / raw)
  To: ding

Hi Vincent.

Vincent Bernat <bernat@luffy.cx> writes:

> Despite removing it multiple times, the directory `~/Mail/drafts` keep
> being recreated by Gnus. `nndraft-directory` is set to
> `/home/bernat/.emacs.d/run/gnus/drafts/`. What could recreate the
> directory?

I had a similar issue recently. I wanted to move the Mail and News
directories to another location. I did not have your problem exactly,
probably because I use nntp as my gnus-select-method and the nnimap's as
gnus-secondary-select-methods. But ~/Mail/archive kept being created
even after changing nnfolder-active-file and it was driving me crazy.
The documentation of the variable that you mention and of
nnfolder-active-file mention that they are "Gnus server variables". I
understood after reading (info "(gnus) Server Variables") that for my
case I could not set it simply with a setq, this was needed:

#+BEGIN_SRC emacs-lisp
  (setq message-directory "~/path_that_I_wanted/Mail/")
  (setq gnus-message-archive-method
        '(nnfolder "archive"
                   (nnfolder-directory 
                    "~/path_that_I_wanted/Mail/archive/")
                   (nnfolder-active-file 
                    "~/path_that_I_wanted/Mail/archive/active")
                   (nnfolder-inhibit-expiry t)))
  (setq gnus-update-message-archive-method t)
#+END_SRC

For your case probably you have to explicitly set all the variables from
the nndraft group in a similar way. Perhaps someone can clarify server
variables further.

Best,

Jorge.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nndraft directory
  2014-05-23 19:09 ` Rasmus
@ 2014-05-23 20:51   ` Vincent Bernat
  0 siblings, 0 replies; 7+ messages in thread
From: Vincent Bernat @ 2014-05-23 20:51 UTC (permalink / raw)
  To: Rasmus; +Cc: ding

 ❦ 23 mai 2014 21:09 +0200, Rasmus <rasmus@gmx.us> :

>> Despite removing it multiple times, the directory `~/Mail/drafts` keep
>> being recreated by Gnus. `nndraft-directory` is set to
>> `/home/bernat/.emacs.d/run/gnus/drafts/`. What could recreate the
>> directory?
>
> I have this early in my init.el before anything that my load Gnus
>
>   (setq gnus-directory "~/news")
>   (setq message-directory "~/mail")

I have them set to /home/bernat/.emacs.d/run/gnus and
/home/bernat/.emacs.d/run/gnus/Mail without any change.
-- 
Make sure special cases are truly special.
            - The Elements of Programming Style (Kernighan & Plauger)



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nndraft directory
  2014-05-23 19:03 Vincent Bernat
@ 2014-05-23 19:09 ` Rasmus
  2014-05-23 20:51   ` Vincent Bernat
  2014-05-30 18:17 ` Jorge A. Alfaro-Murillo
  1 sibling, 1 reply; 7+ messages in thread
From: Rasmus @ 2014-05-23 19:09 UTC (permalink / raw)
  To: ding

Vincent Bernat <bernat@luffy.cx> writes:

> Despite removing it multiple times, the directory `~/Mail/drafts` keep
> being recreated by Gnus. `nndraft-directory` is set to
> `/home/bernat/.emacs.d/run/gnus/drafts/`. What could recreate the
> directory?

I have this early in my init.el before anything that my load Gnus

  (setq gnus-directory "~/news")
  (setq message-directory "~/mail")

Does that solve your issue? 

-- 
m-mm-mmm-mmmm bacon!




^ permalink raw reply	[flat|nested] 7+ messages in thread

* nndraft directory
@ 2014-05-23 19:03 Vincent Bernat
  2014-05-23 19:09 ` Rasmus
  2014-05-30 18:17 ` Jorge A. Alfaro-Murillo
  0 siblings, 2 replies; 7+ messages in thread
From: Vincent Bernat @ 2014-05-23 19:03 UTC (permalink / raw)
  To: ding

Hi!

Despite removing it multiple times, the directory `~/Mail/drafts` keep
being recreated by Gnus. `nndraft-directory` is set to
`/home/bernat/.emacs.d/run/gnus/drafts/`. What could recreate the
directory?
-- 
Make sure all variables are initialised before use.
            - The Elements of Programming Style (Kernighan & Plauger)



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-30 22:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19 17:52 nndraft directory Richard Riley
2011-01-19 21:31 ` Richard Riley
2014-05-23 19:03 Vincent Bernat
2014-05-23 19:09 ` Rasmus
2014-05-23 20:51   ` Vincent Bernat
2014-05-30 18:17 ` Jorge A. Alfaro-Murillo
2014-05-30 22:46   ` Vincent Bernat

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).