At the very top of my .mailfilter filter file I have this:
foo = `date`
log "------------------- $foo -------------------\n"
...which obviously serves to timestamp every log entry in an easy to
read format.
I am always tweaking my .mailfilter file; doesn't everyone? <g> At any
rate, at a certain point in time I began seeing a lot of seemingly
"empty" log file entries. They look like this:
------------------- Sun May 20 15:35:53 EDT 2007 -------------------
------------------- Sun May 20 15:35:53 EDT 2007 -------------------
------------------- Sun May 20 15:38:55 EDT 2007 -------------------
------------------- Sun May 20 15:38:56 EDT 2007 -------------------
------------------- Sun May 20 15:38:56 EDT 2007 -------------------
------------------- Sun May 20 15:41:57 EDT 2007 -------------------
The three minute increment is, I believe, the setting of fetchmail's
daemon mode:
set daemon 180
I have recently added these lines to .mailfilter file:
if (/^Delivered-To:.*zooey/)
{
if (/^Subject:\s(.*)/)
{
SUBJ = $MATCH1
xfilter "reformail -I'Subject: Z] "$SUBJ"'"
}
}
The intent was to dectect those messages sent to user 'zooey' and
prefix a 'Z]' to their subject lines. It seems to work just fine.
These lines seem to be the culprit producing the "empty" log entries.
Could that be true, and is there a way to quell this behavior?
Best regards,