[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Classpathx-javamail] folder size and null pointer
From: |
Thufir |
Subject: |
[Classpathx-javamail] folder size and null pointer |
Date: |
Thu, 10 May 2012 00:14:16 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
How do you know *which* messages are available?
Of course, it's possible to load all messages from a folder, but when
using start and end parameters, how do you know whether the parameters
are valid?
getMessages
public Message[] getMessages(int start,
int end)
throws MessagingException
Returns the messages in the given range (inclusive).
Parameters:
start - the number of the first message
end - the number of the last message
http://www.gnu.org/software/classpathx/javamail/javadoc/javax/mail/Folder.html#getMessages%28int,int%29
thanks,
thufir
- [Classpathx-javamail] folder size and null pointer,
Thufir <=