I’m intercepting
mail messages before being sent out. If the attachment size is > XXX
then I need to zip the attachment. But I can’t get a handle on what
the file name is. At the bottom of the message is a start of an email
that is going out. I need to get a hold of the”March31.xls”
so that when I zip the file I can call it March31.xls.zip or what ever.
I can get a hold of then
entire Content head, but I can’t get a hold of the name itself. Do
I just need to parse it out myself or am I missing something?
Thanks for your help.
Content-Type:
application/octet-stream; name="March31.XLS"
Content-Disposition:
attachment
Content-Transfer-Encoding:
base64
___________________________
To:
(names withheld)
Bcc:
Michael_Simon@xxxxxxx, userID@xxxxxxx
Subject:
March31_Test06_Ni-PMeenaks-GMohan -- See Change Report Notification
Mime-Version:
1.0
Content-Type:
multipart/mixed;
boundary="AcMimeBoundary5951|2005JUL20_11_45_08_PST|"
Content-Type:
text/plain; charset="UTF-8"
Content-Transfer-Encoding:
base64
This
is a MIME-encoded message. If your mail reader does
not
handle MIME-encoded mail, please contact your system
administrator
for information on how to interpret the
contents
of this file.
--AcMimeBoundary5951|2005JUL20_11_45_08_PST|
Content-Type:
text/plain; charset="UTF-8"
Content-Disposition:
inline
Content-Transfer-Encoding:
base64
CgkJCQpSZXBvcnQgRXhlY3V0aW9uIGNvbXBsZXRlCgoKQ29tcGxldGVkIGF0
OiBXZWRuZXNkYXksIEp1bHkgMjAsIDIwMDUgMTE6NDQ6NTQgQU0gUFNUCgoJ
CQkKCQk=
--AcMimeBoundary5951|2005JUL20_11_45_08_PST|
Content-Type:
application/octet-stream; name="March31.XLS"
Content-Disposition:
attachment
Content-Transfer-Encoding:
base64
0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAAC
AAAAAQAAAAAAAAAAEAAAAgAAAAEAAAD+////AAAAAAAAAACAAAAA////////
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
Thanks
______________________________________________________
Michael Simon Actuate Architect
______________________________________________________