Hi,
I did not make any change in the config file..The only change I did
was to the code
//folder = store.getFolder("INBOX");
This has cleared the exception that was throwing in the previous case.
Boby
-----Original Message-----
From: Stefano Bagnara [mailto:[email protected]]
Sent: Tuesday, January 19, 2010 2:18 PM
To: James Users List
Subject: Re: Unable to read mail using pop3
What did you changed in config.xml ?
Stefano
2010/1/19 George, Boby <[email protected]>:
>
> Hi ,
> I really appreciate all your reply's and suggestion. Thank you all for
> that.
>
> Well am no more getting that error , however I am not getting the messages
> for that user. I get the message count as Zero when I try to
> read the INBOX.
> Following is the sample code I have for the read mail part...
>
> // Properties props = System.getProperties();
> // Session session = Session.getDefaultInstance(props, null);
>
> // store = session.getStore("pop3");
> // store.connect(popServer, popUser, popPassword);
>
> // folder = store.getFolder("INBOX");
> // folder.open(Folder.READ_ONLY);
>
> // Message message[] = folder.getMessages();
> // for(Message msg : message)
> // {
> // printMessage(msg);
> // }
>
> Here I get the message count as zero.. I expect this code to read message
> from the following location of the james server .
> james-2.3.2\apps\james\var\mail\inboxes\bob. Bob is the user that I have
> created and to whom am sending the mail using smtp.
> I can see message objects getting added to this folder when I run the send
> mail client. But when I run the readmail program which
> contain the above code I am getting the message count as zero. Please let me
> know if anyone have any suggestion for this.
>
> Thanks
> Boby
>
> -----Original Message-----
> From: Mario Zsilak [mailto:[email protected]]
> Sent: Monday, January 18, 2010 5:45 PM
> To: 'James Users List'
> Subject: AW: Unable to read mail using pop3
>
> Hi,
>
>>> But anyway, this is more or less a different issue. What happens if
>>you try
>>> to read mails from your INBOX?
>>
>>What do you mean? When I try to read email from my inbox it usually
>>works :-) but I suspect this was not the answer to your question.
>>
>>Stefano
>>
>
> Well, I was looking for an answer from Boby George who reported the issues.
> The think with POP3 and INBOX may or may not be related with "Unable to read
> mail using pop3".
>
> I was looking for something like "Yes, that solved my issue" or "No, it's
> named INBOX, but I still can't fetch my mails because of following error:
> ..."
>
> Kind regards,
> Mario
>
>>-----Ursprüngliche Nachricht-----
>>Von: Stefano Bagnara [mailto:[email protected]]
>>Gesendet: Montag, 18. Januar 2010 12:32
>>An: James Users List
>>Betreff: Re: Unable to read mail using pop3
>>
>>2010/1/18 Mario Zsilak <[email protected]>:
>>> Hi,
>>>
>>> What I can see from your explanation and the error I guess that only
>>the
>>> name "INBOX" is currently supported in james. So it's the best to
>>leave the
>>> name.
>>
>>Is not about James but about POP3 and Javamail. POP3 does not have
>>folders. Javamail has URL concept and folder concept but when you use
>>Javamail to access POP3 you have to use INBOX as the folder name. This
>>is a Javamail convention. Nothing about James. If you use Javamail to
>>access ANY pop3 server (not only James) you will have to use INBOX.
>>
>>> But anyway, this is more or less a different issue. What happens if
>>you try
>>> to read mails from your INBOX?
>>
>>What do you mean? When I try to read email from my inbox it usually
>>works :-) but I suspect this was not the answer to your question.
>>
>>Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]