searching mails in inbox
1 posts in topic
Flat View  Flat View

Posted By:   aiysha_saleem
Posted On:   Thursday, November 29, 2001 03:22 AM

i have gone through the FAQ's, but couldnt find wat i need. i want to search mails in my inbox, but when i add the code
SearchTerm st = new OrTerm(
new SubjectTerm("any text"),
new FromStringTerm("email"));
Message[] msgs = folder.search(st);

i get error that the class SubjectTerm not found. also how do i display ht esearched results, and if i want to enter the text to search in a text field , wat code will i use.

Re: searching mails in inbox

Posted By:   John_Zukowski  
Posted On:   Thursday, November 29, 2001 08:15 AM

How can I use SearchTerm to match specific messages with POP/IMAP servers? shows how to search. You get back an array of Message objects. You display them the same way you do for a regular message you get back when checking for new mail.
About | Sitemap | Contact