Responding To: era eriksson <era(_at_)iki(_dot_)fi>
Original Date: Fri, 13 Jun 1997 17:14:07 +0300 (EET DST)
Here's an attempt which doesn't use external processes:
* ^Subject: Read Receipt$
* ^X-Prefiled: mailer
* B ?? ^^( *$)*Your message regarding \/\
.*$?.*[0-9][0-9]:[0-9][0-9]:[0-9][0-9] [ -+][0-9][0-9][0-9][0-9]
# Desired string is now in $MATCH but might contain newlines
But this doesn't quite work. The message:
Your message regarding "bug again" of Sat Jun 14 1997 12:27:25 -0400 was
read on Sat Jun 14 1997 19:02:08 +0200.
gave me a subject of:
"bug again" of
(the other thing you gave me gives me the whole line, which I don't want either)
How about we try to get just get rid if the first part altogther up to the
first " and then the " and the ' of ', like this:
| sed 's/Your\ message\ regarding\ \"//g' | sed 's/\"\ of\ .*//g'
The old subject may have had " marks in it, so we'll hope that it does not
have '" of ' in it...... it isn't perfect but it's something....
This will also only work for English language, but that's 90% of the
receipts I get.
TjL <luomat(_at_)peak(_dot_)org> / http://www.peak.org/~luomat/next/
NeXT bookmarks: http://www.peak.org/~luomat/next/bookmarks.html
sed 's/End\ of\ sig/pithy\ quotation/g'