procmail
[Top] [All Lists]

Re: A recipe does not work for one list only

2005-04-18 11:10:23
On Mon, Apr 18, 2005 at 09:55:13PM +0430, Hossein Movahhedian wrote:

In my previous attempts I used a ~/.procmailrc with only one recipe
for tests, but this time included all recipes in that. The file
$LOGFILE is created successfully. $LOGFILE and ~/.procmailrc are about
12 KB and 3 KB respectively. I really don't know which parts should
be cut and pasted here, however if you wish to see them I can compress
and send them to you.

Here's what you can do:

In you .procmailrc, set VERBOSE=off at the top.

Somewhere just above the recipes that aren't working, put

  VERBOSE=on

Right after the problem section, put

  VERBOSE=off

again.

Rename your existing log.  Now, with no current log, type at the shell
prompt,

    procmail < message

where "message" is a saved copy of a message from that list.

Now look at the new log.  If it's not too big, send it to the list.
Or send a URL to where it can be seen.

Note that the above command will work if the current .procmailrc
is the one you're worried about.  Otherwise, you'll have to specify
an rcfile on the command line as well.


BTW, from 3 mails that I received from procmail mailing-list, one
of them didn't contain 'X-BeenThere: 
procmail(_at_)lists(_dot_)rwth-aachen(_dot_)de'.
Is it safe to use
'* ^(X-BeenThere:.*|TO_)procmail(_at_)lists(_dot_)rwth-aachen(_dot_)de'?
I am asking this because about 20 mails was lost in one of the tests.

Procmail list mail always has that header.  I have filtered on that
header for ten years.  If you got email that seems related to your
procmail posts but it doesn't have that header, then someone has cc'd
or bcc'd you a message privately in addition to, or instead of,
sending to the list directly.

It is pretty much imperative to learn how to troubleshoot procmail
if you plan to use it and depend on it regularly.  Take some time,
start simply, and build up in baby-steps until you can see what you
are doing.

-- 
dman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail