Re: procmail failed to sort messages
On Wed, Jul 27, 2005 at 01:54:00AM +0800, phyrster wrote:
> Here is an entry in ~/.procmailrc,
>
> |:0
> |* ^To:.*(debian)
> |$MAILDIR/debian
> |
> |:0
> |* ^To:.*(mutt)
> |$MAILDIR/mutt
>
> The debian mailing list is processed correctly and all debian list messages
> are in 'debian'. But mutt list messages are sent to 'inbox' instead of
> 'mutt'.
>
> Isn't it weird that the same recipe are selectively processed by procmail?
Isn't it weird that you're posting to a mutt list with a procmail
problem?
Why not try the procmail list.
But these are stupid and overly simplistic recipes.
For this list, you could try something like this:
:0:
* ^Sender: <owner-mutt-users
mutt-users
If you want to use ^To:, I'd suggest looking at the procmailrc and
procmailex man pages for the usage of "^TO" or "^TO_" - but if you don't
want to use those, you'd at least want to match ^(To|Cc): - and then
skip the extraneous ".*".
e.g.,:
* ^TO_debian-users@lists\.debian\.org
$MAILDIR/debian
Note that if you're using mbox files (and looks like you are since
there's no trailing slash), you should use :0: instead of :0 (to create
a lockfile)).
Now if you have more procmail questions, I suggest you look at the
various procmail FAQs out there and / or consult a procmail mailing
list.
http://www.google.com/search?q=procmail+faq
/w