Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Jerry Krinock
December 13, 2008, 12:10 am
rate this thread
adds an "x-mac-auto-archive" attribute to Content-Type, which I
believe tells the receiving Mail.app to automatically unzip the
attachment upon receipt. I would like to be able to send messages
behaving like that when I use MIME::Lite. Taking a wild guess, I
wrote this code:
Type => 'application/zip',
Path => $myPath,
'x-mac-auto-archive' => 'yes',
Filename => "MyScript.app.zip"
What I get from that (which fails to make Mail.app automatically
Content-Type: application/zip; name="MyScript.app.zip"
A similar message sent by the real Mail.app gives me a Content-Type
Apparently, the problem is that instead of becoming an attribute of
Content-Type, my x-mac-auto-archive becomes a Header field. (I hope
my terminology is correct.)
I poked around in the MIME::Lite source code for a while but didn't
get anywhere. Does anyone know how to set an custom attribute ^of^ a
header field using Perl?
- » Try to exit inner loop and start next iteration of outter loop.
- — Previous thread in » PERL Discussions