On Sat, 28 Jun 1997 you (luomat(_at_)peak(_dot_)org (Timothy J. Luoma)) wrote:
I have been working on the following procmail receipe for awhile
now, with help from the procmail mailing list folks....
[lengthy recipe omitted]
Tim, if I may say so, this seems to be rather overengineered for
what you're trying to do. Here's the quick'n'dirty solution that
works for me on my NeXT machine -- ok, it gives you some trailing
garbage, but what's the odd "of" or "de" or "vom" between friends,
particularly as the purpose of the exercise is just to have
something meaningful to display in your mailbox list.
This one's just for English and German, but you can easily see how
to amplify it.
===========coupez ici============
# Divert Read Receipts to their own mailbox,
# But check the body to ensure this isn't a regular
# mailing with the title "Read Receipt".
# Shift relevant content back into the Subject:
# Thanks to era eriksson <era(_at_)iki(_dot_)fi> for this neat variant
# which matches the message body on the special env var B.
:0
* ^Subject: (Read receipt|Empfangsbestaetigung)
* B ?? ^^(Your message regarding|Ihre Mitteilung bezueglich)\/.*
| formail \
-I "Subject: $MATCH" \
-I "X-Processed: `date`" \
| appnmail ReadReceipts
===========coupez ici============
el bid