commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siegfried Goeschl <siegfried.goes...@it20one.at>
Subject Re: [Email] Mailcap changes causing a send() to hang
Date Tue, 12 Jan 2010 18:21:23 GMT
Hi Mike,

I have no idea what you are trying do ... :-) ...

+) why do you need to tinker with mailcap configuration?
+) when it hangs do you have a thread dump

Cheers,

Siegfried Goeschl


Mike Baranski wrote:
> I have the following changes to the mailcap settings so I can add
> attachments.
>
> This causes the email's send() method to hang.
>
> Any ideas?
>
> 		    MailcapCommandMap mc =
> (MailcapCommandMap)CommandMap.getDefaultCommandMap();
>                 mc.addMailcap("text/html;;
> x-java-content-handler=com.sun.mail.handlers.text_html");
>                 mc.addMailcap("text/xml;;
> x-java-content-handler=com.sun.mail.handlers.text_xml");
>                 mc.addMailcap("text/plain;;
> x-java-content-handler=com.sun.mail.handlers.text_plain");
>                 mc.addMailcap("multipart/*;;
> x-java-content-handler=com.sun.mail.handlers.multipart_mixed");
>                 mc.addMailcap("message/rfc822;;
> x-java-content-handler=com.sun.mail.handlers.message_rfc822");
>                 CommandMap.setDefaultCommandMap(mc);
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message