procmail
[Top] [All Lists]

Re: procmailrc debugging

1996-07-24 09:49:15
Stephen C. Hill asked,

| 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.

| :0 c
| * ^TOnugrange(_at_)best(_dot_)com
| steveh
| 
| :0 c
| * ^TOsteveh@
| steveh
| 
| :0 c
| * ^TOdianne@
| dianne
| 
| :0 c
| * ^TOjamie@
| jamie

Since you're filing copies, procmail still has the original to handle,
so procmail saves the original in $DEFAULT, which is the same place
as $MAILDIR/steveh, so you get two copies there.  (You should also use
local lockfiles unless there is some special circumstance you didn't
tell us about.)

Let's try it this way instead:

  :0c: # If Dianne is an addressee, give her a copy.
  * ^TOdianne@
  dianne

  :0c: # If Jamie is an addressee, give one to her.
  * ^TOjamie@
  jamie

  # If Dianne or Jamie or both got it and it isn't for Steve also, lose it.
  :0h
  * LASTFOLDER ?? ^^(dianne|jamie)^^
  * !^TO(steveh@|nugrange(_at_)best\(_dot_)com)
  /dev/null

and then procmail will handle mail that is to steveh or to 
nugrange(_at_)best(_dot_)com
according to the rest of your rcfile (which, if that's the end of the file,
will mean saving it in $DEFAULT).

| Additionally, I am receiving empty messages, probably representing
| spare blank lines between some messages.

I can't help you with that part.  Good luck.

<Prev in Thread] Current Thread [Next in Thread>