Gnus development mailing list
 help / color / mirror / Atom feed
* Scope of nnmail-split-methods
@ 1999-12-06  4:14 Nevin Kapur
  1999-12-06 13:25 ` Kai Großjohann
  0 siblings, 1 reply; 5+ messages in thread
From: Nevin Kapur @ 1999-12-06  4:14 UTC (permalink / raw)


I have mail-sources set to

((directory :path "~/.spool" :suffix ""  )
        (pop :server "jhunix.hcf.jhu.edu" :user "nk2"))

I want all my POP mail to go to a group nnml:JHU and hence have

(setq nnmail-split-methods
      '(("nnml:JHU" "^To:.*nk2@jhunix")
        ("nnml:mail.misc" "")))

However all my POP mail ends up in mail.misc. C-h v
nnmail-split-methods says 
,----
| *Incoming mail will be split according to this variable.
`----

Does my POP mail not count as Incoming mail? Of course
nnmail-resplit-incoming is nil since I don't want to resplit incoming
procmail sorted mail.

-Nevin




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

* Re: Scope of nnmail-split-methods
  1999-12-06  4:14 Scope of nnmail-split-methods Nevin Kapur
@ 1999-12-06 13:25 ` Kai Großjohann
  1999-12-06 15:25   ` Nevin Kapur
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 1999-12-06 13:25 UTC (permalink / raw)
  Cc: ding

Nevin Kapur <nevin@jhu.edu> writes:

> (setq nnmail-split-methods
>       '(("nnml:JHU" "^To:.*nk2@jhunix")
>         ("nnml:mail.misc" "")))

I think you want "JHU" rather than "nnml:JHU".  And so on.

kai
-- 
A preposition is not a good thing to end a sentence with.


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

* Re: Scope of nnmail-split-methods
  1999-12-06 13:25 ` Kai Großjohann
@ 1999-12-06 15:25   ` Nevin Kapur
  1999-12-06 22:50     ` Kai Großjohann
  0 siblings, 1 reply; 5+ messages in thread
From: Nevin Kapur @ 1999-12-06 15:25 UTC (permalink / raw)


>>>>> "KG" == Kai Großjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> writes:

 KG> Nevin Kapur <nevin@jhu.edu> writes:
> (setq nnmail-split-methods
>       '(("nnml:JHU" "^To:.*nk2@jhunix")
>         ("nnml:mail.misc" "")))

 KG> I think you want "JHU" rather than "nnml:JHU".  And so on.

Yes, this works. So if I had an nnml group JHU and an nnfolder group
JHU, (I use both backends) where would the mail end up? I could not
figure this out from the documentation.

Thank for the help.

-Nevin



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

* Re: Scope of nnmail-split-methods
  1999-12-06 15:25   ` Nevin Kapur
@ 1999-12-06 22:50     ` Kai Großjohann
  1999-12-07  0:51       ` Nevin Kapur
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 1999-12-06 22:50 UTC (permalink / raw)
  Cc: ding

Nevin Kapur <nevin@jhu.edu> writes:

> Yes, this works. So if I had an nnml group JHU and an nnfolder group
> JHU, (I use both backends) where would the mail end up? I could not
> figure this out from the documentation.

Ah, that one is a good question.  I also had this question.  After
some chatting (well, mail-exchange) with Lars, it seems that the
procedure is as follows: Gnus goes through its servers in some order,
and the first server that can receive mail gets all the mail.  The
only thing that's left to do is to find out what order exactly that
is.  I'm pretty sure that first the native server is checked (ie,
gnus-select-method), and then the secondary servers are checked in the
order given in the variable gnus-secondary-select-methods.  I think
that after this come the foreign servers, presumably in the order
given in the Server buffer.

It is conceivable that Lars will change the mail-source stuff such
that you can define different sources and maybe different split
methods for different servers, such that the first server which can
receive mail does not necessarily receive all of it.

PS: I'm noticing that I didn't define what it means for a server to be
able to receive mail.  Well, it is obvious that an nntp server cannot
receive mail, neither can nndir and nneething.  But I'm not sure
about, say, an nnfolder server with the nnfolder-get-new-mail backend
parameter set to nil.  I can think of two things which might happen.
Either this nnfolder backend is recognized as `cannot receive mail',
or the nnfolder backend is recognized as `can receive mail' (because
nnfolder backends can receive mail) but receiving mail has been turned
off, so in the end no backend gets any mail at all.  Dunno if
something different happens if the variable nnmfolder-get-new-mail is
set globally.  What's the story?

kai
-- 
A preposition is not a good thing to end a sentence with.


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

* Re: Scope of nnmail-split-methods
  1999-12-06 22:50     ` Kai Großjohann
@ 1999-12-07  0:51       ` Nevin Kapur
  0 siblings, 0 replies; 5+ messages in thread
From: Nevin Kapur @ 1999-12-07  0:51 UTC (permalink / raw)


>>>>> "KG" == Kai Großjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> writes:


 KG> ...  But I'm not sure about, say, an nnfolder server with the
 KG> nnfolder-get-new-mail backend parameter set to nil.  I can think
 KG> of two things which might happen.  Either this nnfolder backend
 KG> is recognized as `cannot receive mail', or the nnfolder backend
 KG> is recognized as `can receive mail' (because nnfolder backends
 KG> can receive mail) but receiving mail has been turned off, so in
 KG> the end no backend gets any mail at all.  Dunno if something
 KG> different happens if the variable nnmfolder-get-new-mail is set
 KG> globally.  What's the story?

I have nnfolder-get-new mail set to nil. With the present setup only
one of the mail backends should be able to receive mail. Perhaps this
discussion is academic since I don't envision a scenario in which one
would have two groups with the same name in different backends. 

Thanks for the pointers. They've certainly solved my problems.

-Nevin



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

end of thread, other threads:[~1999-12-07  0:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-06  4:14 Scope of nnmail-split-methods Nevin Kapur
1999-12-06 13:25 ` Kai Großjohann
1999-12-06 15:25   ` Nevin Kapur
1999-12-06 22:50     ` Kai Großjohann
1999-12-07  0:51       ` Nevin Kapur

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