Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problems read email with attachment sended with unix "mailx" command

843830Jun 11 2007 — edited Jun 14 2007
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2007
Added on Jun 11 2007
3 comments
270 views