I'm afraid that I am stumped. I have a home system and we have four
mailboxes on it, root, steveh, dianne and jamie. I am pulling a POP3
mailbox (nugrange(_at_)best(_dot_)com) down and using procmail to "sort the
mail"
locally. Therefore, any mail addressed ONLY to the POP3 mailbox is
routed to me. I used the "c"opy flag, because mail is sometimes
addressed to more than one of us. I am enclosing my procmailrc, in
the hope that someone can explain why I (steveh) am receiving
duplicate copies of messages sent to others in my family.
Additionally, I am receiving empty messages, probably representing
spare blank lines between some messages.
I am running Linux on a Pentium, and have the crontab task (below) set
to fire off each half hour. popclient logs into the POP3 server, and
pulls the messages down:
popclient -c -3 -u {userid} -p {passwd} {system} | procmail
Here's the procmailrc file:
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=/var/spool/mail # You'd better make sure it exists
DEFAULT=$MAILDIR/steveh
LOGFILE=$MAILDIR/logfile
LOCKFILE=$MAILDIR/.lockmail
VERBOSE=on
:0 c
* ^TOnugrange(_at_)best(_dot_)com
steveh
:0 c
* ^TOsteveh@
steveh
:0 c
* ^TOdianne@
dianne
:0 c
* ^TOjamie@
jamie
Here are the mailstat messages after sending one message from me to
Jamie:
Total Average Number Folder
----- ------- ------ ------
0 0 2 ## procmail: Acquiring kernel-lock
0 0 1 ## procmail: Assigning "LASTFOLDER=jamie"
0 0 1 ## procmail: Assigning "LASTFOLDER=steveh"
0 0 1 ## procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)jamie@"
0 0 1 ## procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)steveh@"
0 0 2 ## procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)dianne@"
0 0 1 ## procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)jamie@"
0 0 2 ## procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)nugrange(_at_)best(_dot_)com"
0 0 1 ## procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)steveh@"
0 0 1 ## procmail: Opening "jamie"
0 0 1 ## procmail: Opening "steveh"
0 0 1 ## procmail: [699] Wed Jul 24 01:25:29 1996
0 0 1 ## procmail: [699] Wed Jul 24 01:25:30 1996
0 0 1 ## procmail: [702] Wed Jul 24 01:25:34 1996
2215 1107 2 /var/spool/mail/steveh
-----------------------------------------------------------------
Steve Hill
Email: steveh(_at_)nugrange(_dot_)vip(_dot_)best(_dot_)com
415-961-7889
-----------------------------------------------------------------