because you're not doing anything which woulc cause something to be logged.
This is what I figured, I just was not sure what the anything should be
hehe. :)
[in /etc/procmailrc]
LOGFILE=/var/log/procmail.log
# logs username and message size
# (assumes any valid message is at least 1 byte)
:0
* 1^1 > 1
{
LOG="$LOGNAME $=
"
}
So this works really well.
On my one Redhat 7.2 system the above does what I expect. It creates a log
like
username1 3829
username2 488
username1 8993
username5 3321
This is great. However I have gotten some strange inconsistencies. When I
tried it on a Redhat 7.0 and another 7.2 system I get a lot more info
(procmail and sendmail versions appear to be identical).
username1 3829
From root Mon Apr 22 16:41:36 2002
Subject: test
Folder: /var/spool/mail/username1 3829
username2 488
From root Mon Apr 22 16:41:36 2002
Subject: test
Folder: /var/spool/mail/username2 488
username1 8993
From root Mon Apr 22 16:41:36 2002
Subject: test
Folder: /var/spool/mail/username1 8993
...
The following recipe as expected on these systems eliminates the "username
size" type log and only logs the more verbose type info.
:0
* 1^1 > 1
{
LOG=""
}
So I am wondering where the extra info is coming from on the other
systems. I mean I actually like the more verbose log, and it is similar to
other procmail logs I have (from .procmailrc) I am just not clear on where
it is coming from. Either log would be great, I just want to make sure
things are consistent. :)
Thanks again for any help. :)
Cheers,
Terrence
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail