Michael Wise had a different view of Curtis Maurand's question, that
Curtis was asking specifically about the logabstract:
Suggestion is to write everything as "One Line" using the TRAP
directive.
I have felt your pain, previously.
Then I started using this.
TRAP='/usr/bin/sed -n '"'"'/^$/'"'"'"{h;s#^#Folder:
$LASTFOLDER#;p;g;p;q;};p;"'
[That would have to be one long line; it was broken in email.]
/^$/ will survive soft-quoting when TRAP is evaluated, so if sed is in a
directory in PATH, that can be reduced to,
TRAP='sed -n "/^$/{h;s#^#Folder: $LASTFOLDER#;p;g;p;q;};p"'
(I'm trusting Michael's sed code, being sick today and unable to parse
it in my head.)
Also, first you have to set LOGABSTRACT=off to suppress what procmail
would write on its own.
All told, I think this is easier as a way to keep logabstracts separate:
LOGABSTRACT=off
TRAP='formail -l "$LASTFOLDER"'
____________________________________________________________
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