[Email-SIG] Generating zipped or gzipped attachment with email package?
skip at pobox.com
skip at pobox.com
Thu May 21 20:06:56 CEST 2009
>> I guess I'm asking if I can have the Content-Type still be text/csv
>> with some other MIME header indicating the file is compressed. If
>> so, how do I achieve that when attaching the compressed file to the
>> message?
Oleg> Content-Encoding: gzip
Thanks. I'm not having much success with it, though generating messages
seems to work ok. Maybe I can't For example, Thunderbird insists on
displaying the raw gzipped data (not the base64-encoded version which is in
the attachment) and doesn't gunzip such attachments when I try to save them.
Is it only supposed to undo the content-transfer-encoding?
Here's the start of one of my attachments:
Content-Type: text/csv; charset="us-ascii"
MIME-Version: 1.0
Content-Encoding: gzip
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="somefile.csv"
H4sIABKKFUoAA8z9y5JmuY6mB891LZluJMFjzTTZo99kkiznbVvqUve2v7tKVlWmw90LWAS5DiR4
WJ9neGZ1Z8YOjwh3f4IEX4Dgi//89//459/+4x///Z9/+5e/47/+8Z//n9/+29///T/+07//9l//
8V/+K/7nv/3r/43//t/+/ts//z//6d//K/37v/3rb//29//4x7/iT/73f/xnlf+j8T//9p/+jf9j
fvs//v6///bv//gv+FuPf/+nv/9f/4y/99/+47d//pf/+Lf/F3/4j//47f/813/HP+n/Pj6h+u3/
/Ld//r/U8WN9/Fj/9i//x7/967/8x2//8r/9/X////8PRqn0u3K/6/ibiv9k3T8p/dv/+D/+z/+/
3/8X/Oef/td//Jd//m//BOq//+NffvtN/wZfHlIyiX6QjA+WfqCT9iF/CGI8fgDRHz8IIQX4TX2p
...
Thx,
Skip
More information about the Email-SIG
mailing list