On Sun, Dec 12, 2004 at 08:18:48PM +0100, Robert Allerstorfer wrote:
On Sun, 12 Dec 2004, 18:27 GMT+01 Dallman Ross wrote:
:0
* $ MATCH ?? $SPACE$SPACE
{ H_SUBJ = `formail -zx Subject | tr -d '\012'` }
Thank you Dallman, `formail -zx Subject` was the key to extract the
Subject without adding extra space.
H_SUBJ = `formail -zx Subject`
resulted in
Assigning "H_SUBJ==?utf-8?q?First-line-followed-by-one-space?=
Second-line"
Yes. Fwiw, I have an t?csh alias, "headparse", I use for testing:
alias headparse 'formail < \!:$ -zfx \!:1 -s | sed "s/^<//; s/>//"'
I do that so I can rmove the < >'s from Message-IDs easily for
grepping without quotes.
10:38pm [~/Mail/.myspam] 420[0]> foreach id ( `headparse message-id
../purgatory` )
foreach? grep -lw "$id" msg.* | xargs rm
foreach? end
That is useful to me if some good messages were in purgatory, for instance.
--
dman
____________________________________________________________
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