problems read email with attachment sended with unix "mailx" command
843830Jun 11 2007 — edited Jun 14 2007Hi all,
I receive with javamail (IMAP protocol) from Excenge server mails with attachment sended with mailx unix command like this:
cat /SDSP/dirlist/destinatari_cruscotto_daily.txt | while read addr_smtp
do
(echo "Report relativi al cruscotto live daily"; uuencode live_cruscotto_daily.zip `basename live_cruscotto_daily.zip`) | mailx -s
"SDSP Report - cruscotto live daily" $addr_smtp
done
When a read this kind of mail in my web java program and I test it if is a Multipart message I find that this is
ContentType : TEXT/PLAIN; charset=US-ASCII
When I retraive the content I have this string
begin 644 BWBLogs20070607.tar.gz
M'XL(")I):48 T)70DQO9W,R,# W,#8P-RYT87( [%UM;QO)D<[G^Q5$/OC+
..........
How can I save the attachment in this format ?
If I forward the same mail from MSoutlook I obtain a Multipart message and I can save the attachment.
Thanks and regards,
Marco