procmail
[Top] [All Lists]

Keeping the message body when replying

2000-04-15 16:30:00

Hello,

I'm trying to write an autoresponder which includes the original message
in the body, however the -k and -b flags don't seem to be working.  Does
anyone know how to do this?  Also, I'm trying to pull the address from
the "Reply-To:" field and set it as a forwarding address.  I know it's a
strange script, but I need to do this for a school project.  If you
could, please CC me if you reply... I can't seem to get on the list. 
*Any* help would be appreciated.

--------------------------------------------------------------------------------

SHELL=/bin/sh

:0
* !^FROM_DAEMON
* !^X-Loop: me(_at_)myhost(_dot_)mydomain
* ^To.*me
{
 RECIPIENT=`|formail -xReply-To:`

 :0 fhw
 | (formail -rtkb \
            -A"X-Loop: me(_at_)myhost(_dot_)mydomain") | /usr/sbin/sendmail -t

 :0 c
 ! "$RECIPIENT"
}

--------------------------------------------------------------------------------

Much thanks in advance!!!
~jim


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
"If at first you don't succeed, you must be a programmer."
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hi! I'm a .signature virus! Copy me into your ~/.signature to 
help me spread!

<Prev in Thread] Current Thread [Next in Thread>
  • Keeping the message body when replying, ~jim <=