Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* mail sources and groups
@ 2005-11-17 14:03 Ian Zimmerman
  2005-11-17 14:51 ` ecocode
  2005-11-17 16:07 ` Reiner Steib
  0 siblings, 2 replies; 3+ messages in thread
From: Ian Zimmerman @ 2005-11-17 14:03 UTC (permalink / raw)



My main mail source is a directory with multiple spool folders,
into which I split with procmail.  I prefer splitting with procmail
to Gnus' built-in nnmail-split mechanism for various reasons and
don't want to change that.  Now what if I want to fetch from the
default system mailbox /var/mail/foo as well?  I can add an mbox
source for it, but how does Gnus know what group these articles
belong to?  Do I have to define nnmail-split-methods?  Will
that clash with the procmail way (i.e. will all articles then
be routed to the one and only group in nnmail-split-methods,
ignoring the procmail split)?

Thanks.

-- 
A true pessimist won't be discouraged by a little success.


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

* Re: mail sources and groups
  2005-11-17 14:03 mail sources and groups Ian Zimmerman
@ 2005-11-17 14:51 ` ecocode
  2005-11-17 16:07 ` Reiner Steib
  1 sibling, 0 replies; 3+ messages in thread
From: ecocode @ 2005-11-17 14:51 UTC (permalink / raw)


* Ian Zimmerman <nobrowser@gmail.com> wrote:
|
| My main mail source is a directory with multiple spool folders,
| into which I split with procmail.  I prefer splitting with procmail
| to Gnus' built-in nnmail-split mechanism for various reasons and
| don't want to change that.  Now what if I want to fetch from the
| default system mailbox /var/mail/foo as well?  I can add an mbox
| source for it, but how does Gnus know what group these articles
| belong to?  Do I have to define nnmail-split-methods?  Will
| that clash with the procmail way (i.e. will all articles then
| be routed to the one and only group in nnmail-split-methods,
| ignoring the procmail split)?
| 
| Thanks.

Ian ,

I've the same setup as you , filtering mail through procmail. I did not
want to give up the procmail filtering even for local mail. For this I
added this line in /etc/postfix/main.cf

mailbox_command = /usr/bin/procmail

This works nice, I can still filter mail with procmail and gnus doesnot
feel any difference between local and foreign mail

HTH

-- 
Eco
http://www.ecocode.net
* Life is wonderful with Emacs and Perl *


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

* Re: mail sources and groups
  2005-11-17 14:03 mail sources and groups Ian Zimmerman
  2005-11-17 14:51 ` ecocode
@ 2005-11-17 16:07 ` Reiner Steib
  1 sibling, 0 replies; 3+ messages in thread
From: Reiner Steib @ 2005-11-17 16:07 UTC (permalink / raw)


On Thu, Nov 17 2005, Ian Zimmerman wrote:

> My main mail source is a directory with multiple spool folders,
> into which I split with procmail.  I prefer splitting with procmail
> to Gnus' built-in nnmail-split mechanism for various reasons and
> don't want to change that.  Now what if I want to fetch from the
> default system mailbox /var/mail/foo as well?  I can add an mbox
> source for it, 

,----[ <f1> v mail-sources RET ]
| mail-sources is a variable defined in `mail-source.el'.
| Its value is 
| ((file)
|  (directory :path "/foo/bar/procmail/" :suffix ""))
| 
| Documentation:
| *Where the mail backends will look for incoming mail.
| This variable is a list of mail source specifiers.
| See Info node `(gnus)Mail Source Specifiers'.
`----

> but how does Gnus know what group these articles belong to?  Do I
> have to define nnmail-split-methods?

Yes.

> Will that clash with the procmail way (i.e. will all articles then
> be routed to the one and only group in nnmail-split-methods,
> ignoring the procmail split)?

No.  Just don't change `nnmail-resplit-incoming':

,----[ (info "(gnus)Mail Source Specifiers") ]
|      There is also the variable `nnmail-resplit-incoming', if you set
|      that to a non-`nil' value, then the normal splitting process is
|      applied to all the files from the directory, *Note Splitting
|      Mail::.
`----

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


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

end of thread, other threads:[~2005-11-17 16:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-17 14:03 mail sources and groups Ian Zimmerman
2005-11-17 14:51 ` ecocode
2005-11-17 16:07 ` Reiner Steib

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