You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Michael Valenty <mi...@valenty.com> on 2007/05/31 21:00:03 UTC

Re: POP3 - leave copy of message on server (fixed)

I needed to do:

mail.setName(key);


Michael Valenty wrote:
> 
> I have James 2.3.1 configured to use MyMailRepository. I am using Outlook
> Express as a test POP3 client and I have it set to "leave copy of message
> on server", however I get duplicates of messages I have already
> downloaded.
> 
> MyMailRepository.list() returns a list of keys based on the messageId in
> my system, so the keys are the same everytime. I noticed that Outlook
> Express invokes MyMailRepository.retreive() on every message every time.
> How does a pop3 client determine if it already has a message?
> 
> Does it have anything to do with how I create the Mail object?
> 
> Properties props = System.getProperties();
> Session session = Session.getDefaultInstance(props);
> MimeMessage message = new MimeMessage(session, new
> ByteArrayInputStream(mimeText));
> Mail mail =  new MailImpl(message);
> 
> 

-- 
View this message in context: http://www.nabble.com/POP3---leave-copy-of-message-on-server-tf3842169.html#a10900019
Sent from the James - Dev mailing list archive at Nabble.com.


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