when i use FetchProfile get messages IndexOutOfBoundsException!_NEWLINE_!was thrown , pls tell me why and give me advice thanks
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   yh_lee
Posted On:   Thursday, September 26, 2002 09:02 PM

source code:
1. Message[] msgs = f.getMessages();
2. FetchProfile fp = new FetchProfile();
3. fp.add(FetchProfile.Item.ENVELOPE);
4. fp.add(FetchProfile.Item.FLAGS);
5. f.fetch(msgs, fp);
when it goes line 5 IndexOutOfBoundsException
was thrown,
when i remove line 3,everything goes ok.but when i execute
msgs[i].getFrom(),IndexOutOfBoundsException
was thrown too.
mail server:domino5.08 imp4

About | Sitemap | Contact