procmail
[Top] [All Lists]

Re: procmail stops filtering on vacation

1998-01-07 10:21:34
Bill Durant explained further,

| It turns out that procmail is
| actually filtering the mail as expected.  However, the only
| problem is that each mail shows up twice on my mailer.  That is,
| when email X arrives, procmail puts it in mailbox X, per my recipe,
| and then sends it to my inbox two times.  This happened as soon as I
| turned on vacation on my mailer (I'm using CDE dtmail).
| 
| dtmail modified the .forward file by adding the following line:
| 
| \bdurant, "| /usr/bin/vacation bdurant"

| So the question is: why am I receiving every new email twice?

You are still getting proper procmail filtering, and you said that dtmail
_added_ that line to .forward, so I gather that the first line of .forward
is your original pipe to procmail.

Apparently your version of vacation is one that does not deposit its own copy
of a message into your mail spool, because dtmail included a forwarding des-
tination of \yourlogname to put one there.  That explains the two copies:
procmail is delivering one to $DEFAULT, the MDA is delivering one to your
mail spool because of the "\bdurant", and vacation is not delivering any, so
1+1+0=2.

The answer is to take that line out of .forward and let procmail run the
show, as Era and I have said.

| Should I just emulate vacation as explained in procmailex(5) instead?

You could do that or you could have procmail run /usr/bin/vacation as
Era indicated:

  [after recipes that handle mail from lists and other kinds of mail that
   vacation should not answer]

  :0c
  * ! ^FROM_DAEMON
  | vacation $LOGNAME

  [and then further recipes as needed]
 

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