Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-18-2010, 07:55 PM   PM User | #1
savannah_becket
New Coder

 
Join Date: Jul 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
savannah_becket is an unknown quantity at this point
Question Javamail: How to Search Email in Multiple Folders at Once?

Hi,
I am using Javamail api. I know how to search email in one folder, but how to search email in multiple folders at once? Like issue one search command as a global search to the email account, it is for efficient purpose. The only way I can think of is to go to each folder and issue a search on each folder. But if there are 10 folders, I will have to run search function 10 times. I tried to just use the folder I got from getDefaultFolder ( ) to do the search and think that it maybe the root of all folders, but it doesn't work. I have to getFolder (each_folder) and search 10 times. Does anyone know how? I want this
Thanks.

Last edited by savannah_becket; 11-18-2010 at 08:49 PM..
savannah_becket is offline   Reply With Quote
Reply

Bookmarks

Tags
seach email folders

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:36 AM.


Advertisement
Log in to turn off these ads.