On 9-Dec-2006, at 11:54, Michael J Wise wrote:
TRAP='/usr/bin/sed -n '"'"'/^$/'"'"'"{h;s#^#Folder:
$LASTFOLDER#;p;g;p;q;};p;"'
That is rather nifty
I have this setup:
#start of .procmailrc
MAILDIR=$HOME/Mail
# Get thePlus Address , if there is one
ARG = $1
DATE=`date '+%d-%b-%Y'`
LONGDATE=`date "+%Y-%b-%d %H:%M:%S %z"`
MYLOG="pm.$DATE.log"
LOGFILE=$MYLOG
NL="
"
TRAP='/usr/bin/sed -n '"'"'/^$/'"'"'"{h;s#^#$LONGDATE Folder:
$LASTFOLDER#;p;g;p;q;};p;"'
:0
{ LOG = "$LONGDATE; ARG = $ARG; TO = $TO$NL" }
so I end up with something like this in the log:
2006-Dec-11 14:37:51 -0700; ARG = test TO = kremels+test(_at_)kreme(_dot_)com
From gkreme(_at_)gmail(_dot_)com Mon Dec 11 14:37:51 2006
Return-Path: <gkreme(_at_)gmail(_dot_)com>
X-Original-To: kremels+test(_at_)kreme(_dot_)com
Delivered-To: kremels+test(_at_)covisp(_dot_)net
Received: from [10.0.0.13] (c-67-176-96-99.hsd1.co.comcast.net
[67.176.96.99])
by mail.covisp.net (Postfix) with ESMTP id BEC28118B572
for <kremels+test(_at_)kreme(_dot_)com>; Mon, 11 Dec 2006 14:37:51
-0700 (MST)
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Transfer-Encoding: 7bit
Message-Id: <0B6039BE-A43C-4429-BC4B-5696C1A682D1(_at_)gmail(_dot_)com>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
To: kremels+test(_at_)kreme(_dot_)com
From: Google Kreme <gkreme(_at_)gmail(_dot_)com>
Subject: Test +test
Date: Mon, 11 Dec 2006 14:37:50 -0700
X-Mailer: Apple Mail (2.752.3)
X-Covisp: 64.140.43.68
2006-Dec-11 14:37:51 -0700 Folder: /home/kremels/Mail/test
--
Rumour is information distilled so finely that it can filter through
anything. It does not need doors and windows -- sometimes it does not
need people. It can exist free and wild, running from ear to ear
without ever touching lips.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail