procmail
[Top] [All Lists]

Re: "already read" bit set on processed messages

1997-04-28 22:13:00
-----BEGIN PGP SIGNED MESSAGE-----

Hi Ralph Sims!  I'm a UNIX administrator, spamfighter, and a virusfighter!
Messages stored in folders appear to have the "read" bit set after
being handled by procmail.  In my /var/spool/mail/$USER mailbox,
messages are listed as "new" via elm or pine.  When messages are
culled by procmail and placed in folders, this bit is un-set and
the messages are not flagged as "new", etc.  Is there a trick I'm
missing?  I am running procmail out of my .forward and not manually.
The normal inbox shows "Status: OR" on those that have been read
and no "Status: " field for undread messages.  Those in the procmail
folders have no "Status: " field at all, which is similar to the
unread messages in /var/spool/mail.

        For elm, it will only display the message with an "N" (new) if 
the mailbox you are viewing is /var/spool/mail/$LOGNAME (or whatever 
$MAIL is set to).  If it's viewing any other folder, it won't show an "N" 
on the side no matter what you so.

        One workaround (short of hacking the source) is to set the 
Status: header to "O".  Here's a recipe for procmail-d that does this:

:0:
* ^Resent-From: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
| formail -A"Status: O" >>$MAILDIR/tech

        Regards,

<Doug Muth> ----- <http://www.ot.com/~dmuth> ---- Est sularus oth Mithas!
Co-author of the SPAM-L FAQ -=-=-= http://www.snowpoint.com/spam-lfaq.txt
Responsible Anti-spam ISPs -=-=-=-=-=-=- http://spam.abuse.net/goodsites/
Anti-virus software and utils -=-=-=-=-=-= http://www.ot.com/~dmuth/virus

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Send a blank e-mail to dmuth+help(_at_)ot(_dot_)com for my public key

iQCVAwUBM2VzTR0LJlIsPN1JAQEFvAP/Zk0N4ihQqBfAnQZ2v8fPepXbzGfmPrbM
ICxYeOedvXU1phS2iZ3bFah+RzBAlrE79F9JBChHNgQuC/QXE88K3vWAxqPAnDi8
cHEHQiCgkYMZxmVEkrzQuS9/WqMMHYCaSbpk9mbbGrXxi88lCuk1/mXfy0g2SH0E
gowaeQguCE8=
=mVny
-----END PGP SIGNATURE-----