Rich followed up,
| Here's the head of ~/.procmailrc:
|
| # set to yes when debugging
| VERBOSE=yes
|
| # Remove ## when debugging; set to no if you want minimal logging; to all
| for max.
| LOGABSTRACT=all
|
| MAILDIR=$HOME/mail
|
| # Directory for storing procmail-related files
| PMDIR=$HOME/procmail
|
| # Put ## before LOGFILE if no logging is wanted (not recommended)
| LOGFILE=$PMDIR/log
| INCLUDERC=$PMDIR/recipes.rc
OK, so the logfile is set before there is any delivery, and there are no
other recipes preceding the dive into recipes.rc. Yet some messages just
never appear in the log ...
| Should the two lines above be switched in sequence?
Goodness, no!
Next step, I'd say, is to do as Fred Morris suggested and put something into
the message to show that procmail got to it; that way, when spam shows up in
your inbox, you can see whether procmail saw it at all. Between the LOGFILE
assignment and the INCLUDERC call,
:0hfw
| formail -A "X-Procmail-Saw-This: on $HOST, using $_"
and see whether the slippery messages have that line. (I was thinking of a
somewhat different approach, but the syntax that finally worked was
horrible, so let's stick with Fred's idea.)
As another diagnostic measure, add this up there after the assignment of
MAILDIR but before calling the INCLUDERC:
DEFAULT=default
That way any message that procmail never sees will still to go
/var/spool/mail/rshepard, but one that procmail sees but doesn't put
anywhere else will be in $HOME/mail/default; that's another way that you'll
be able to distinguish mail that slides past your spam recipes from mail
that never reaches them.
| On occasion, I get mail that should be in my inbox showing up in the
| SPAM folder.
If it's getting into the folder for spam, then procmail is seeing it. That
does indicate, though, that your recipes are overeager, so some that are
dropping mail into /dev/null instead of your spam folder are also probably
grabbing some mail that they shouldn't. (By the way, "SPAM" in all capitals
is Hormel's trademark for their canned pork product. Their lawyers greatly
prefer that people denote junk email or netnews posts with the lower-case
"spam," or "Spam" at the beginning of a sentence.)
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail