procmail
[Top] [All Lists]

Re: Hacking stdin? (Why doesn't this filter do what I expect)

1997-05-08 04:07:00
OK one small correction. 

:0fh
                | $FORMAIL -rtz \
                        -I "Subject: Re: $SUBJECT [rejected]" \
                        -A "X-Loop: robert(_at_)elastica(_dot_)com" \
                        -I 'Content-Type: multipart/mixed; boundary="--
next item --"' 

                :0fb
                | echo "This is the preamble of an RFC-1521 encoded, mixed
message." ;\
                echo "---- next item --" ;\
                echo "Content-Type: text/plain" ;\
                echo "" ;\
                $CAT $MESSAGE | $SED "s/\$SPAMCODE/$SPAM_CODE/g";\
                echo "---- next item --" ;\
                echo "Content-Type: message/rfc822" ;\
                echo "" ;\
                $CAT - ;\
                echo "---- next item ----"

Does there need to be a blank line after the optional preamble? I didn't
think so. Anyway, The message comes out like I expect it should but Pine
doesn't see it as a mime message.