On Sat, Mar 23, 2002 at 06:54:48PM -0500, Holger Wahlen wrote:
... due to the spaces used for indentation. Anita, try inserting this
before your recipe that calls formail to split the digest:
:0 fbw
| sed "/^Message:/,/^Subject:/s/^ //"
(Three spaces between "^" and "/".) This deletes three spaces at the
beginning of each line between the message number and the subject
line, so the Date: and From: move to the beginning of the line. If
some of the messages include other header lines with a different
amount of spaces, you can change that to
:0 fbw
| sed "/^Message:/,/^Subject:/s/^ *//"
(Can Date and From - or other lines, if present - run over more than
one line in these digests? That might cause problems and the sed call
should be modified then, but I don't think that's really something to
worry about.)
By the way:
* ^Subject:.*[Somename]
You probably want "\[" instead of "[" in that line. As written, this
matches any subject containing one of the characters between the
brackets, not the literal expression opening bracket - name - closing
bracket.
/HW
I used the second one with the '*' in it and it worked fine. Hopefully I'll
get some time to study what it actually does sometime. Thanks for the tip
on using the '\' That solves another problem I had which I had been solving
by a rather cumbersome means. No wonder I was having the problem!
I really appreciate the help.
Anita
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail