procmail
[Top] [All Lists]

Re: forwarding with attachments

2001-03-05 21:25:53
"Carlos Eduardo R. L. de Miranda" <consultor(_at_)linuxbr(_dot_)com(_dot_)br> 
writes:
:0 B
* $ ^Content-(Type|Disposition)*:${dotstar}name${ws}=${ws}${dq}.*${ext}${dq}
{
 SUBJ_=`formail -c -xSubject:`
 FROM_=`formail -c -xFrom:`
 TO_=`formail -c -xTo:`

 :0 fhw
 | ( echo "=================================="; \
     echo "From .....: $FROM_"; \
     echo "To .......: $TO_"; \
     echo "Subject ..: $SUBJ_"; \
     echo "==================================" ; \
     cat - )
 :0
 !rivellis(_at_)terra(_dot_)com(_dot_)br
}

This is the situation:
The mail is forwarded but the original is sent including the header, body
and attachment on the body of it and not as attachment. I didn't try with
more than one attachment yet.

It isn't clear from the above want you _want_ to happen.  The nested
filtering recipe is almost certainly not want you want, as it inserts
the lines "==================================" into the _header_ of the
outgoing message, but they're not legal header fields, so your message
is probably being munged by later MTAs.

What do you want the new message to look like?  Do you want it to include
the entire original message (including header or not?) and if so, do you
want the text form or do you want it as a MIME attachment?  (Making it
a legal MIME attachment isn't particularly easy.)  What do you _want_?


Philip Guenther
_______________________________________________
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>