You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by "Brian C. Dilley" <br...@briandilley.com> on 2003/11/27 07:51:05 UTC

Re: Mail.setRecipients - So I might have bothered you enough, but... :-)

	On the same subject ("problems" with the MimeMessageWrapper):

	Why is it that getAllRecipients() only returns recipients of they were
defined in the DATA section of the protocol, ie:

DATA
Subject: ...
To: whoever
From: whoever

But returns null if they were only specified in the RCPT TO: and MAIL
FROM: section of the protocol?

On Wed, 2003-11-26 at 22:44, Serge Knystautas wrote:
> Gili wrote:
> > 	Noel, I actually agree with Neill. I understand that mail.getRecipients() and modifying it works, but it is 
> > not intuitive and does not follow the Javabeans approach. Why not add setReceipients()? There isn't really an 
> > overhead there; you're just changing the reference of your collection from the old collection to the new one (and 
> > frankly, this also allows you to reuse the same collection). Sun's code does this across their entire API; we 
> > should do the same.
> 
> Why do you think you should call setRecipients()?  Do you expect to need 
> to call setMessage() as well after you add a header or make some 
> modification to it?


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


Re: Mail.setRecipients - So I might have bothered you enough, but... :-)

Posted by Serge Knystautas <se...@lokitech.com>.
Brian C. Dilley wrote:
> 	On the same subject ("problems" with the MimeMessageWrapper):
> 
> 	Why is it that getAllRecipients() only returns recipients of they were
> defined in the DATA section of the protocol, ie:
> 
> DATA
> Subject: ...
> To: whoever
> From: whoever
> 
> But returns null if they were only specified in the RCPT TO: and MAIL
> FROM: section of the protocol?

Because that's what it's supposed to do.  Check the javadocs on javamail.

-- 
Serge Knystautas
President
Lokitech >>> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. sergek@lokitech.com


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


Hosting for Dynamic DNS + James BOOK ++

Posted by Emre Sokullu <so...@ultratv.net>.
Hi all, I have a domain name and I host my site on my own server via a
dynamic dns service.
I want to have an email account on this domain, using James on my own
server.

But I couldn't set it up somehow...
My pop3 and smtp ports are open.
DNS settings are well done.
And some part of my config.xml file is as follows :


<servernames autodetect="true" autodetectIP="true">
         <servername>localhost</servername>
         <servername>mydomain.com</servername>
      </servernames>






         <mailet match="All" class="RemoteDelivery">
            <outgoing> file://var/mail/outgoing/ </outgoing>



            <delayTime> 21600000 </delayTime>


            <maxRetries> 5 </maxRetries>


            <deliveryThreads> 1 </deliveryThreads>

            <gateway> mail.devkod.com </gateway>
            <gatewayPort>25</gatewayPort>

         </mailet>






<dnsserver>

<servers>


<server>127.0.0.1</server>

<server>216.218.213.246</server> <!-- ip of my dynmic dns service
provider, -->

</servers>

<authoritative>false</authoritative>

</dnsserver>








<pop3server enabled="true">

<port>110</port>



<handler>

<helloName autodetect="false">devkod.com</helloName>

<connectiontimeout>120000</connectiontimeout>

</handler>

</pop3server>





<smtpserver enabled="true">



<port>25</port>

<handler>

<helloName autodetect="true">myMailServer</helloName>

<connectiontimeout>360000</connectiontimeout>

<maxmessagesize>0</maxmessagesize>

</handler>

</smtpserver>









As you see, I didn't send everything ; I think this is enough.

But if you want to help me and want more config.xml, I can send you with
pleasure ...



Do you know about a really good James book ? I couldn't find anything on
amazon.com

Just one book, which is not specific to James and which will be sold after
February 2004.





Thanx for your attention and help, hope to hear from you !



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


RE: Mail.setRecipients - So I might have bothered you enough,but... :-)

Posted by Danny Angus <da...@apache.org>.
> 	Why is it that getAllRecipients() only returns recipients 
> of they were
> defined in the DATA section of the protocol, ie:

What?

getAllRecipients returns the recipients defined in the message header, not those sent in the RCPT TO command. QED.

d.



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