procmail
[Top] [All Lists]

How can I force Procmail to write an action to the logfile?

1998-12-11 17:58:26
I have currently follow environment variables set:

PATH=/usr/bin:/usr/local/bin    
MAILDIR=$HOME/mail              
LOGFILE=$MAILDIR/procmail.log   
VERBOSE=no                      
SENDMAIL=/usr/bin/sendmail      


the recipe's are as follows:

:0 c
* ^TOfirstuser(_at_)mydomain(_dot_)com
* !^FROM_DAEMON
! my(_dot_)mailbox(_at_)provider(_dot_)it

:0 c
* ^TOseconduser(_at_)mydomain(_dot_)com
* !^FROM_DAEMON
! his(_dot_)mailbox(_at_)provider(_dot_)it

:0 
* ^TOseconduser(_at_)mydomain(_dot_)com
* !^FROM_DAEMON
! her(_dot_)mailbox(_at_)provider(_dot_)it, my(_dot_)mailbox(_at_)xyz(_dot_)com

# the list has about 30 different names and continues
# and more filtering rules

# below actions will kill overflow of carbon copies


:0 
* ^TOfirstuser(_at_)mydomain(_dot_)com
/dev/null

:0 
* ^TOseconduser(_at_)mydomain(_dot_)com
/dev/null

:0 
* ^TOthirduser(_at_)mydomain(_dot_)com
/dev/null

# all messages uncorrectly addressed receive a
# special header for treatement in Pegasus Mail
# upon arrival.

#add an error header to the message
:0fhw
| formail -I "X-likely-Error: ugh"

# all

:0       #all the mail that has not found a rule will be forwarded
! mydomain(_at_)myprovider


Now to the problem I like to solve: 

- Procmail writes for most of the messages a log that looks like this

From myfriend(_at_)hisprovider(_dot_)com  Thu Dec 10 10:23:50 1998
 Subject: Great Job
  Folder: /dev/null

This log does not tell me that the message has actually been 
delivered to my(_dot_)mailbox(_at_)provider(_dot_)it (which it correctly did, 
but it's 
not ending up in the log-file).

I cannot run the system in verbose mode on the whole time, but I 
would like to record each message delivery and the mailbox to 
which it was sent. This should also happen on carbon-copies (in 
case the same message is addressed to the 
firstuser(_at_)mdomain(_dot_)com and to the seconduser(_at_)mydomain(_dot_)com)


I have gone through the faq's but could not trace this point (yet)

- any guess what I should change?


-
Markus Wiedemeier
phone +39-348-3864636 - mailto:pingu(_at_)tin(_dot_)it
Damco Maritime   http://www.damcomar.com
Pegasus Mail     http://www.netconfig.com/pegasus/
CARGO-L          http://www.damcomar.com/cargo2.htm
Geweb            http://www.geweb.com
Pitcasa          http://www.pitcasa.com
Home             http://www.geocities.com/WallStreet/3657/
+++++++++++++++++++++++
Thought for the day:
    Book (n): a utensil used to pass time while waiting
    for the TV repairman.

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