On Sun, Jun 18, 2000 at 12:53:08PM -0700, Dale Morris wrote:
> I'm trying to get procmail working on my rh 6.2 system, after reading the
> manual and banging my head on the keyboard for several hours, I'm
> thoroughly confused--a comfortable state, for me and linux.. my question
...
> What I want to do is have procmail transfer mutt-users messages
> /var/spool/mail/dlm to /home/dlm/Mail/mutt, correct? I have a mutt mbox,
> and here's how I've setup the .procmailrc recipe:
> #mutt
> :0:
> * (^Reply-To:.*|^TO_)mutt-users
>    $MAILDIR/mutt
> 
> But it doesn't work. I will attach my .procmailrc and .muttrc files if
> someone cares to take a look.

First off, since this sounds like a delivery problem, mutt is not at
all relevant.  This is a MTA problem.  For RH6.2, the default is for
your MTA to be sendmail with local delivery handled by procmail.  So
far, so good.

Procmail filtering basics: Procmail filters your incoming messages at
time of delivery.  If your mutt e-mail ever gets to
/var/spool/mail/dlm, then your procmail recipe has already failed.
E-mail which gets diverted to /home/dlm/Mail/mutt will never go
anywhere near /var/spool/mail/dlm.

First question: How is incoming e-mail getting to your system?  If you
are using fetchmail or it is being delivered directly via SMTP, you
are looking good so far.  If you are using fetchmail with an odd --mda
setting or some other program which is writing it directly to
/var/spool/... rather than delivering it to your local SMTP server, we
have just identified one of your problems.

Assuming that everything is ok to this point, it is time to consider
the rule you are using.  I am not a procmail guru, so the following
advice may not be 100% right, but it works for me:

Never, never, never filter a mailing list like mutt-users based on
To:, Cc:, From:, Subject:, Reply-To: or Mail-Followup-To: if you can
possibly help it.  What happens the first time someone bcc's the list?
Think about it.  Filtering on headers written by the user is a sure
recipe for failure.

Any reasonable mailing list server will add a header identifying the
list.  The most common header is Sender:, but I've also had to resort
to Mailing-List:, X-Mailing-List, and Delivered-To:.  In the case of
mutt-users, the header I use is Sender:.  That gives a rule like this:

:0:
* ^Sender: owner-mutt
$MAILDIR/mutt

I bet that rule will work a lot better for you than your current one.

Brian

Reply via email to