Gnus development mailing list
 help / color / mirror / Atom feed
* nnmaildir setup
@ 2005-01-24 10:17 Sebastian Luque
  2005-01-24 15:35 ` Hiroshi Fujishima
  0 siblings, 1 reply; 18+ messages in thread
From: Sebastian Luque @ 2005-01-24 10:17 UTC (permalink / raw)


With a lot of effort, I was able to somewhat setup gnus and import my mail
from kmail (which uses maildir). The problem is mail is not getting picked
from my pop server. The relevant lines from my ~/.gnus.el file are:

(setq gnus-select-method '(nntp "news.gmane.org"))
;; Secondary method, other news and mail
(add-to-list 'gnus-secondary-select-methods
	     '(nnmaildir "" (directory "~/.nnmaildir")))
			 
(setq mail-sources '((pop :server "my.pop.server"
			  :user "XXXXX"
			  :password "XXXXX")))

My old kmail maildir folders now appear as groups in gnus. Mail is picked up
fine if I use nnml and a different folder for that select method, but of
course I can't import my old mail. Any help would be appreciated.


-- 
Best wishes,
Sebastian




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

* Re: nnmaildir setup
  2005-01-24 10:17 nnmaildir setup Sebastian Luque
@ 2005-01-24 15:35 ` Hiroshi Fujishima
  2005-01-24 16:25   ` Reiner Steib
  0 siblings, 1 reply; 18+ messages in thread
From: Hiroshi Fujishima @ 2005-01-24 15:35 UTC (permalink / raw)
  Cc: ding

Sebastian Luque <sluque@mun.ca> writes:

> With a lot of effort, I was able to somewhat setup gnus and import my mail
> from kmail (which uses maildir). The problem is mail is not getting picked
> from my pop server. The relevant lines from my ~/.gnus.el file are:
>
> (setq gnus-select-method '(nntp "news.gmane.org"))
> ;; Secondary method, other news and mail
> (add-to-list 'gnus-secondary-select-methods
> 	     '(nnmaildir "" (directory "~/.nnmaildir")))
> 			 
> (setq mail-sources '((pop :server "my.pop.server"
> 			  :user "XXXXX"
> 			  :password "XXXXX")))

Setting following variable may solve the problem.

(info "(gnus)Maildir")
| `get-new-mail'
|      If non-`nil', then after scanning for new mail in the group
|      maildirs themselves as usual, this server will also incorporate
|      mail the conventional Gnus way, from `mail-sources' according to
|      `nnmail-split-methods' or `nnmail-split-fancy'.  The default value
|      is `nil'.
| 
|      Do _not_ use the same maildir both in `mail-sources' and as an
|      `nnmaildir' group.  The results might happen to be useful, but
|      that would be by chance, not by design, and the results might be
|      different in the future.  If your split rules create new groups,
|      remember to supply a `create-directory' server parameter.

-- 
Hiroshi Fujishima



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

* Re: nnmaildir setup
  2005-01-24 15:35 ` Hiroshi Fujishima
@ 2005-01-24 16:25   ` Reiner Steib
  2005-01-24 17:36     ` Sebastian Luque
  0 siblings, 1 reply; 18+ messages in thread
From: Reiner Steib @ 2005-01-24 16:25 UTC (permalink / raw)


On Mon, Jan 24 2005, Hiroshi Fujishima wrote:

> Setting following variable may solve the problem.
>
> (info "(gnus)Maildir")
> | `get-new-mail'
> |      If non-`nil', then after scanning for new mail in the group
> |      maildirs themselves as usual, this server will also incorporate
> |      mail the conventional Gnus way, from `mail-sources' according to
> |      `nnmail-split-methods' or `nnmail-split-fancy'.  The default value
> |      is `nil'.

Note that `get-new-mail' is a server variable, see (info "(gnus)Server
Variables").

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




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

* Re: nnmaildir setup
  2005-01-24 16:25   ` Reiner Steib
@ 2005-01-24 17:36     ` Sebastian Luque
  2005-01-24 17:48       ` Paul Jarc
  0 siblings, 1 reply; 18+ messages in thread
From: Sebastian Luque @ 2005-01-24 17:36 UTC (permalink / raw)


Thanks for the tip. Unfortunately though, the messages are actually not even
retrieved from my pop server. I'm wondering though how the back end knows
where to put the new mail? I've set everything up as explained in the manual;
I basically copied my maildirs (each containing the "curr" "new" "tmp"
folders), but where is the back end supposed to put the new mail? I haven't
setup any mail splitting scheme yet, so perhaps that has something to do with
it?



Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Mon, Jan 24 2005, Hiroshi Fujishima wrote:
>
>> Setting following variable may solve the problem.
>>
>> (info "(gnus)Maildir")
>> | `get-new-mail'
>> |      If non-`nil', then after scanning for new mail in the group
>> |      maildirs themselves as usual, this server will also incorporate
>> |      mail the conventional Gnus way, from `mail-sources' according to
>> |      `nnmail-split-methods' or `nnmail-split-fancy'.  The default value
>> |      is `nil'.
>
> Note that `get-new-mail' is a server variable, see (info "(gnus)Server
> Variables").
>
> Bye, Reiner.
> -- 
>        ,,,
>       (o o)
> ---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/
>
>
>

-- 
Best wishes,
Sebastian




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

* Re: nnmaildir setup
  2005-01-24 17:36     ` Sebastian Luque
@ 2005-01-24 17:48       ` Paul Jarc
  2005-01-24 18:09         ` Sebastian Luque
  0 siblings, 1 reply; 18+ messages in thread
From: Paul Jarc @ 2005-01-24 17:48 UTC (permalink / raw)
  Cc: ding

Sebastian Luque <sluque@mun.ca> wrote:
> Unfortunately though, the messages are actually not even retrieved
> from my pop server.

That's normal if you don't set get-new-mail in the select method.

> I'm wondering though how the back end knows where to put the new
> mail?

That's determined by the nnmail-split-methods or nnmail-split-fancy
variable.  See the node "Splitting Mail" in the manual.


paul



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

* Re: nnmaildir setup
  2005-01-24 17:48       ` Paul Jarc
@ 2005-01-24 18:09         ` Sebastian Luque
  2005-01-24 18:15           ` Paul Jarc
  0 siblings, 1 reply; 18+ messages in thread
From: Sebastian Luque @ 2005-01-24 18:09 UTC (permalink / raw)


prj@po.cwru.edu (Paul Jarc) writes:

> Sebastian Luque <sluque@mun.ca> wrote:
>> Unfortunately though, the messages are actually not even retrieved
>> from my pop server.
>
> That's normal if you don't set get-new-mail in the select method.

I did modify gnus-secondary-select-methods before my comment above:

(add-to-list 'gnus-secondary-select-methods
	     '(nnmaildir "" (directory "~/.nnmaildir")
			 (get-new-mail t)))


>> I'm wondering though how the back end knows where to put the new
>> mail?
>
> That's determined by the nnmail-split-methods or nnmail-split-fancy
> variable.  See the node "Splitting Mail" in the manual.

What if I want to set this later? I'd prefer to do that once I get a better
grip on gnus. If that's possible, is there some way to apply the "filters" to
my groups? Thanks so far.


-- 
Sebastian




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

* Re: nnmaildir setup
  2005-01-24 18:09         ` Sebastian Luque
@ 2005-01-24 18:15           ` Paul Jarc
  2005-01-24 18:53             ` Sebastian Luque
  0 siblings, 1 reply; 18+ messages in thread
From: Paul Jarc @ 2005-01-24 18:15 UTC (permalink / raw)
  Cc: ding

Sebastian Luque <sluque@mun.ca> wrote:
> I did modify gnus-secondary-select-methods before my comment above:
>
> (add-to-list 'gnus-secondary-select-methods
> 	     '(nnmaildir "" (directory "~/.nnmaildir")
> 			 (get-new-mail t)))

Did you restart Emacs?  Editing .gnus is not sufficient.  Just
restarting Gnus or rereading .gnus might give you duplicate entries in
gnus-secondary-select-methods, so I'd avoid that.

>> That's determined by the nnmail-split-methods or nnmail-split-fancy
>> variable.  See the node "Splitting Mail" in the manual.
>
> What if I want to set this later?

Then new mail will go into a group called mail.misc by default.

> If that's possible, is there some way to apply the "filters" to my
> groups?

What do you mean?


paul



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

* Re: nnmaildir setup
  2005-01-24 18:15           ` Paul Jarc
@ 2005-01-24 18:53             ` Sebastian Luque
  2005-01-24 19:29               ` Paul Jarc
  2005-01-24 20:06               ` Johan Bockgård
  0 siblings, 2 replies; 18+ messages in thread
From: Sebastian Luque @ 2005-01-24 18:53 UTC (permalink / raw)


prj@po.cwru.edu (Paul Jarc) writes:

> Did you restart Emacs?  Editing .gnus is not sufficient.  Just
> restarting Gnus or rereading .gnus might give you duplicate entries in
> gnus-secondary-select-methods, so I'd avoid that.

Excellent, that worked! I should have realized that re-reading .gnus.el would
duplicate some entries (add-to-list). I also had misnamed mail.misc (I had it
as misc.mail) Thanks a lot.

>> If that's possible, is there some way to apply the "filters" to my
>> groups?
>
> What do you mean?

Sorry for the vagueness, I forgot to add "later" at the end of my phrase. In
other words, once I design a message splitting scheme, can I apply it to
mail.misc?


-- 
Sebastian




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

* Re: nnmaildir setup
  2005-01-24 18:53             ` Sebastian Luque
@ 2005-01-24 19:29               ` Paul Jarc
  2005-01-26 10:16                 ` Sebastian Luque
  2005-01-24 20:06               ` Johan Bockgård
  1 sibling, 1 reply; 18+ messages in thread
From: Paul Jarc @ 2005-01-24 19:29 UTC (permalink / raw)
  Cc: ding

Sebastian Luque <sluque@mun.ca> wrote:
> In other words, once I design a message splitting scheme, can I
> apply it to mail.misc?

The easiest way to do that in this case would be to remove mail.misc
from your nnmaildir directory and add it to mail-sources.


paul



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

* Re: nnmaildir setup
  2005-01-24 18:53             ` Sebastian Luque
  2005-01-24 19:29               ` Paul Jarc
@ 2005-01-24 20:06               ` Johan Bockgård
  2005-01-24 22:43                 ` Sebastian Luque
  1 sibling, 1 reply; 18+ messages in thread
From: Johan Bockgård @ 2005-01-24 20:06 UTC (permalink / raw)


Sebastian Luque <sluque@mun.ca> writes:

> Sorry for the vagueness, I forgot to add "later" at the end of my
> phrase. In other words, once I design a message splitting scheme,
> can I apply it to mail.misc?

B r runs the command gnus-summary-respool-article



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

* Re: nnmaildir setup
  2005-01-24 20:06               ` Johan Bockgård
@ 2005-01-24 22:43                 ` Sebastian Luque
  2005-01-25 14:21                   ` Svend Tollak Munkejord
  0 siblings, 1 reply; 18+ messages in thread
From: Sebastian Luque @ 2005-01-24 22:43 UTC (permalink / raw)


bojohan+news@dd.chalmers.se (Johan Bockgård) writes:

> Sebastian Luque <sluque@mun.ca> writes:
>
>> Sorry for the vagueness, I forgot to add "later" at the end of my
>> phrase. In other words, once I design a message splitting scheme,
>> can I apply it to mail.misc?
>
> B r runs the command gnus-summary-respool-article

Thanks, that's exactly it.

-- 
Sebastian




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

* Re: nnmaildir setup
  2005-01-24 22:43                 ` Sebastian Luque
@ 2005-01-25 14:21                   ` Svend Tollak Munkejord
  2005-01-25 15:53                     ` Paul Jarc
  2005-01-25 21:46                     ` Sebastian Luque
  0 siblings, 2 replies; 18+ messages in thread
From: Svend Tollak Munkejord @ 2005-01-25 14:21 UTC (permalink / raw)


On 2005-01-24, Sebastian Luque <sluque@mun.ca> wrote:

> bojohan+news@dd.chalmers.se (Johan Bockgård) writes:
>
>> Sebastian Luque <sluque@mun.ca> writes:
>>
>>> Sorry for the vagueness, I forgot to add "later" at the end of my
>>> phrase. In other words, once I design a message splitting scheme,
>>> can I apply it to mail.misc?
>>
>> B r runs the command gnus-summary-respool-article
>
> Thanks, that's exactly it.

Does respooling work for you with nnmaildir? Did you do something
special to set it up? For me, (No Gnus 0.2) when I try to respool an
article, it is just copied back to the original group.

-- 
Svend Tollak Munkejord 




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

* Re: nnmaildir setup
  2005-01-25 14:21                   ` Svend Tollak Munkejord
@ 2005-01-25 15:53                     ` Paul Jarc
  2005-01-25 16:05                       ` Svend Tollak Munkejord
  2005-01-25 21:46                     ` Sebastian Luque
  1 sibling, 1 reply; 18+ messages in thread
From: Paul Jarc @ 2005-01-25 15:53 UTC (permalink / raw)


Svend Tollak Munkejord <stm+direct_reply@bacchus.pvv.org> wrote:
> Does respooling work for you with nnmaildir? Did you do something
> special to set it up? For me, (No Gnus 0.2) when I try to respool an
> article, it is just copied back to the original group.

Known problem.  Gnus knows how to figure out where the article is
supposed to be moved to (as shown by [B t]), but doesn't bother
telling the backend.  The backend is expected to figure it out for
itself, but nnmaildir doesn't.  You can still respool the messages the
way I said, by moving them to a maildir outside of you nnmaildir
directory and adding that to mail-sources.


paul



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

* Re: nnmaildir setup
  2005-01-25 15:53                     ` Paul Jarc
@ 2005-01-25 16:05                       ` Svend Tollak Munkejord
  2005-01-25 16:18                         ` Paul Jarc
  0 siblings, 1 reply; 18+ messages in thread
From: Svend Tollak Munkejord @ 2005-01-25 16:05 UTC (permalink / raw)


On 2005-01-25, Paul Jarc <prj@po.cwru.edu> wrote:

> Svend Tollak Munkejord <stm+direct_reply@bacchus.pvv.org> wrote:
>> Does respooling work for you with nnmaildir? Did you do something
>> special to set it up? For me, (No Gnus 0.2) when I try to respool
>> an article, it is just copied back to the original group.
>
> Known problem.  Gnus knows how to figure out where the article is
> supposed to be moved to (as shown by [B t]), but doesn't bother
> telling the backend.  The backend is expected to figure it out for
> itself, but nnmaildir doesn't.  You can still respool the messages
> the way I said, by moving them to a maildir outside of you nnmaildir
> directory and adding that to mail-sources.

Do you mean just moving them using mv on the command line?  Or could I
use Gnus for that?

-- 
Svend Tollak Munkejord 




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

* Re: nnmaildir setup
  2005-01-25 16:05                       ` Svend Tollak Munkejord
@ 2005-01-25 16:18                         ` Paul Jarc
  0 siblings, 0 replies; 18+ messages in thread
From: Paul Jarc @ 2005-01-25 16:18 UTC (permalink / raw)


Svend Tollak Munkejord <stm+direct_reply@bacchus.pvv.org> wrote:
> Do you mean just moving them using mv on the command line?  Or could I
> use Gnus for that?

Since you're moving them to a maildir that isn't a Gnus group, and
there is no gnus-summary-save-article-maildir, it would have to be
done from outside Gnus.


paul



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

* Re: nnmaildir setup
  2005-01-25 14:21                   ` Svend Tollak Munkejord
  2005-01-25 15:53                     ` Paul Jarc
@ 2005-01-25 21:46                     ` Sebastian Luque
  2005-01-26  9:32                       ` Svend Tollak Munkejord
  1 sibling, 1 reply; 18+ messages in thread
From: Sebastian Luque @ 2005-01-25 21:46 UTC (permalink / raw)


On Tue, 25 Jan 2005 15:21:14 +0100, Svend Tollak Munkejord
<stm+direct_reply@bacchus.pvv.org> wrote:

[...]

> Does respooling work for you with nnmaildir? Did you do something special to
> set it up? For me, (No Gnus 0.2) when I try to respool an article, it is just
> copied back to the original group.

Sorry for the delay, I got mired in other setup issues. I didn't get a chance
to test this, but the documentation indicates that it's right on target. I'll
post again once I try it.

-- 
Sebastian




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

* Re: nnmaildir setup
  2005-01-25 21:46                     ` Sebastian Luque
@ 2005-01-26  9:32                       ` Svend Tollak Munkejord
  0 siblings, 0 replies; 18+ messages in thread
From: Svend Tollak Munkejord @ 2005-01-26  9:32 UTC (permalink / raw)


On 2005-01-25, Sebastian Luque <sluque@mun.ca> wrote:

> On Tue, 25 Jan 2005 15:21:14 +0100, Svend Tollak Munkejord
> <stm+direct_reply@bacchus.pvv.org> wrote:
>
> [...]
>
>> Does respooling work for you with nnmaildir? Did you do something
>> special to set it up? For me, (No Gnus 0.2) when I try to respool
>> an article, it is just copied back to the original group.
>
> Sorry for the delay, I got mired in other setup issues. 

No problem :-)

> I didn't get a chance to test this, but the documentation indicates
> that it's right on target. I'll post again once I try it.

OK, thank you, that would be nice. The reply from Paul Jarc indicates
that it isn't quite straightforward, though.

-- 
Svend Tollak Munkejord 




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

* Re: nnmaildir setup
  2005-01-24 19:29               ` Paul Jarc
@ 2005-01-26 10:16                 ` Sebastian Luque
  0 siblings, 0 replies; 18+ messages in thread
From: Sebastian Luque @ 2005-01-26 10:16 UTC (permalink / raw)


On Mon, 24 Jan 2005 14:29:58 -0500, prj@po.cwru.edu (Paul Jarc) wrote:

[...]

> The easiest way to do that in this case would be to remove mail.misc from your
> nnmaildir directory and add it to mail-sources.

Thank you, that worked and using 'B r' caused the same thing Svend was talking
about. I'm thinking anyway about a better method to avoid doing this in
the future, in case my "filter rules" change. Any ideas?

-- 
Best regards,
Sebastian




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

end of thread, other threads:[~2005-01-26 10:16 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-24 10:17 nnmaildir setup Sebastian Luque
2005-01-24 15:35 ` Hiroshi Fujishima
2005-01-24 16:25   ` Reiner Steib
2005-01-24 17:36     ` Sebastian Luque
2005-01-24 17:48       ` Paul Jarc
2005-01-24 18:09         ` Sebastian Luque
2005-01-24 18:15           ` Paul Jarc
2005-01-24 18:53             ` Sebastian Luque
2005-01-24 19:29               ` Paul Jarc
2005-01-26 10:16                 ` Sebastian Luque
2005-01-24 20:06               ` Johan Bockgård
2005-01-24 22:43                 ` Sebastian Luque
2005-01-25 14:21                   ` Svend Tollak Munkejord
2005-01-25 15:53                     ` Paul Jarc
2005-01-25 16:05                       ` Svend Tollak Munkejord
2005-01-25 16:18                         ` Paul Jarc
2005-01-25 21:46                     ` Sebastian Luque
2005-01-26  9:32                       ` Svend Tollak Munkejord

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