Hi,
I'm trying to return a binary file, in this example a resume, based on the
condition; Subject: Get resume. Basically, I'd like the body of the reply to
say something like, This is an automated reply. And the binary file to be
attached below it. I've read and tried different approaches, but I can't
quite get what I want, can anyone help ? Here's what I have done so far.
# Return Resume
:0 c
* !^Subject:.*Re:
* !^FROM_DAEMON
* ^Subject:.*Get resume.*
| (formail -rt -I "Content-Type: application/octet-stream" \
-I "Content-Transfer-Encoding: base64" \
-I "Content-Disposition: attachment; filename=resume.doc" \
; mimencode $HOME/resume/resume.doc) |$QMAIL
#| (formail -rt -I "Mime-Version: 1.0" \
# -I "Content-Type: multipart/mixed; boundary=JC1" \
# -I "--=JC1" \
# -I "Content-Type: text/plain; charset=US-ASCII" \
# -I "Content-Transfer-Encoding: quoted-printable" \
# -I "Content-Disposition: inline" \
# ; echo "This is an automated reply." \
# -I "--=JC1" \
# -I "Content-Type: application/msword" \
# -I "Content-Transfer-Encoding: base64" \
# -I "Content-Disposition: attachment; filename=resume.doc" \
# ; mimencode $HOME/resume/resume.doc) |$QMAIL
Ok, ok, don't make fun of my tests... I tried... :)
The recipe that is not commented partially works. A reply is sent back, but
the file can not be saved and/or read. The other one... well, no cigar.
Thanks.
Jean
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail