procmail
[Top] [All Lists]

mimepart.txt can handle image file

2007-05-14 23:02:12
Hi,

I used the Barton E. Schaefer's mimepart.txt procmail script to get the
content of the attachment out and it works for MS applications like Word
and Excel but it does not for image file, like JPG or BMP.

Is there an updated version to include decoding these?


Although I said it works, in that the file is written correctly and can
be opened without any problem but the
procmail log gave an error message as shown below. Any idea why this
error message?

The .procmailrc run by root and I assume that the root can write the
directory in /home/useraccount/.
.....
INCLUDERC=/root/mimepart.txt

..... Use SUBJECT line for the directory the file to go; and the FNAME
yank out from "filename=" line.

TARGET=${SUBJECT}${FNAME}

.....
        :0 c
        | echo $BODY_PART | mimencode -u -b > "$TARGET"


Rgds,
Kfl. HK.

==== procmail log ====

procmail: Assigning
"TARGET=/home/nanokceo/share/management/Venius_logo.bmp"
procmail: Match on ! "^^^^"
...
procmail: Executing " echo $BODY_PART | mimencode -u -b > "$TARGET""
procmail: Error while writing to " echo $BODY_PART | mimencode -u -b >
"$TARGET""
procmail 


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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