I'm having a problem filtering duplicates with procmail-3.13.1-2. The
recipe is
:0 Whc: msgid.lock
| formail -D 8192 msgid.cache
:0 a:
/home/holtzm/mail/duplicates
Mailstat shows this
Total Number Folder
----- ------ ------
0 6 ## /bin/sh: /home/holtzm/mail/backup: Not a directory
0 6 ## formail: Couldn't open "msgid.cache"
0 6 ## procmail: Lock failure on "msgid.lock"
11052 6 /home/holtzm/mail/holtzm
----- ------
11052 24
the log file with verbose turned on is
[holtzm(_at_)localhost holtzm]$ mailstat
Total Number Folder
----- ------ ------
0 6 ## /bin/sh: /home/holtzm/mail/backup: Not a directory
0 6 ## formail: Couldn't open "msgid.cache"
0 12 ## procmail: Acquiring kernel-lock
0 6 ## procmail: Assigning "FORMAIL=/usr/bin/formail"
0 6 ## procmail: Assigning
"INCLUDERC=/home/holtzm/Procmail/backup.rc"
0 6 ## procmail: Assigning
"INCLUDERC=/home/holtzm/Procmail/duplicates.rc"
0 6 ## procmail: Assigning
"INCLUDERC=/home/holtzm/Procmail/lists.rc"
0 6 ## procmail: Assigning
"INCLUDERC=/home/holtzm/Procmail/spamtrap.rc"
0 6 ## procmail: Assigning "LASTFOLDER= cd
/home/holtzm/mail/backup && rm -f dummy `ls -t msg.* | sed -e 1,32d`"
0 6 ## procmail: Assigning
"LASTFOLDER=/home/holtzm/mail/backup"
0 6 ## procmail: Assigning
"LASTFOLDER=/home/holtzm/mail/holtzm"
0 6 ## procmail: Assigning "LASTFOLDER=formail -D 8192
msgid.cache"
0 6 ## procmail: Assigning "LOGABSTRACT=yes"
0 6 ## procmail: Assigning "MAILDIR=/var/spool/mail"
0 6 ## procmail: Assigning "PMDIR=/home/holtzm/Procmail"
0 1 ## procmail: Error while writing to "_2iAQ.localhos"
0 1 ## procmail: Error while writing to "_7iAQ.localhos"
0 1 ## procmail: Error while writing to "_AjAQ.localhos"
0 1 ## procmail: Error while writing to "_FjAQ.localhos"
0 1 ## procmail: Error while writing to "_siAQ.localhos"
0 1 ## procmail: Error while writing to "_xiAQ.localhos"
0 6 ## procmail: Executing " cd /home/holtzm/mail/backup &&
rm -f dummy `ls -t msg.* | sed -e 1,32d`"
0 6 ## procmail: Executing "formail,-D,8192,msgid.cache"
0 6 ## procmail: Lock failure on "msgid.lock"
0 6 ## procmail: Locking "/home/holtzm/mail/holtzm.lock"
0 6 ## procmail: Locking "msgid.lock"
.................snip a bunch of spam filters.............
0 6 ## procmail: No match on "^FROMMarketPlayer
<list_support(_at_)MARKETPLAYER(_dot_)COM>"
0 6 ## procmail: No match on "^FROMWSJ.com Editors"
0 6 ## procmail: No match on "^FROMjjoseph1(_at_)uswest(_dot_)net"
0 6 ## procmail: No match on
"^FROMptsconnection(_at_)netscape(_dot_)net"
0 1 ## procmail: Notified comsat:
"holtzm(_at_)4022810:/home/holtzm/mail/holtzm"
0 1 ## procmail: Notified comsat:
"holtzm(_at_)4024376:/home/holtzm/mail/holtzm"
0 1 ## procmail: Notified comsat:
"holtzm(_at_)4025944:/home/holtzm/mail/holtzm"
0 1 ## procmail: Notified comsat:
"holtzm(_at_)4027504:/home/holtzm/mail/holtzm"
0 1 ## procmail: Notified comsat:
"holtzm(_at_)4030969:/home/holtzm/mail/holtzm"
0 1 ## procmail: Notified comsat:
"holtzm(_at_)4032530:/home/holtzm/mail/holtzm"
0 6 ## procmail: Opening "/home/holtzm/mail/backup"
0 6 ## procmail: Opening "/home/holtzm/mail/holtzm"
0 6 ## procmail: Program failure (73) of "formail"
0 6 ## procmail: Unlocking "/home/holtzm/mail/holtzm.lock"
0 1 ## procmail: [2221] Fri Aug 10 00:01:45 2001
0 1 ## procmail: [2226] Fri Aug 10 00:01:46 2001
0 1 ## procmail: [2231] Fri Aug 10 00:01:47 2001
0 1 ## procmail: [2236] Fri Aug 10 00:01:48 2001
0 1 ## procmail: [2241] Fri Aug 10 00:01:48 2001
0 1 ## procmail: [2246] Fri Aug 10 00:01:48 2001
11052 6 /home/holtzm/mail/holtzm
----- ------
11052 300
formail looks like this
-rwxr-xr-x 1 root root 26684 Apr 6 1999 /usr/bin/formail
Permissions don't look right but I'm not sure if it should be world
writable.
$HOME/msgid is
-rw-rw-rw- 1 holtzm holtzm 0 Sep 10 2000 msgid.cache
which looks O.K. After all this thrashing the duplicates show up in my
incoming folder and the duplicates folder is empty. All 6 messages in this
example were duplicates of messages previously downloaded but not flushed
from the server. I've dug thru this lists' archives and RTFM'd till I'm
half blind with no luck. If I've missed it I would appreciate a pointer.
Any help *greatly* appreciated.
--
Bob Holtzman
"If you think you're getting free lunch
......check the price of the beer!"
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail