Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PROCMAIL question

1 view
Skip to first unread message

LC's No-Spam Newsreading account

unread,
Nov 27, 2003, 5:03:53 AM11/27/03
to
You should ask your procmail question on comp.mail.misc, I am
redirecting this thread there (with the Followup tag), It's off topic on
comp.mail.sendmail.

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.
>

Nancy McGough

unread,
Nov 27, 2003, 5:59:04 AM11/27/03
to
On 27 Nov 2003 LC's No-Spam Newsreading account (nos...@ifctr.mi.cnr.it) wrote:
> On Wed, 26 Nov 2003, Mairhtin O'Feannag wrote:
> > I need (Very desperately) to have the TO: added to the procmail.log
> > output.

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>

0 new messages