procmail
[Top] [All Lists]

Modifying message body via procmail

1997-10-26 23:26:51
    Why I'm doing this... MS Outlook has a braindead
"rules" implementation that uses "display names" rather
than real filtering/screening based on the actual
internet headers.  E.g. messages addressed to the
MAPINFO-L mailing list as...

"Map Info"<mapinfo-l(_at_)csn(_dot_)net>
"MapInfo"<mapinfo-l(_at_)csn(_dot_)net>
"Tech support"<mapinfo-l(_at_)csn(_dot_)net>

are filtered on the basis of being addressed to...

"Map Info"
"MapInfo"
"Tech support"

This is *NOT* useful when trying to implement a "View"
which displays only messages from MAPINFO-L.  However,
it can also use a rule based on the presence/lack of
any specified character string in the message body.
(MS Outlook is a POPmail client, so sending off
messages to different folders won't work for me.)

    What I'm trying to do... is to put a string at the
beginning of the message body, e.g...

//////////MAPINFO-L\\\\\\\\\\
//////////RISKS-L\\\\\\\\\\
//////////PROCMAIL-L\\\\\\\\\\


# Thanks to a recent change in my ISP's configuration
# the following two lines are required at the top of
# the .procmailrc file
#
PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
SHELL=/bin/sh
#
# Various spamfilters then...
#
:0Hiw:
* ^Subject:.*//SYSTEST
{
:0bic
BODY=`|cat`

INSERT="I: have inserted this line into the message."

:0hf
|(cat; echo $INSERT; echo $BODY)
}

    Am I on the right track?  On the other hand, if
somebody knows of a better  Win95 mailer that can act as
an MS Exchange client,  I'd be very interested.

 Walter Dnes
 <waltdnes(_at_)interlog(_dot_)com>

<Prev in Thread] Current Thread [Next in Thread>