Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
11-18-2010, 07:55 PM #1
- Join Date
- Jul 2010
- Thanked 0 Times in 0 Posts
Javamail: How to Search Email in Multiple Folders at Once?
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
Last edited by savannah_becket; 11-18-2010 at 08:49 PM.