<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-79</id>
	<title>Nabble - Javamail</title>
	<updated>2008-10-10T12:40:33Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Javamail-f79.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Javamail-f79.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-19924975</id>
	<title>Re: forgettopheaders and boundary</title>
	<published>2008-10-10T12:40:33Z</published>
	<updated>2008-10-10T12:40:33Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Kevin Bush wrote:
&lt;br&gt;&amp;gt; I thought of that, but it's &amp;quot;inconvenient&amp;quot; (downright nasty) from a 
&lt;br&gt;&amp;gt; time/bandwidth point of view.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Besides, everything else in the TOP header is fine, and Javamail has this very 
&lt;br&gt;&amp;gt; nice &amp;quot;forgettopheaders&amp;quot; capability. Why is Content-Type not forgotten?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;forgettopheaders doesn't cause the headers to be ignored, it causes them
&lt;br&gt;to be forgotten when you fetch the content of the message, which will
&lt;br&gt;include the correct headers.
&lt;br&gt;&lt;br&gt;In looking into this, it appears that if you call the getContent method,
&lt;br&gt;it might be using the bad Content-Type header to choose the JAF
&lt;br&gt;DataContentHandler, before actually calling the DataContentHandler to
&lt;br&gt;process the message content.
&lt;br&gt;&lt;br&gt;If you're using getContent, try calling getInputStream first. &amp;nbsp;You can
&lt;br&gt;just close the stream without reading it. &amp;nbsp;Then call getContent.
&lt;br&gt;&lt;br&gt;If this solves your problem, let me know.
&lt;br&gt;&lt;br&gt;Still, after fetch the content, the Content-Type header should be correct.
&lt;br&gt;If it's not, let me know in more detail what you're doing.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19924975&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19924975&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/forgettopheaders-and-boundary-tp19920977p19924975.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19924065</id>
	<title>Re: forgettopheaders and boundary</title>
	<published>2008-10-10T11:54:18Z</published>
	<updated>2008-10-10T11:54:18Z</updated>
	<author>
		<name>Kevin Bush</name>
	</author>
	<content type="html">I thought of that, but it's &amp;quot;inconvenient&amp;quot; (downright nasty) from a 
&lt;br&gt;time/bandwidth point of view.
&lt;br&gt;&lt;br&gt;Besides, everything else in the TOP header is fine, and Javamail has this very 
&lt;br&gt;nice &amp;quot;forgettopheaders&amp;quot; capability. Why is Content-Type not forgotten?
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19924065&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19924065&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/forgettopheaders-and-boundary-tp19920977p19924065.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19922503</id>
	<title>Re: forgettopheaders and boundary</title>
	<published>2008-10-10T10:07:48Z</published>
	<updated>2008-10-10T10:07:48Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">That's a seriously broken server. &amp;nbsp;Set the mail.pop3.disabletop
&lt;br&gt;property to &amp;quot;true&amp;quot; to disable all use of the TOP command.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Kevin Bush wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm working with a POP3 server that doesn't implement the TOP headers very 
&lt;br&gt;&amp;gt; well, specifically regarding the Content-Type header: it always sends 
&lt;br&gt;&amp;gt; text/plain and when the mail is actually multipart, it doesn't include the 
&lt;br&gt;&amp;gt; boundary. For example TOP shows:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Content-Type: text/plain; charset=&amp;quot;iso-8859-1&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but RETR for the same message correctly shows
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Content-Type: multipart/alternative; boundary=&amp;quot;uvNeLHH7rO&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm using Javamail 1.4.1 (and jaf 1.1.1), and am setting the property 
&lt;br&gt;&amp;gt; mail.pop3.forgettopheaders to true and retrieving message like this (exception 
&lt;br&gt;&amp;gt; handling removed for clarity):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Properties sysProps = new Properties();
&lt;br&gt;&amp;gt; &amp;nbsp; sysProps.put(&amp;quot;mail.pop3.forgettopheaders&amp;quot;, &amp;quot;true&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; Session mailSession = Session.getInstance(sysProps, null);
&lt;br&gt;&amp;gt; &amp;nbsp; mStore = mailSession.getStore(&amp;quot;pop3&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; mFolder = mStore.getFolder(&amp;quot;INBOX&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; Message[] msgs = {};
&lt;br&gt;&amp;gt; &amp;nbsp; msgs = mFolder.search(new SentDateTerm( ComparisonTerm.GT,date ));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but when messages are retrieved, the Content-Type header is always the 
&lt;br&gt;&amp;gt; incorrect one returned by the TOP command.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Am I doing something wrong, or is the Javamail forgettopheaders 
&lt;br&gt;&amp;gt; implementation not ignoring the TOP Content-Type header?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ===========================================================================
&lt;br&gt;&amp;gt; To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19922503&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;&amp;gt; of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19922503&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;/div&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19922503&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19922503&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/forgettopheaders-and-boundary-tp19920977p19922503.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19920977</id>
	<title>forgettopheaders and boundary</title>
	<published>2008-10-10T08:39:31Z</published>
	<updated>2008-10-10T08:39:31Z</updated>
	<author>
		<name>Kevin Bush</name>
	</author>
	<content type="html">I'm working with a POP3 server that doesn't implement the TOP headers very 
&lt;br&gt;well, specifically regarding the Content-Type header: it always sends 
&lt;br&gt;text/plain and when the mail is actually multipart, it doesn't include the 
&lt;br&gt;boundary. For example TOP shows:
&lt;br&gt;&lt;br&gt;Content-Type: text/plain; charset=&amp;quot;iso-8859-1&amp;quot;
&lt;br&gt;&lt;br&gt;but RETR for the same message correctly shows
&lt;br&gt;&lt;br&gt;Content-Type: multipart/alternative; boundary=&amp;quot;uvNeLHH7rO&amp;quot;
&lt;br&gt;&lt;br&gt;I'm using Javamail 1.4.1 (and jaf 1.1.1), and am setting the property 
&lt;br&gt;mail.pop3.forgettopheaders to true and retrieving message like this (exception 
&lt;br&gt;handling removed for clarity):
&lt;br&gt;&lt;br&gt;&amp;nbsp; Properties sysProps = new Properties();
&lt;br&gt;&amp;nbsp; sysProps.put(&amp;quot;mail.pop3.forgettopheaders&amp;quot;, &amp;quot;true&amp;quot;);
&lt;br&gt;&amp;nbsp; Session mailSession = Session.getInstance(sysProps, null);
&lt;br&gt;&amp;nbsp; mStore = mailSession.getStore(&amp;quot;pop3&amp;quot;);
&lt;br&gt;&amp;nbsp; mFolder = mStore.getFolder(&amp;quot;INBOX&amp;quot;);
&lt;br&gt;&amp;nbsp; Message[] msgs = {};
&lt;br&gt;&amp;nbsp; msgs = mFolder.search(new SentDateTerm( ComparisonTerm.GT,date ));
&lt;br&gt;&lt;br&gt;but when messages are retrieved, the Content-Type header is always the 
&lt;br&gt;incorrect one returned by the TOP command.
&lt;br&gt;&lt;br&gt;Am I doing something wrong, or is the Javamail forgettopheaders 
&lt;br&gt;implementation not ignoring the TOP Content-Type header?
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19920977&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19920977&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/forgettopheaders-and-boundary-tp19920977p19920977.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19793009</id>
	<title>Re: Content-type: application/octet-stream</title>
	<published>2008-10-02T23:54:56Z</published>
	<updated>2008-10-02T23:54:56Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Srinidhi Kannappady wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Bill,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Thanks a lot for providing the solution....
&lt;br&gt;&amp;gt; But &amp;nbsp;I am still wondering like if I do the follwoing I get the (No 
&lt;br&gt;&amp;gt; DCH...) exception:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;DataHandler dh = new DataHandler(request.message, 
&lt;br&gt;&amp;gt; &amp;quot;application/octet-stream&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp;msg.setDataHandler(dh);
&lt;br&gt;&amp;gt; &amp;nbsp;msg.setHeader(&amp;quot;Content-Transfer-Encoding&amp;quot;, &amp;quot;base64&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; where request.message is a byte[].
&lt;/div&gt;&lt;br&gt;There are no DataContentHandlers included for the MIME type
&lt;br&gt;application/octet-stream. &amp;nbsp;Before JAF 1.1.1, if there was no DCH,
&lt;br&gt;JAF didn't know what to do. &amp;nbsp;In JAF 1.1.1, if there is no DCH, and
&lt;br&gt;the object type is a byte array or String, it will do the obvious
&lt;br&gt;conversion. &amp;nbsp;You must be using an older version of JAF.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19793009&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19793009&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Content-type%3A-application-octet-stream-tp19745009p19793009.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19776008</id>
	<title>Training &amp; jobs</title>
	<published>2008-10-02T02:20:14Z</published>
	<updated>2008-10-02T02:20:14Z</updated>
	<author>
		<name>KiranGupta</name>
	</author>
	<content type="html">“Join us to make future”
&lt;br&gt;FOR OPT/F-1 STUDENTS
&lt;br&gt;FREE TRAINING 
&lt;br&gt;FOOD ACCOMODATION 
&lt;br&gt;H1B PROCESSING 	FOR L1/ L2/ H1/ H4/ EAD/ GC 
&lt;br&gt;EXCELLENT OPPRTUNITIES 
&lt;br&gt;TRAINING 
&lt;br&gt;PLACEMENT 
&lt;br&gt;Highly Competitive offers for New H1b Transfers
&lt;br&gt;About Us:
&lt;br&gt;V2 technology inc is serving NJ since 2005, for us our employees are of utmost importance. Our highly skilled and dedicated instructors train you explicitly in market-related technologies for today and tomorrow. We will work with you in developing marketing strategies and finding the assignments of your choice.
&lt;br&gt;We not only help you get a job but we build your long lasting careers!!! 
&lt;br&gt;What are we Looking for:
&lt;br&gt;Excellent communication skills. 
&lt;br&gt;Valid F1/ OPT/ CPT/ H1/ H4/ L1 or valid work status (EAD, GC). 
&lt;br&gt;Bachelors’ degree in CS/ IT or previous IT experience. 
&lt;br&gt;Preferably (not mandatory) Master's Degree in Computers/ Electronics or previous IT experience. 
&lt;br&gt;Willing to relocate anywhere in USA. 
&lt;br&gt;What’s The Deal: 
&lt;br&gt;H1-B sponsorship to F1/ OPT/ H4/ L1/ L2/ E3/ EAD 
&lt;br&gt;Transfer of H1 &amp; L1 visas. 
&lt;br&gt;Green Card sponsorship through PERM 
&lt;br&gt;Job focused professional training in 
&lt;br&gt;Java/ J2EE 
&lt;br&gt;.NET 
&lt;br&gt;Documentum 
&lt;br&gt;Share point 
&lt;br&gt;Oracle 
&lt;br&gt;Data Modeling 
&lt;br&gt;Relocation assistance- airfare, hotel accommodation, car rental etc 
&lt;br&gt;Guarantee lowest bench period. 
&lt;br&gt;Employee referral program. 
&lt;br&gt;Effective Resume writing help, Marketing and Placement. 
&lt;br&gt;Technical mock interviews. Preparation of In Person Interviews 
&lt;br&gt;100% Guaranteed placement 
&lt;br&gt;Get in Touch:
&lt;br&gt;Contact immediately to know more about the opportunities with us at:609-843-0312 
&lt;br&gt;or 		
&lt;br&gt;write mail at jobs@v2techinc.com
&lt;br&gt;Contact person : John
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Training---jobs-tp19776008p19776008.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19753320</id>
	<title>Re: Yahoo! Mail Web Service provider</title>
	<published>2008-09-30T18:46:19Z</published>
	<updated>2008-09-30T18:46:19Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Chris Webb wrote:
&lt;br&gt;&amp;gt; Bill,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I saw that you made a comment on the Yahoo! Mail Web Service API blog 
&lt;br&gt;&amp;gt; 23/3/07 where you queried whether regarding the terms of that service it 
&lt;br&gt;&amp;gt; would be possible to create a JavaMail provider and the following reply 
&lt;br&gt;&amp;gt; seemed to indicate that it would although I could see your concern. I 
&lt;br&gt;&amp;gt; was wondering whether you knew of such an endeavour?
&lt;br&gt;&lt;br&gt;I don't. &amp;nbsp;I was hoping to work on that in my spare time, but I barely
&lt;br&gt;got started before realizing it was going to take *a lot* of my time to
&lt;br&gt;really understand the Yahoo! Mail Web Service side of things enough to
&lt;br&gt;connect it to JavaMail. &amp;nbsp;I was using JAX-WS to create a Java API for the
&lt;br&gt;web service interface, and I got hung up on a few problems there as well.
&lt;br&gt;&lt;br&gt;I'd still like to do it, or see it get done, but it's currently rather
&lt;br&gt;low on my priority list.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19753320&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19753320&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Yahoo%21-Mail-Web-Service-provider-tp19745971p19753320.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19753297</id>
	<title>Re: Content-type: application/octet-stream</title>
	<published>2008-09-30T18:42:51Z</published>
	<updated>2008-09-30T18:42:51Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">What object are you using to represent the content? &amp;nbsp;JAF needs to
&lt;br&gt;know how to convert that object, whatever it is, to a stream of
&lt;br&gt;bytes in the &amp;quot;application/octet-stream&amp;quot; format. &amp;nbsp;Since that format
&lt;br&gt;is just an uninterpreted stream of bytes, you pretty much have to
&lt;br&gt;start with bytes. &amp;nbsp;Using ByteArrayDataSource will help.
&lt;br&gt;&lt;br&gt;So, instead of using
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msg.setContent(myObjectOfSomeType, &amp;quot;application/octet-stream&amp;quot;);
&lt;br&gt;&lt;br&gt;get the content of your message into some format that ByteArrayDataSource
&lt;br&gt;understands, such as a String or a byte array or an InputStream, and use
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msg.setDataHandler(new DataHandler(new ByteArrayDataSource(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; myObject, &amp;quot;application/octet-stream&amp;quot;);
&lt;br&gt;&lt;br&gt;Normally, it's a JAF DataContentHandler that's responsible for turning
&lt;br&gt;a Java object of some type into a byte stream of a given MIME type.
&lt;br&gt;What you did by adding that mailcap entry was configure the DataContentHandler
&lt;br&gt;for the application/octet-stream MIME type to use the same DataContentHandler
&lt;br&gt;that's used for the text/html MIME type. &amp;nbsp;It might happen to work for the data
&lt;br&gt;you have, but it's certainly not the right answer in general.
&lt;br&gt;&lt;br&gt;&lt;br&gt;scorpion10 wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I was trying to send a simple SMTP message (using JavaMail 1.4.1) and the
&lt;br&gt;&amp;gt; content-type I set was application/octet-stream. 
&lt;br&gt;&amp;gt; The exception I get is :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; javax.mail.MessagingException: IOException while sending message;
&lt;br&gt;&amp;gt; &amp;nbsp; nested exception is:
&lt;br&gt;&amp;gt; 	javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
&lt;br&gt;&amp;gt; application/octet-stream
&lt;br&gt;&amp;gt; 	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
&lt;br&gt;&amp;gt; 	at com.srinidhi.examples.MyMailExample.postMail(MyMailExample.java:169)
&lt;br&gt;&amp;gt; 	at
&lt;br&gt;&amp;gt; com.srinidhi.examples.MyMailExample$TaskExecutor.run(MyMailExample.java:218)
&lt;br&gt;&amp;gt; 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
&lt;br&gt;&amp;gt; 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
&lt;br&gt;&amp;gt; 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
&lt;br&gt;&amp;gt; 	at
&lt;br&gt;&amp;gt; java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
&lt;br&gt;&amp;gt; 	at
&lt;br&gt;&amp;gt; java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
&lt;br&gt;&amp;gt; 	at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I googled for this for few hours and did some things like downloaded latest
&lt;br&gt;&amp;gt; activation.jar but still had the problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Then I did the following:
&lt;br&gt;&amp;gt; MailcapCommandMap mc = (MailcapCommandMap)CommandMap.getDefaultCommandMap();
&lt;br&gt;&amp;gt; mc.addMailcap(&amp;quot;application/octet-stream;;
&lt;br&gt;&amp;gt; x-java-content-handler=com.sun.mail.handlers.text_html&amp;quot;);
&lt;br&gt;&amp;gt; CommandMap.setDefaultCommandMap(mc);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And it is working now. But I am not sure if this is the right way of solving
&lt;br&gt;&amp;gt; this problem. Also, could any one explain what
&lt;br&gt;&amp;gt; x-java-content-handler=com.sun.mail.handlers.text_html that stands for and
&lt;br&gt;&amp;gt; what I should be setting for application/octet-stream?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19753297&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19753297&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Content-type%3A-application-octet-stream-tp19745009p19753297.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19745971</id>
	<title>Yahoo! Mail Web Service provider</title>
	<published>2008-09-30T09:43:48Z</published>
	<updated>2008-09-30T09:43:48Z</updated>
	<author>
		<name>Chris Webb-3</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;Bill,&lt;br&gt;&lt;br&gt;I saw that you made a comment on the Yahoo! Mail Web Service API blog 23/3/07 where you queried whether regarding the terms of that service it would be possible to create a JavaMail provider and the following reply seemed to indicate that it would although I could see your concern. I was wondering whether you knew of such an endeavour?&lt;br&gt;
&lt;br&gt;regards,&lt;br&gt;chris&lt;br clear=&quot;all&quot;&gt;
&lt;br&gt;-- &lt;br&gt;Chris Webb&lt;br&gt;CTO&lt;br&gt;Inniu Ltd&lt;br&gt;e) &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19745971&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.webb@...&lt;/a&gt;&lt;br&gt;m) +44 77 8639 2359&lt;br&gt;
&lt;/div&gt;
===========================================================================
To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19745971&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
of the message &quot;signoff JAVAMAIL-INTEREST&quot;.  For general help, send email to
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19745971&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &quot;help&quot;.
&lt;p&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Yahoo%21-Mail-Web-Service-provider-tp19745971p19745971.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19745009</id>
	<title>Content-type: application/octet-stream</title>
	<published>2008-09-30T08:56:42Z</published>
	<updated>2008-09-30T08:56:42Z</updated>
	<author>
		<name>scorpion10</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;I was trying to send a simple SMTP message (using JavaMail 1.4.1) and the content-type I set was application/octet-stream. 
&lt;br&gt;The exception I get is :
&lt;br&gt;&lt;br&gt;javax.mail.MessagingException: IOException while sending message;
&lt;br&gt;&amp;nbsp; nested exception is:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/octet-stream
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.srinidhi.examples.MyMailExample.postMail(MyMailExample.java:169)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.srinidhi.examples.MyMailExample$TaskExecutor.run(MyMailExample.java:218)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.FutureTask.run(FutureTask.java:138)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;&lt;br&gt;I googled for this for few hours and did some things like downloaded latest activation.jar but still had the problem.
&lt;br&gt;&lt;br&gt;Then I did the following:
&lt;br&gt;MailcapCommandMap mc = (MailcapCommandMap)CommandMap.getDefaultCommandMap();
&lt;br&gt;mc.addMailcap(&amp;quot;application/octet-stream;; x-java-content-handler=com.sun.mail.handlers.text_html&amp;quot;);
&lt;br&gt;CommandMap.setDefaultCommandMap(mc);
&lt;br&gt;&lt;br&gt;And it is working now. But I am not sure if this is the right way of solving this problem. Also, could any one explain what x-java-content-handler=com.sun.mail.handlers.text_html that stands for and what I should be setting for application/octet-stream?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&amp;nbsp;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Content-type%3A-application-octet-stream-tp19745009p19745009.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19731220</id>
	<title>Re: Transport.sendMessage()</title>
	<published>2008-09-29T12:59:59Z</published>
	<updated>2008-09-29T12:59:59Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">scorpion10 wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I was wondering if there is any way to specify the destination address as
&lt;br&gt;&amp;gt; Cc or Bcc by using the sendMessage(msg, addresses) method of the Transport
&lt;br&gt;&amp;gt; class. In the send(msg) method, we can set in the msg object like
&lt;br&gt;&amp;gt; msg.addRecipients(Message.RecipientType.CC, &amp;quot;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19731220&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xxx@...&lt;/a&gt;&amp;quot;);. I want to use
&lt;br&gt;&amp;gt; the sendMessage(msg, addresses) because I can add the TransportEvent whereas
&lt;br&gt;&amp;gt; if I use the send(msg) method I cannot add the TransportEvent to it. 
&lt;br&gt;&lt;br&gt;&amp;quot;To&amp;quot; vs. &amp;quot;Cc&amp;quot; vs. &amp;quot;Bcc&amp;quot; is just a convention in the headers. &amp;nbsp;In the end,
&lt;br&gt;the message is sent to everyone equally. &amp;nbsp;That's the list of addresses you
&lt;br&gt;provide to sendMessage. &amp;nbsp;How you arrange the addresses in the headers, or
&lt;br&gt;whether you include them in the headers at all, is entirely up to you.
&lt;br&gt;The message will be sent to the addresses you provide separately to
&lt;br&gt;sendMessage, independently of what you include in the headers.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19731220&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19731220&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-Transport.sendMessage%28%29-tp19731220p19731220.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19715429</id>
	<title>Re: ConnectionTimeOut</title>
	<published>2008-09-28T13:51:35Z</published>
	<updated>2008-09-28T13:51:35Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Srinidhi Kannappady wrote:
&lt;br&gt;&amp;gt; OK I tried with the msgsend.java. You can see the difference if you add 
&lt;br&gt;&amp;gt; the following to msgsend.java:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; props.put(&amp;quot;mail.smtp.connectiontimeout&amp;quot;, &amp;quot;0&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please check the exception when the value is 0 and the exception when 
&lt;br&gt;&amp;gt; the value is anything other than 0. The differnece in exception to 
&lt;br&gt;&amp;gt; observe is the exception that is wrapped inside the MessagingException.
&lt;br&gt;&lt;br&gt;Do you see the same difference when you do a raw socket connection with
&lt;br&gt;a timeout of 0 vs. no timeout at all?
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19715429&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19715429&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ConnectionTimeOut-tp19615286p19715429.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19713586</id>
	<title>Re: ConnectionTimeOut</title>
	<published>2008-09-28T10:26:54Z</published>
	<updated>2008-09-28T10:26:54Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Srinidhi Kannappady wrote:
&lt;br&gt;&amp;gt; The program I wrote is a stand alone application and I am sure the 
&lt;br&gt;&amp;gt; settings I &amp;nbsp;provided will not be overridden .... 
&lt;br&gt;&lt;br&gt;So, can you reproduce the problem using the msgsend.java demo program?
&lt;br&gt;&lt;br&gt;Bottom line, the same problem doesn't happen for me, and without a way
&lt;br&gt;to reproduce the problem I can't explain why it's happening to you.
&lt;br&gt;We either need to find a way to reproduce the problem in my environment,
&lt;br&gt;or find a way to reproduce the problem in your environment using code I
&lt;br&gt;know is correct.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19713586&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19713586&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ConnectionTimeOut-tp19615286p19713586.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19699430</id>
	<title>Re: ConnectionTimeOut</title>
	<published>2008-09-26T20:45:55Z</published>
	<updated>2008-09-26T20:45:55Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Where are you running your program? &amp;nbsp;From the command line using
&lt;br&gt;the &amp;quot;java&amp;quot; command? &amp;nbsp;Inside an application server?
&lt;br&gt;&lt;br&gt;Is it possible that someone else is setting the mail.smtp.connectiontimeout
&lt;br&gt;property for you?
&lt;br&gt;&lt;br&gt;Can you reproduce the problem using the msgsend.java demo program?
&lt;br&gt;&lt;br&gt;&lt;br&gt;scorpion10 wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;nbsp;Sorry for the late reply...I created a scoket and tried to connect it to my
&lt;br&gt;&amp;gt; host and it does different than what JavaMail does. The exception I get
&lt;br&gt;&amp;gt; using the socket is as follows:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; java.net.ConnectException: Connection refused: connect
&lt;br&gt;&amp;gt; 	at java.net.PlainSocketImpl.socketConnect(Native Method)
&lt;br&gt;&amp;gt; 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
&lt;br&gt;&amp;gt; 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
&lt;br&gt;&amp;gt; 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
&lt;br&gt;&amp;gt; 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
&lt;br&gt;&amp;gt; 	at java.net.Socket.connect(Socket.java:518)
&lt;br&gt;&amp;gt; 	at java.net.Socket.connect(Socket.java:468)
&lt;br&gt;&amp;gt; 	at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:365)
&lt;br&gt;&amp;gt; 	at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:179)
&lt;br&gt;&amp;gt; 	at com.srinidhi.examples.scjp.SocketExample.main(SocketExample.java:16)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As mentioned in my previous post, JavaMail throws this ConnectException (of
&lt;br&gt;&amp;gt; course wrapped inside MessagingException) only in 2 cases:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; a. props.put(&amp;quot;mail.smtp.connectiontimeout&amp;quot;, &amp;quot;0&amp;quot;);
&lt;br&gt;&amp;gt; b. mail.smtp.connectiontimeout is not specified at all
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; All other cases JavaMail throws java.net.SocketTimeoutException (wrapped
&lt;br&gt;&amp;gt; inside MessagingException)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Bill Shannon wrote:
&lt;br&gt;&amp;gt;&amp;gt; scorpion10 wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ya i purposely gave a wrong port number to test the exception. As I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; stated
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; before ConnectException occurs only during the conditions mentioned i.e.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a specify a value for &amp;quot;mail.smtp.connectiontimeout&amp;quot; other than 0, even if
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; give a wrong port number, a time out exception is thrown.( One would
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; expect
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a java.net.ConnectException to be thrown).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I also tested by giving the &amp;quot;mail.smtp.connectiontimeout&amp;quot; &amp;nbsp;value less
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; than
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the time out value still it throws a time out exception.
&lt;br&gt;&amp;gt;&amp;gt; In all cases we're talking about an exception that's wrapped in a
&lt;br&gt;&amp;gt;&amp;gt; MessagingException, right?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; JavaMail is just reflecting whatever exception the java.net socket
&lt;br&gt;&amp;gt;&amp;gt; support throws. &amp;nbsp;Try creating a Socket to connect to your host and
&lt;br&gt;&amp;gt;&amp;gt; set the timeout parameters however you like and see what exception
&lt;br&gt;&amp;gt;&amp;gt; it throws. &amp;nbsp;If it doesn't do what you expect, that's a java.net
&lt;br&gt;&amp;gt;&amp;gt; problem and you should take that up with the JDK folks. &amp;nbsp;If it does
&lt;br&gt;&amp;gt;&amp;gt; something different than what you're seeing with JavaMail, let me
&lt;br&gt;&amp;gt;&amp;gt; know the details.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ===========================================================================
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19699430&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the
&lt;br&gt;&amp;gt;&amp;gt; body
&lt;br&gt;&amp;gt;&amp;gt; of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email
&lt;br&gt;&amp;gt;&amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19699430&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19699430&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19699430&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ConnectionTimeOut-tp19615286p19699430.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19694059</id>
	<title>Re: ConnectionTimeOut</title>
	<published>2008-09-26T11:31:54Z</published>
	<updated>2008-09-26T11:31:54Z</updated>
	<author>
		<name>scorpion10</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&amp;nbsp;Sorry for the late reply...I created a scoket and tried to connect it to my host and it does different than what JavaMail does. The exception I get using the socket is as follows:
&lt;br&gt;&lt;br&gt;java.net.ConnectException: Connection refused: connect
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.socketConnect(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:518)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:468)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:365)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:179)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.srinidhi.examples.scjp.SocketExample.main(SocketExample.java:16)
&lt;br&gt;&lt;br&gt;As mentioned in my previous post, JavaMail throws this ConnectException (of course wrapped inside MessagingException) only in 2 cases:
&lt;br&gt;&lt;br&gt;a. props.put(&amp;quot;mail.smtp.connectiontimeout&amp;quot;, &amp;quot;0&amp;quot;);
&lt;br&gt;b. mail.smtp.connectiontimeout is not specified at all
&lt;br&gt;&lt;br&gt;All other cases JavaMail throws java.net.SocketTimeoutException (wrapped inside MessagingException)
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Bill Shannon wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;scorpion10 wrote:
&lt;br&gt;&amp;gt; Ya i purposely gave a wrong port number to test the exception. As I stated
&lt;br&gt;&amp;gt; before ConnectException occurs only during the conditions mentioned i.e. if
&lt;br&gt;&amp;gt; a specify a value for &amp;quot;mail.smtp.connectiontimeout&amp;quot; other than 0, even if I
&lt;br&gt;&amp;gt; give a wrong port number, a time out exception is thrown.( One would expect
&lt;br&gt;&amp;gt; a java.net.ConnectException to be thrown).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I also tested by giving the &amp;quot;mail.smtp.connectiontimeout&amp;quot; &amp;nbsp;value less than
&lt;br&gt;&amp;gt; the time out value still it throws a time out exception.
&lt;br&gt;&lt;br&gt;In all cases we're talking about an exception that's wrapped in a
&lt;br&gt;MessagingException, right?
&lt;br&gt;&lt;br&gt;JavaMail is just reflecting whatever exception the java.net socket
&lt;br&gt;support throws. &amp;nbsp;Try creating a Socket to connect to your host and
&lt;br&gt;set the timeout parameters however you like and see what exception
&lt;br&gt;it throws. &amp;nbsp;If it doesn't do what you expect, that's a java.net
&lt;br&gt;problem and you should take that up with the JDK folks. &amp;nbsp;If it does
&lt;br&gt;something different than what you're seeing with JavaMail, let me
&lt;br&gt;know the details.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to listserv@java.sun.com and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;listserv@java.sun.com and include in the body of the message &amp;quot;help&amp;quot;.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ConnectionTimeOut-tp19615286p19694059.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19635905</id>
	<title>Re: ConnectionTimeOut</title>
	<published>2008-09-23T12:35:31Z</published>
	<updated>2008-09-23T12:35:31Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">scorpion10 wrote:
&lt;br&gt;&amp;gt; Ya i purposely gave a wrong port number to test the exception. As I stated
&lt;br&gt;&amp;gt; before ConnectException occurs only during the conditions mentioned i.e. if
&lt;br&gt;&amp;gt; a specify a value for &amp;quot;mail.smtp.connectiontimeout&amp;quot; other than 0, even if I
&lt;br&gt;&amp;gt; give a wrong port number, a time out exception is thrown.( One would expect
&lt;br&gt;&amp;gt; a java.net.ConnectException to be thrown).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I also tested by giving the &amp;quot;mail.smtp.connectiontimeout&amp;quot; &amp;nbsp;value less than
&lt;br&gt;&amp;gt; the time out value still it throws a time out exception.
&lt;br&gt;&lt;br&gt;In all cases we're talking about an exception that's wrapped in a
&lt;br&gt;MessagingException, right?
&lt;br&gt;&lt;br&gt;JavaMail is just reflecting whatever exception the java.net socket
&lt;br&gt;support throws. &amp;nbsp;Try creating a Socket to connect to your host and
&lt;br&gt;set the timeout parameters however you like and see what exception
&lt;br&gt;it throws. &amp;nbsp;If it doesn't do what you expect, that's a java.net
&lt;br&gt;problem and you should take that up with the JDK folks. &amp;nbsp;If it does
&lt;br&gt;something different than what you're seeing with JavaMail, let me
&lt;br&gt;know the details.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19635905&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19635905&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ConnectionTimeOut-tp19615286p19635905.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19633754</id>
	<title>Re: ConnectionTimeOut</title>
	<published>2008-09-23T11:16:17Z</published>
	<updated>2008-09-23T11:16:17Z</updated>
	<author>
		<name>scorpion10</name>
	</author>
	<content type="html">Ya i purposely gave a wrong port number to test the exception. As I stated before ConnectException occurs only during the conditions mentioned i.e. if a specify a value for &amp;quot;mail.smtp.connectiontimeout&amp;quot; other than 0, even if I give a wrong port number, a time out exception is thrown.( One would expect a java.net.ConnectException to be thrown).
&lt;br&gt;&lt;br&gt;I also tested by giving the &amp;quot;mail.smtp.connectiontimeout&amp;quot; &amp;nbsp;value less than the time out value still it throws a time out exception.
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Bill Shannon wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;scorpion10 wrote:
&lt;br&gt;&amp;gt; This is the exception I get when I set
&lt;br&gt;&amp;gt; props.put(&amp;quot;mail.smtp.connectiontimeout&amp;quot;, &amp;quot;0&amp;quot;); or when I don't have this
&lt;br&gt;&amp;gt; property in the program.
&lt;br&gt;&amp;gt; javax.mail.MessagingException: Could not connect to SMTP host: XXX, port:
&lt;br&gt;&amp;gt; 25;
&lt;br&gt;&amp;gt; &amp;nbsp; nested exception is:
&lt;br&gt;&amp;gt; 	java.net.ConnectException: Connection refused: connect
&lt;br&gt;&lt;br&gt;Great, so you *are* getting a MessagingException.
&lt;br&gt;&lt;br&gt;The nested exception is from the java.net package and tells why the
&lt;br&gt;connect failed. &amp;nbsp;The connect isn't timing out, it's failing because
&lt;br&gt;it's trying to connect to a port number on a host and there's no
&lt;br&gt;server running on that port number on that host.
&lt;br&gt;&lt;br&gt;You're either connecting to the wrong port number or the wrong host.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to listserv@java.sun.com and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;listserv@java.sun.com and include in the body of the message &amp;quot;help&amp;quot;.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ConnectionTimeOut-tp19615286p19633754.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19633513</id>
	<title>Re: ConnectionTimeOut</title>
	<published>2008-09-23T10:28:19Z</published>
	<updated>2008-09-23T10:28:19Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">scorpion10 wrote:
&lt;br&gt;&amp;gt; This is the exception I get when I set
&lt;br&gt;&amp;gt; props.put(&amp;quot;mail.smtp.connectiontimeout&amp;quot;, &amp;quot;0&amp;quot;); or when I don't have this
&lt;br&gt;&amp;gt; property in the program.
&lt;br&gt;&amp;gt; javax.mail.MessagingException: Could not connect to SMTP host: XXX, port:
&lt;br&gt;&amp;gt; 25;
&lt;br&gt;&amp;gt; &amp;nbsp; nested exception is:
&lt;br&gt;&amp;gt; 	java.net.ConnectException: Connection refused: connect
&lt;br&gt;&lt;br&gt;Great, so you *are* getting a MessagingException.
&lt;br&gt;&lt;br&gt;The nested exception is from the java.net package and tells why the
&lt;br&gt;connect failed. &amp;nbsp;The connect isn't timing out, it's failing because
&lt;br&gt;it's trying to connect to a port number on a host and there's no
&lt;br&gt;server running on that port number on that host.
&lt;br&gt;&lt;br&gt;You're either connecting to the wrong port number or the wrong host.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19633513&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19633513&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ConnectionTimeOut-tp19615286p19633513.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19631439</id>
	<title>Re: ConnectionTimeOut</title>
	<published>2008-09-23T09:22:19Z</published>
	<updated>2008-09-23T09:22:19Z</updated>
	<author>
		<name>scorpion10</name>
	</author>
	<content type="html">This is the exception I get when I set props.put(&amp;quot;mail.smtp.connectiontimeout&amp;quot;, &amp;quot;0&amp;quot;); or when I don't have this property in the program.
&lt;br&gt;javax.mail.MessagingException: Could not connect to SMTP host: XXX, port: 25;
&lt;br&gt;&amp;nbsp; nested exception is:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.net.ConnectException: Connection refused: connect
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1542)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:452)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:291)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:172)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:121)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.srinidhi.examples.MyMailExample.postMail(MyMailExample.java:129)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.srinidhi.examples.MyMailExample$TaskExecutor.run(MyMailExample.java:179)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.FutureTask.run(FutureTask.java:138)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;Caused by: java.net.ConnectException: Connection refused: connect
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.socketConnect(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:518)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:468)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:254)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:215)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1510)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 12 more
&lt;br&gt;java.net.ConnectException: Connection refused: connect
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.socketConnect(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:518)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:468)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:254)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:215)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1510)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:452)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:291)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:172)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:121)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.srinidhi.examples.MyMailExample.postMail(MyMailExample.java:129)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.srinidhi.examples.MyMailExample$TaskExecutor.run(MyMailExample.java:179)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.FutureTask.run(FutureTask.java:138)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;java.net.ConnectException: Connection refused: connect
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.socketConnect(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:518)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:468)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:254)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:215)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1510)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:452)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:291)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:172)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:121)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.srinidhi.examples.MyMailExample.postMail(MyMailExample.java:129)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.srinidhi.examples.MyMailExample$TaskExecutor.run(MyMailExample.java:179)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
&lt;br&gt;Connection exception, may be the server is down!!! for messageId::100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.FutureTask.run(FutureTask.java:138)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Bill Shannon wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;scorpion10 wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I observed one thing in the properties that we set, if I set the
&lt;br&gt;&amp;gt; connectiontimeout property, even if the server is down the JavaMail(v1.4.1)
&lt;br&gt;&amp;gt; throws SocketTimeOutException instead of ConnectException and this is
&lt;br&gt;&amp;gt; irrespective of the value I specify in the following:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 1. props.put(&amp;quot;mail.smtp.connectiontimeout&amp;quot;, &amp;quot;10&amp;quot;);
&lt;br&gt;&amp;gt; 2. props.put(&amp;quot;mail.smtp.timeout&amp;quot;, &amp;quot;1000&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The ConnectException is thrown only if :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; a) I don't specify 1.
&lt;br&gt;&amp;gt; b) I give a value of 0 for 1.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I read in the document that by default the &amp;nbsp;connectiontimeout value is
&lt;br&gt;&amp;gt; infinite. Please let me know if this is a bug.
&lt;br&gt;&lt;br&gt;There is no ConnectException.
&lt;br&gt;&lt;br&gt;The connect method should throw MessagingException in this case, with the
&lt;br&gt;SocketTimeoutException attached. &amp;nbsp;That's the behavior I'm seeing:
&lt;br&gt;&lt;br&gt;&lt;br&gt;javax.mail.MessagingException: Could not connect to SMTP host: XXX, port: 25;
&lt;br&gt;&amp;nbsp; &amp;nbsp;nested exception is:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.net.SocketTimeoutException: connect timed out
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1542)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:452)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:291)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:172)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:121)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Transport.send0(Transport.java:190)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Transport.send(Transport.java:120)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at msgsend.main(msgsend.java:178)
&lt;br&gt;Caused by: java.net.SocketTimeoutException: connect timed out
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.socketConnect(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:519)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:252)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:215)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1510)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 7 more
&lt;br&gt;&lt;br&gt;&lt;br&gt;What's the traceback look like for the exception you're getting?
&lt;br&gt;&lt;br&gt;Can you reproduce the problem using the msgsend.java demo program?
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to listserv@java.sun.com and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;listserv@java.sun.com and include in the body of the message &amp;quot;help&amp;quot;.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ConnectionTimeOut-tp19615286p19631439.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19616672</id>
	<title>Re: ConnectionTimeOut</title>
	<published>2008-09-22T13:36:58Z</published>
	<updated>2008-09-22T13:36:58Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">scorpion10 wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I observed one thing in the properties that we set, if I set the
&lt;br&gt;&amp;gt; connectiontimeout property, even if the server is down the JavaMail(v1.4.1)
&lt;br&gt;&amp;gt; throws SocketTimeOutException instead of ConnectException and this is
&lt;br&gt;&amp;gt; irrespective of the value I specify in the following:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 1. props.put(&amp;quot;mail.smtp.connectiontimeout&amp;quot;, &amp;quot;10&amp;quot;);
&lt;br&gt;&amp;gt; 2. props.put(&amp;quot;mail.smtp.timeout&amp;quot;, &amp;quot;1000&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The ConnectException is thrown only if :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; a) I don't specify 1.
&lt;br&gt;&amp;gt; b) I give a value of 0 for 1.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I read in the document that by default the &amp;nbsp;connectiontimeout value is
&lt;br&gt;&amp;gt; infinite. Please let me know if this is a bug.
&lt;/div&gt;&lt;br&gt;There is no ConnectException.
&lt;br&gt;&lt;br&gt;The connect method should throw MessagingException in this case, with the
&lt;br&gt;SocketTimeoutException attached. &amp;nbsp;That's the behavior I'm seeing:
&lt;br&gt;&lt;br&gt;&lt;br&gt;javax.mail.MessagingException: Could not connect to SMTP host: XXX, port: 25;
&lt;br&gt;&amp;nbsp; &amp;nbsp;nested exception is:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.net.SocketTimeoutException: connect timed out
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1542)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:452)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:291)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:172)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Service.connect(Service.java:121)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Transport.send0(Transport.java:190)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.mail.Transport.send(Transport.java:120)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at msgsend.main(msgsend.java:178)
&lt;br&gt;Caused by: java.net.SocketTimeoutException: connect timed out
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.socketConnect(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:519)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:252)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:215)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1510)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 7 more
&lt;br&gt;&lt;br&gt;&lt;br&gt;What's the traceback look like for the exception you're getting?
&lt;br&gt;&lt;br&gt;Can you reproduce the problem using the msgsend.java demo program?
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19616672&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19616672&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ConnectionTimeOut-tp19615286p19616672.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19615286</id>
	<title>ConnectionTimeOut</title>
	<published>2008-09-22T12:52:49Z</published>
	<updated>2008-09-22T12:52:49Z</updated>
	<author>
		<name>scorpion10</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I observed one thing in the properties that we set, if I set the connectiontimeout property, even if the server is down the JavaMail(v1.4.1) throws SocketTimeOutException instead of ConnectException and this is &lt;b&gt;irrespective of the value&lt;/b&gt;&amp;nbsp;I specify in the following:
&lt;br&gt;&lt;br&gt;1. props.put(&amp;quot;mail.smtp.connectiontimeout&amp;quot;, &amp;quot;10&amp;quot;);
&lt;br&gt;2. props.put(&amp;quot;mail.smtp.timeout&amp;quot;, &amp;quot;1000&amp;quot;);
&lt;br&gt;&lt;br&gt;The ConnectException is thrown only if :
&lt;br&gt;&lt;br&gt;a) I don't specify 1.
&lt;br&gt;b) I give a value of 0 for 1.
&lt;br&gt;&lt;br&gt;I read in the document that by default the &amp;nbsp;connectiontimeout value is infinite. Please let me know if this is a bug.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ConnectionTimeOut-tp19615286p19615286.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19606748</id>
	<title>Re: IMAP folder append and copy</title>
	<published>2008-09-22T05:08:04Z</published>
	<updated>2008-09-22T05:08:04Z</updated>
	<author>
		<name>Chris Webb-3</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;Bill,&lt;br&gt;&lt;br&gt;I got the search for the recent appended message working using the following code as per your suggestion:&lt;br&gt;&lt;br&gt;&lt;font face=&quot;courier new,monospace&quot;&gt;folder.appendMessage(message);&lt;br&gt;folder.open(Folder.READ_ONLY);&lt;br&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;String[] headerValues = message.getHeader(&amp;quot;Message-ID&amp;quot;);&lt;br&gt;if (headerValues.length != 1) {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new IllegalStateException(&amp;quot;Unexpected Message-ID header value count of &amp;quot; + headerValues.length + &amp;quot; when expecting 1&amp;quot;);&lt;br&gt;

}&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;MessageIDTerm messageIdTerm = new MessageIDTerm(headerValues[0]);&lt;br&gt;Message[] messages = folder.getMailFolder().search(messageIdTerm);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;if (messages.length != 1) {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new IllegalStateException(&amp;quot;Unexpected message count of &amp;quot; + messages.length + &amp;quot; when expecting 1&amp;quot;);&lt;br&gt;

}&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;inboxFolder = folder.getFolder(&amp;quot;INBOX&amp;quot;);&lt;br&gt;inboxFolder.open(Folder.READ_WRITE);&lt;br&gt;folder.getMailFolder().copyMessages(messages, inboxFolder);&lt;/font&gt;&lt;br&gt;&lt;br&gt;Can you expand on how I would optimise this to only search messages that appear after the append takes place?&lt;br&gt;

&lt;br&gt;Can you explain why there would be a delay between the append completing and the message appearing in the folder?&lt;br&gt;&lt;br&gt;regards,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Chris&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Sep 18, 2008 at 1:04 AM, Bill Shannon &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19606748&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bill.shannon@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Chris Webb wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hello,&lt;br&gt;
&lt;br&gt;
I need to append a message to an IMAP folder then immediately copy that message to another folder, doing two appends is not an option, and I&amp;#39;m struggling to work out the best way to do the copy using JavaMail &lt;a href=&quot;http://1.3.3.&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;1.3.3.&lt;/a&gt; &amp;lt;&lt;a href=&quot;http://1.3.3&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://1.3.3&lt;/a&gt;.&amp;gt; The copyMessages operation understandably requires an IMAPMessage but I&amp;#39;m not sure how I can retrieve the exact IMAPMessage object for the message just appended. The JavaDoc indicates that appendMessages fires off a MessageCountEvent and I was hoping that might provide me with the message details but no event is being fired. Is there another option?&lt;br&gt;

&lt;/blockquote&gt;
&lt;br&gt;
Assuming you&amp;#39;re stuck with &lt;a href=&quot;http://1.3.3.&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;1.3.3.&lt;/a&gt;..&lt;br&gt;
&lt;br&gt;
You&amp;#39;ll need to search the destination folder for the new message, e.g.,&lt;br&gt;
using the Message-ID to match. &amp;nbsp;You can narrow the search by only searching&lt;br&gt;
messages that appear after you do the append, e.g., that have a larger&lt;br&gt;
message number than the number of messages before the append. &amp;nbsp;Note that&lt;br&gt;
there might be some delay between when the append completes and when the&lt;br&gt;
message appears in the folder.&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;-- &lt;br&gt;Chris Webb&lt;br&gt;CTO&lt;br&gt;Inniu Ltd&lt;br&gt;e) &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19606748&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.webb@...&lt;/a&gt;&lt;br&gt;m) +44 77 8639 2359&lt;br&gt;
&lt;/div&gt;
===========================================================================
To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19606748&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
of the message &quot;signoff JAVAMAIL-INTEREST&quot;.  For general help, send email to
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19606748&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &quot;help&quot;.
&lt;p&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/IMAP-folder-append-and-copy-tp19543046p19606748.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19563177</id>
	<title>Re: javamail backwards compatibility</title>
	<published>2008-09-18T15:46:44Z</published>
	<updated>2008-09-18T15:46:44Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Brendan Miller wrote:
&lt;br&gt;&amp;gt; My team has a bunch of stuff linked into the javamail 1.3.1 mail.jar.
&lt;br&gt;&amp;gt; How strong of backwards compatibility does the latest javamail offer?
&lt;br&gt;&amp;gt; Can I just drop in the 1.4.1 mail.jar and expect everything to work?
&lt;br&gt;&amp;gt; Will jars originally built against earlier versions work with newer
&lt;br&gt;&amp;gt; versions without recompile?
&lt;br&gt;&lt;br&gt;The goal is very strong backwards compatibility.
&lt;br&gt;&lt;br&gt;The highest importance is the APIs defined by the JavaMail spec.
&lt;br&gt;&lt;br&gt;Less important is the Sun-specific features of the implementation,
&lt;br&gt;although generally we try to maintain compatibility for them as well.
&lt;br&gt;&lt;br&gt;As I'm sure you're aware, part of the responsibility is on the application.
&lt;br&gt;It's always possible for applications to do things there were never defined
&lt;br&gt;by the spec, never expected to work, and possibly even violate the
&lt;br&gt;expectations of the spec. &amp;nbsp;It's a lot harder to provide compatibility for
&lt;br&gt;such applications.
&lt;br&gt;&lt;br&gt;Performance compatibility is also hard. &amp;nbsp;We often change the implementation
&lt;br&gt;to improve the performance of most apps, but some apps might be (unknowingly)
&lt;br&gt;dependent on the implementation details and perform worse as those details
&lt;br&gt;change.
&lt;br&gt;&lt;br&gt;All software has bugs. &amp;nbsp;Every change to software risks introducing a new
&lt;br&gt;bug. &amp;nbsp;It's always possible that new versions have bugs that older versions
&lt;br&gt;don't have, and that such bugs will effect your application.
&lt;br&gt;&lt;br&gt;But, if the application developer has made some attempt to produce a
&lt;br&gt;portable app, the probability that it will work with a new version of
&lt;br&gt;JavaMail is extremely high.
&lt;br&gt;&lt;br&gt;And of course we're always interested in any compatibility problems, or
&lt;br&gt;bugs, you might find!
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19563177&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19563177&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/javamail-backwards-compatibility-tp19562029p19563177.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19562029</id>
	<title>javamail backwards compatibility</title>
	<published>2008-09-18T14:16:26Z</published>
	<updated>2008-09-18T14:16:26Z</updated>
	<author>
		<name>Brendan Miller-5</name>
	</author>
	<content type="html">My team has a bunch of stuff linked into the javamail 1.3.1 mail.jar.
&lt;br&gt;How strong of backwards compatibility does the latest javamail offer?
&lt;br&gt;Can I just drop in the 1.4.1 mail.jar and expect everything to work?
&lt;br&gt;Will jars originally built against earlier versions work with newer
&lt;br&gt;versions without recompile?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19562029&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19562029&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/javamail-backwards-compatibility-tp19562029p19562029.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19558893</id>
	<title>Re: Problem using JavaMail to send email with SMTP AUTH</title>
	<published>2008-09-18T11:19:31Z</published>
	<updated>2008-09-18T11:19:31Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Simon Kittle wrote:
&lt;br&gt;&amp;gt; Thanks!! &amp;nbsp;It probably doesn't help there are so many examples floating
&lt;br&gt;&amp;gt; around the web with the wrong method and people asking for help! heh.
&lt;br&gt;&lt;br&gt;The web is *full* of misinformation.
&lt;br&gt;&lt;br&gt;I try to make sure the documentation on java.sun.com is correct.
&lt;br&gt;Please check there first.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558893&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558893&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-using-JavaMail-to-send-email-with-SMTP-AUTH-tp19557477p19558893.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19558079</id>
	<title>Re: Problem using JavaMail to send email with SMTP AUTH</title>
	<published>2008-09-18T10:35:44Z</published>
	<updated>2008-09-18T10:35:44Z</updated>
	<author>
		<name>simon_</name>
	</author>
	<content type="html">Thanks!! &amp;nbsp;It probably doesn't help there are so many examples floating
&lt;br&gt;around the web with the wrong method and people asking for help! heh.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Bill Shannon [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558079&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bill.shannon@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Thursday, September 18, 2008 6:31 PM
&lt;br&gt;&amp;gt; To: Simon Kittle
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558079&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;JAVAMAIL-INTEREST@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: Problem using JavaMail to send email with SMTP AUTH
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Simon Kittle wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I'm having trouble sending email using JavaMail using SMTP AUTH. &amp;nbsp;I
&lt;br&gt;&amp;gt; have a
&lt;br&gt;&amp;gt; &amp;gt; JAMES server setup. &amp;nbsp;I'm 99% sure that my JAMES config is okay
&lt;br&gt;&amp;gt; because I can
&lt;br&gt;&amp;gt; &amp;gt; both send email by hand using telnet, and also using Outlook as a
&lt;br&gt;&amp;gt; client
&lt;br&gt;&amp;gt; &amp;gt; (both with SMTP AUTH).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; This is the code which tries to send the mail:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.debug&amp;quot;, true);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; true needs to be a string - &amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.smtp.host&amp;quot;, smtpHostName);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.smtp.auth&amp;quot;, true);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ditto.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Fixing that will solve your problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's explained in the javadocs that these properties need to be set as
&lt;br&gt;&amp;gt; strings, but this is another one of those things that enough people
&lt;br&gt;&amp;gt; mess
&lt;br&gt;&amp;gt; up that I'm adding support for it in the next release.
&lt;/div&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558079&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558079&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-using-JavaMail-to-send-email-with-SMTP-AUTH-tp19557477p19558079.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19558027</id>
	<title>Re: Properties in general</title>
	<published>2008-09-18T10:33:18Z</published>
	<updated>2008-09-18T10:33:18Z</updated>
	<author>
		<name>simon_</name>
	</author>
	<content type="html">Setting it by doing:
&lt;br&gt;&lt;br&gt;props.put(&amp;quot;mail.debug&amp;quot;, true);
&lt;br&gt;&lt;br&gt;Yeah I didn't mean the property for the actual password - just the user and
&lt;br&gt;the &amp;quot;auth&amp;quot; property to make it use auth in the first place. &amp;nbsp;My bad. &amp;nbsp;My
&lt;br&gt;question was why they need to be set, and the auth object passed, and then
&lt;br&gt;Transport.connect has to have all the values specified anyway.
&lt;br&gt;&lt;br&gt;My debug output from JavaMail confirms that it is not attempting the AUTH,
&lt;br&gt;in regard to my previous (original) question.
&lt;br&gt;&lt;br&gt;EHLO *REMOVED*
&lt;br&gt;250-*REMOVED* Hello *REMOVED* (*REMOVED* [127.0.0.1])
&lt;br&gt;250-AUTH LOGIN PLAIN
&lt;br&gt;250-AUTH=LOGIN PLAIN
&lt;br&gt;250-PIPELINING
&lt;br&gt;250 ENHANCEDSTATUSCODES
&lt;br&gt;DEBUG SMTP: Found extension &amp;quot;AUTH&amp;quot;, arg &amp;quot;LOGIN PLAIN&amp;quot;
&lt;br&gt;DEBUG SMTP: Found extension &amp;quot;AUTH=LOGIN&amp;quot;, arg &amp;quot;PLAIN&amp;quot;
&lt;br&gt;DEBUG SMTP: Found extension &amp;quot;PIPELINING&amp;quot;, arg &amp;quot;&amp;quot;
&lt;br&gt;DEBUG SMTP: Found extension &amp;quot;ENHANCEDSTATUSCODES&amp;quot;, arg &amp;quot;&amp;quot;
&lt;br&gt;DEBUG SMTP: use8bit false
&lt;br&gt;MAIL FROM:&amp;lt;mailer-testtest=fastmail.co.uk@*REMOVED*&amp;gt;
&lt;br&gt;250 2.1.0 Sender &amp;lt;mailer-testtest=fastmail.co.uk@*REMOVED*&amp;gt; OK
&lt;br&gt;RCPT TO:&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558027&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;testtest@...&lt;/a&gt;&amp;gt;
&lt;br&gt;530 5.7.1 Authentication Required
&lt;br&gt;DEBUG SMTP: Invalid Addresses
&lt;br&gt;DEBUG SMTP: &amp;nbsp; testtest @inbox.com
&lt;br&gt;DEBUG SMTP: Sending failed because of invalid destination addresses
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Bill Shannon [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558027&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bill.shannon@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Thursday, September 18, 2008 6:28 PM
&lt;br&gt;&amp;gt; To: Simon Kittle
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558027&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;JAVAMAIL-INTEREST@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: Properties in general
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Simon Kittle wrote:
&lt;br&gt;&amp;gt; &amp;gt; Obviously, the &amp;quot;mail.debug&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; property is being completely ignored. &amp;nbsp;Do these properties always get
&lt;br&gt;&amp;gt; &amp;gt; ignored? &amp;nbsp;Has anyone had success with them actually working?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes, they definitely work. &amp;nbsp;How were you setting the mail.debug
&lt;br&gt;&amp;gt; property?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt; Could that be
&lt;br&gt;&amp;gt; &amp;gt; why you still have to login with something like
&lt;br&gt;&amp;gt; &amp;quot;tr.connect(smtpHostName,
&lt;br&gt;&amp;gt; &amp;gt; smtpUser, smtpPassword);&amp;quot;, because the user and password properties
&lt;br&gt;&amp;gt; are
&lt;br&gt;&amp;gt; &amp;gt; basically ignored?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There is no password property. &amp;nbsp;Our security experts convinced us that
&lt;br&gt;&amp;gt; it's
&lt;br&gt;&amp;gt; a bad idea to store passwords in properties. &amp;nbsp;Still, enough people
&lt;br&gt;&amp;gt; think
&lt;br&gt;&amp;gt; that there *is* a password property that I'm considering adding support
&lt;br&gt;&amp;gt; for
&lt;br&gt;&amp;gt; it in a future release, even with the potential security problem (which
&lt;br&gt;&amp;gt; is
&lt;br&gt;&amp;gt; probably only of interest to the truly paranoid).
&lt;/div&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558027&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19558027&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Properties-in-general-tp19557492p19558027.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19557979</id>
	<title>Re: Problem using JavaMail to send email with SMTP AUTH</title>
	<published>2008-09-18T10:30:31Z</published>
	<updated>2008-09-18T10:30:31Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Simon Kittle wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm having trouble sending email using JavaMail using SMTP AUTH. &amp;nbsp;I have a
&lt;br&gt;&amp;gt; JAMES server setup. &amp;nbsp;I'm 99% sure that my JAMES config is okay because I can
&lt;br&gt;&amp;gt; both send email by hand using telnet, and also using Outlook as a client
&lt;br&gt;&amp;gt; (both with SMTP AUTH).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is the code which tries to send the mail:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.debug&amp;quot;, true);
&lt;/div&gt;&lt;br&gt;true needs to be a string - &amp;quot;true&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.smtp.host&amp;quot;, smtpHostName);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.smtp.auth&amp;quot;, true);
&lt;br&gt;&lt;br&gt;Ditto.
&lt;br&gt;&lt;br&gt;Fixing that will solve your problem.
&lt;br&gt;&lt;br&gt;It's explained in the javadocs that these properties need to be set as
&lt;br&gt;strings, but this is another one of those things that enough people mess
&lt;br&gt;up that I'm adding support for it in the next release.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19557979&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19557979&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-using-JavaMail-to-send-email-with-SMTP-AUTH-tp19557477p19557979.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19557907</id>
	<title>Re: Properties in general</title>
	<published>2008-09-18T10:27:39Z</published>
	<updated>2008-09-18T10:27:39Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Simon Kittle wrote:
&lt;br&gt;&amp;gt; Obviously, the &amp;quot;mail.debug&amp;quot;
&lt;br&gt;&amp;gt; property is being completely ignored. &amp;nbsp;Do these properties always get
&lt;br&gt;&amp;gt; ignored? &amp;nbsp;Has anyone had success with them actually working?
&lt;br&gt;&lt;br&gt;Yes, they definitely work. &amp;nbsp;How were you setting the mail.debug property?
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; Could that be
&lt;br&gt;&amp;gt; why you still have to login with something like &amp;quot;tr.connect(smtpHostName,
&lt;br&gt;&amp;gt; smtpUser, smtpPassword);&amp;quot;, because the user and password properties are
&lt;br&gt;&amp;gt; basically ignored?
&lt;br&gt;&lt;br&gt;There is no password property. &amp;nbsp;Our security experts convinced us that it's
&lt;br&gt;a bad idea to store passwords in properties. &amp;nbsp;Still, enough people think
&lt;br&gt;that there *is* a password property that I'm considering adding support for
&lt;br&gt;it in a future release, even with the potential security problem (which is
&lt;br&gt;probably only of interest to the truly paranoid).
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19557907&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19557907&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Properties-in-general-tp19557492p19557907.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19557492</id>
	<title>Properties in general</title>
	<published>2008-09-18T10:03:56Z</published>
	<updated>2008-09-18T10:03:56Z</updated>
	<author>
		<name>simon_</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I don't know if this could be related to my problem with getting SMTP AUTH
&lt;br&gt;to work....but, previously I was setting the property &amp;quot;mail.debug&amp;quot; to be
&lt;br&gt;true. &amp;nbsp;The docs say this way debugging is turned on during the constructor.
&lt;br&gt;With this enabled I wasn't actually receiving any debug output. &amp;nbsp;
&lt;br&gt;&lt;br&gt;I put this down to me having something else badly configured, and so I tried
&lt;br&gt;to fix my SMTP AUTH problem just without getting debugging working.
&lt;br&gt;&lt;br&gt;I've recently added the line of code:
&lt;br&gt;&lt;br&gt;session.setDebug(true);
&lt;br&gt;&lt;br&gt;Suddenly I've got loads of debugging output. &amp;nbsp;Obviously, the &amp;quot;mail.debug&amp;quot;
&lt;br&gt;property is being completely ignored. &amp;nbsp;Do these properties always get
&lt;br&gt;ignored? &amp;nbsp;Has anyone had success with them actually working? &amp;nbsp;Could that be
&lt;br&gt;why you still have to login with something like &amp;quot;tr.connect(smtpHostName,
&lt;br&gt;smtpUser, smtpPassword);&amp;quot;, because the user and password properties are
&lt;br&gt;basically ignored?
&lt;br&gt;&lt;br&gt;Not that any of that could be the reason why my auth problem exists because
&lt;br&gt;I'm using the full method of connect(). &amp;nbsp;Just curious as to why these
&lt;br&gt;properties seem to be ignored.
&lt;br&gt;&lt;br&gt;Si
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19557492&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19557492&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Properties-in-general-tp19557492p19557492.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19557477</id>
	<title>Problem using JavaMail to send email with SMTP AUTH</title>
	<published>2008-09-18T09:49:41Z</published>
	<updated>2008-09-18T09:49:41Z</updated>
	<author>
		<name>simon_</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm having trouble sending email using JavaMail using SMTP AUTH. &amp;nbsp;I have a
&lt;br&gt;JAMES server setup. &amp;nbsp;I'm 99% sure that my JAMES config is okay because I can
&lt;br&gt;both send email by hand using telnet, and also using Outlook as a client
&lt;br&gt;(both with SMTP AUTH).
&lt;br&gt;&lt;br&gt;This is the code which tries to send the mail:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.debug&amp;quot;, true);
&lt;br&gt;&amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.smtp.host&amp;quot;, smtpHostName);
&lt;br&gt;&amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.smtp.auth&amp;quot;, true);
&lt;br&gt;&amp;nbsp; &amp;nbsp; String[] envelopeSender = envelopeSenderAddress.split(&amp;quot;@&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; // setup VERP
&lt;br&gt;&amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.smtp.from&amp;quot;, envelopeSender[0] +
&lt;br&gt;emailMessage.toEmail.replaceAll(&amp;quot;@&amp;quot;, &amp;quot;=&amp;quot;) + &amp;quot;@&amp;quot; + envelopeSender[1]);
&lt;br&gt;&amp;nbsp; &amp;nbsp; Session session = Session.getInstance(props, auth);
&lt;br&gt;&amp;nbsp; &amp;nbsp; javax.mail.Message m = new MimeMessage(session);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; m.setFrom(new InternetAddress(emailMessage.fromEmail));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; m.setSubject(emailMessage.subject);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; m.setRecipient(javax.mail.Message.RecipientType.TO, new
&lt;br&gt;InternetAddress(emailMessage.toEmail));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // body set according to appropriate content.
&lt;br&gt;&lt;br&gt;&lt;br&gt;And this is all then send to the SMTP server using:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Transport tr = session.getTransport(&amp;quot;smtp&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //tr.connect(smtpHostName, 2346, smtpUser, smtpPassword);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; tr.connect(smtpHostName, smtpUser, smtpPassword);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; m.saveChanges();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; tr.sendMessage(m, m.getAllRecipients());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; tr.close();
&lt;br&gt;&lt;br&gt;(I tried to just use Transport.send(m); but that didn't work either, which
&lt;br&gt;is why its in the expanded form).
&lt;br&gt;&lt;br&gt;&lt;br&gt;What happens is that despite setting up auth in the above code, the message
&lt;br&gt;is rejected due to an auth error. &amp;nbsp;I've check the username and password and
&lt;br&gt;they are fine (the same ones being used by hand, or in Outlook). &amp;nbsp;Whats more
&lt;br&gt;the message isn't &amp;quot;bad authentication&amp;quot; but &amp;quot;class
&lt;br&gt;com.sun.mail.smtp.SMTPAddressFailedException: 530 5.7.1 Authentication
&lt;br&gt;Required&amp;quot;, so it seems as if JavaMail isn't actually attempting to do any
&lt;br&gt;AUTH.
&lt;br&gt;&lt;br&gt;I've searched and not found any ideas on the internet, save one post saying
&lt;br&gt;I also need to insert something similar to &amp;quot;props.put(&amp;quot;mail.smtp.submitter&amp;quot;,
&lt;br&gt;auth.getPasswordAuthentication());&amp;quot;, which I tried, but which had no effect.
&lt;br&gt;&lt;br&gt;What's more, my JAMES logs seem also to indicate that JavaMail is not
&lt;br&gt;actually trying to do the authentication, see below:
&lt;br&gt;&lt;br&gt;18/09/08 17:00:22 DEBUG smtpserver: Sent: 250-AUTH LOGIN PLAIN
&lt;br&gt;18/09/08 17:00:22 DEBUG smtpserver: Sent: 250-AUTH=LOGIN PLAIN
&lt;br&gt;18/09/08 17:00:22 DEBUG smtpserver: Sent: 250-PIPELINING
&lt;br&gt;18/09/08 17:00:22 DEBUG smtpserver: Sent: 250 ENHANCEDSTATUSCODES
&lt;br&gt;18/09/08 17:00:22 DEBUG smtpserver: Calling reset() default Worker #17
&lt;br&gt;18/09/08 17:00:23 DEBUG smtpserver: Lookup command handler for command: MAIL
&lt;br&gt;18/09/08 17:00:23 DEBUG smtpserver: Sent: 250 2.1.0 Sender &amp;lt;**REMOVED**&amp;gt; OK
&lt;br&gt;18/09/08 17:00:23 DEBUG smtpserver: Calling reset() default Worker #17
&lt;br&gt;18/09/08 17:00:23 DEBUG smtpserver: Lookup command handler for command: RCPT
&lt;br&gt;18/09/08 17:00:23 DEBUG smtpserver: Sent: 530 5.7.1 Authentication Required
&lt;br&gt;18/09/08 17:00:23 ERROR smtpserver: Rejected message - authentication is
&lt;br&gt;required for mail request [to:REMOVED] [from:REMOVED]
&lt;br&gt;&lt;br&gt;If anyone could help me shed from light on this that would be great. &amp;nbsp;I'd
&lt;br&gt;also be interested in learning why one has to both do this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; props.put(&amp;quot;mail.smtp.auth&amp;quot;, true);
&lt;br&gt;&amp;nbsp; &amp;nbsp; Session session = Session.getInstance(props, auth);
&lt;br&gt;&lt;br&gt;and then login with the auth details also:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; tr.connect(smtpHostName, smtpUser, smtpPassword);
&lt;br&gt;&lt;br&gt;Any help would be mucho appreciated....
&lt;br&gt;&lt;br&gt;Simon
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19557477&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19557477&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-using-JavaMail-to-send-email-with-SMTP-AUTH-tp19557477p19557477.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19543817</id>
	<title>Re: IMAP folder append and copy</title>
	<published>2008-09-17T17:04:10Z</published>
	<updated>2008-09-17T17:04:10Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">Chris Webb wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I need to append a message to an IMAP folder then immediately copy that 
&lt;br&gt;&amp;gt; message to another folder, doing two appends is not an option, and I'm 
&lt;br&gt;&amp;gt; struggling to work out the best way to do the copy using JavaMail 1.3.3. 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://1.3.3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://1.3.3&lt;/a&gt;.&amp;gt; The copyMessages operation understandably requires an 
&lt;br&gt;&amp;gt; IMAPMessage but I'm not sure how I can retrieve the exact IMAPMessage 
&lt;br&gt;&amp;gt; object for the message just appended. The JavaDoc indicates that 
&lt;br&gt;&amp;gt; appendMessages fires off a MessageCountEvent and I was hoping that might 
&lt;br&gt;&amp;gt; provide me with the message details but no event is being fired. Is 
&lt;br&gt;&amp;gt; there another option?
&lt;/div&gt;&lt;br&gt;Assuming you're stuck with 1.3.3...
&lt;br&gt;&lt;br&gt;You'll need to search the destination folder for the new message, e.g.,
&lt;br&gt;using the Message-ID to match. &amp;nbsp;You can narrow the search by only searching
&lt;br&gt;messages that appear after you do the append, e.g., that have a larger
&lt;br&gt;message number than the number of messages before the append. &amp;nbsp;Note that
&lt;br&gt;there might be some delay between when the append completes and when the
&lt;br&gt;message appears in the folder.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19543817&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19543817&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/IMAP-folder-append-and-copy-tp19543046p19543817.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19543046</id>
	<title>IMAP folder append and copy</title>
	<published>2008-09-17T16:09:03Z</published>
	<updated>2008-09-17T16:09:03Z</updated>
	<author>
		<name>Chris Webb-3</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;Hello,&lt;br&gt;&lt;br&gt;I need to append a message to an IMAP folder then immediately copy that message to another folder, doing two appends is not an option, and I&amp;#39;m struggling to work out the best way to do the copy using JavaMail &lt;a href=&quot;http://1.3.3.&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;1.3.3.&lt;/a&gt; The copyMessages operation understandably requires an IMAPMessage but I&amp;#39;m not sure how I can retrieve the exact IMAPMessage object for the message just appended. The JavaDoc indicates that appendMessages fires off a MessageCountEvent and I was hoping that might provide me with the message details but no event is being fired. Is there another option?&lt;br&gt;
&lt;br&gt;cheers,&lt;br&gt;chris&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Chris Webb&lt;br&gt;CTO&lt;br&gt;Inniu Ltd&lt;br&gt;e) &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19543046&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.webb@...&lt;/a&gt;&lt;br&gt;m) +44 77 8639 2359&lt;br&gt;
&lt;/div&gt;
===========================================================================
To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19543046&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
of the message &quot;signoff JAVAMAIL-INTEREST&quot;.  For general help, send email to
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19543046&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &quot;help&quot;.
&lt;p&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/IMAP-folder-append-and-copy-tp19543046p19543046.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19499911</id>
	<title>Re: Unique ID for SMTP messages</title>
	<published>2008-09-15T12:21:36Z</published>
	<updated>2008-09-15T12:21:36Z</updated>
	<author>
		<name>Bill Shannon</name>
	</author>
	<content type="html">scorpion10 wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Yes you are right but I store the request event (which I use later when I get
&lt;br&gt;&amp;gt; the response) into a queue. The request event is my own event where I have
&lt;br&gt;&amp;gt; some other processing to do. So I need this unique ID for retrieving this
&lt;br&gt;&amp;gt; event from the queue when I get the TransportEvent. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So I feel its better to give a ID parameter for storing some unique ID.
&lt;br&gt;&amp;gt; (Just a suggestion).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Right now for this I found a way i.e. I create a hashCode for the Object and
&lt;br&gt;&amp;gt; store this value as a uniqueID.
&lt;/div&gt;&lt;br&gt;What information do you need in the queue? &amp;nbsp;Just create your own object to
&lt;br&gt;hold that information, possibly including the MimeMessage object that you
&lt;br&gt;sent. &amp;nbsp;Put the information in the queue after you call Transport.send.
&lt;br&gt;&lt;br&gt;Note also that JavaMail will generate a Message-ID header for each message.
&lt;br&gt;That might meet your needs for a unique ID. &amp;nbsp;You can fetch that from the
&lt;br&gt;Message object included in the TransportEvent, if you really want to use
&lt;br&gt;TransportEvent.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19499911&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19499911&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;listserv@...&lt;/a&gt; and include in the body of the message &amp;quot;help&amp;quot;.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Unique-ID-for-SMTP-messages-tp19496641p19499911.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19498586</id>
	<title>Re: Unique ID for SMTP messages</title>
	<published>2008-09-15T11:37:47Z</published>
	<updated>2008-09-15T11:37:47Z</updated>
	<author>
		<name>scorpion10</name>
	</author>
	<content type="html">Yes you are right but I store the request event (which I use later when I get the response) into a queue. The request event is my own event where I have some other processing to do. So I need this unique ID for retrieving this event from the queue when I get the TransportEvent. 
&lt;br&gt;&lt;br&gt;So I feel its better to give a ID parameter for storing some unique ID. (Just a suggestion).
&lt;br&gt;&lt;br&gt;Right now for this I found a way i.e. I create a hashCode for the Object and store this value as a uniqueID.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Bill Shannon wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;scorpion10 wrote:
&lt;br&gt;&amp;gt; I am trying to send SMTP messages (Using JavaMail API v 1.4). Since I need
&lt;br&gt;&amp;gt; high performance I make use of Threads to submit messages (I submit around
&lt;br&gt;&amp;gt; 100 messages per second). My question is how would I know when the response
&lt;br&gt;&amp;gt; arrives, to which request it was. In other words is there any field called
&lt;br&gt;&amp;gt; ID which I can set in the request and get it back in the TransportEvent?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; One of the way I can see is to set as Header value and retrieve it from the
&lt;br&gt;&amp;gt; TransportEvent. But then the problem is the recipient of the message can get
&lt;br&gt;&amp;gt; this value too (Which is not desirable).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So please let me know if there is any way I can set the ID.
&lt;br&gt;&lt;br&gt;If all you're looking for is the confirmation that the server has
&lt;br&gt;received the message (which is all the TransportEvent is telling you),
&lt;br&gt;it's probably easy just to not listen for the transport events and
&lt;br&gt;simply use the success of the send method.
&lt;br&gt;&lt;br&gt;===========================================================================
&lt;br&gt;To unsubscribe, send email to listserv@java.sun.com and include in the body
&lt;br&gt;of the message &amp;quot;signoff JAVAMAIL-INTEREST&amp;quot;. &amp;nbsp;For general help, send email to
&lt;br&gt;listserv@java.sun.com and include in the body of the message &amp;quot;help&amp;quot;.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Unique-ID-for-SMTP-messages-tp19496641p19498586.html" />
</entry>

</feed>
