Pls. E-mail
Thanx
Navishtha
With <DHFnr...@scisun.sci.ccny.cuny.edu>,
it seems Navishtha Sirisena (na...@sci.ccny.cuny.edu) sez:
+ How can set up auto reply to a message accodring to one or two strings
+ int eh BODY of the message?
To deal with the problem in reverse order: actually responding to
the original message is pretty much the same as the autoresponder
example given in the procmailex(5) man page. If you're having
problems with that end of the procmail recipe, I recommend looking
at Nancy McGough's Mail Filtering FAQ at
http://www.jazzie.com/ii/faqs/archive/mail/filtering-faq/
Also, I have taken the autoresponder example in procmailex(5) and
added my own explanations for walking a user through the example.
To get it, send mail to the address below with a Subject: line of
"send file autoresponder" (no quotes, message body ignored) and
you'll get it by email (using my autoresponder, go figure).
To base such a recipe on lines in the body instead of the header,
take a look at some of the flags in procmailrc(5):
B Egrep the body.
b Feed the body to the pipe (default).
Then, on the condition lines, you still need some information from
the same man page:
variablename ??
Match the remainder against the value of this environment variable
(this cannot be a pseudo variable). Special cases are `B', `H', `HB'
and `BH', which merely override the default header/body search area
defined for this recipe.
For example, I used to have a recipe which extracts a uuencoded tar
file from a mail message, if the body contains a uuencoded message
and the sender is a particular "working" address:
:0 b
* ^From.*ceg4330k*
* B ?? ^^begin
{
MAILDIR=$HOME/programming/ceg433
SHELL=/bin/sh
:0
| (uudecode; tar xmf xfer.tar 2>> xmit.err; rm xfer.tar)
}
Your recipe could use a similar test condition involving
"* B ?? whatever_trigger" before entering the {...} sub-block which
actually performs the autoresponding.
Luck++;
Phil
--
#include<std/disclaimer.h> The gods do not protect fools. Fools
finger pedw...@gamma.cs.wright.edu are protected by more capable fools.
email pedw...@valhalla.cs.wright.edu -Larry Niven
Questions like this are best posed on the procmail mailinglist
("procmail -v").
To search the body of a message, use a condition like:
* B ?? someword
--
Sincerely, s...@cuci.nl
Stephen R. van den Berg (AKA BuGless).
Climate is what you expect. Weather is what you get.