Except for the fact that the only way I'd know to do what you want would
be to correlate the procmail log and the sendmail-generated entries in
syslog, using the date and from as keys for search.
On Wed, 26 Nov 2003, Mairhtin O'Feannag wrote:
> Hello,
>
> I need (Very desperately) to have the TO: added to the procmail.log
> output. Currently, the From: Subject and action are in the log, as shown
> below :
>
> From he...@mybenefitz.com Wed Nov 26 10:10:21 2003
> Subject: AM appt
> Folder: /var/spool/mail/jenniferh
> 2088
> From Sew...@excite.com Wed Nov 26 10:11:54 2003
> Subject: *****SPAM***** Hi
> Folder: /var/spool/mail/spam
> 4379
>
> But I need who this is To: as well.
>
> I'm very very bad at Procmail recipies, so please bear with me if I ask
> follow up questions.
>
> Thanks in Advance,
>
> Mairhtin O'Feannag
> San Francisco, Ca.
>
Here's the recipe that I use to do that:
:0
* ^\/To:.*$
{ LOG="
$MATCH" }
I discuss the extraction operator (\/) and $MATCH in my Procmail
Quick Start, which is here
<http://www.ii.com/internet/robots/procmail/qs/>
Hope that helps,
Nancy
--
Nancy McGough
Infinite Ink ~ <http://www.ii.com>
Deflexion & Reflexion ~ <http://deflexion.com>