procmail
[Top] [All Lists]

Re: [Procmail] Re: Autoresponse based on email address

2003-01-04 12:30:46
Uh, Useless Cat award.

Agreed.


Try

      fmt path/to/message | $SENDMAIL -t

In my credit, as previously mentioned, I don't actually use a file.

LOOP_ADDR_TO_ADD=`formail -rt -xTo:`
ORIG_RCPT=`formail -xTo:`
SUBJECT=`formail -xSubject:

| (formail -r -A "X-Loop: $LOOP_ADDR_TO_ADD" \
        -i "From: some_addr(_at_)geneseo(_dot_)edu" ; \
        (echo -e "The message received from you on\n\n" \
        `date` ; \
        echo -e "\n with subject: \"$SUBJECT\" to $ORIG_RCPT was not accepted 
because " ; \
        echo "some $MATCH var here.) | fmt) \
        | $SENDMAIL -t -oi -oe


-- 
--))> >--))>
Mark T. Valites
Unix Systems Analyst
1 College Circle - 124b1 South Hall
SUNY Geneseo
Geneseo, NY 14454
585-245-5577
585-259-3471 (Cell)
585-245-5579 (Fax)


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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