One solution is to use the IMAP "list" command to retrieve the folders then
"examine" each one.  
Enter the list command as follows:
1 LIST "" *

That will return ALL folders include recursed folders.
Then use the "examine" command directly on the returned folder name.
Example, if the recursed folder returned from the list is
"folder/folder1/folder2", you can examine it by using:
1 EXAMINE folder/folder1/folder2

Chris
----------------------------------------------
Original Message
From: "Ron Hornbaker"<[EMAIL PROTECTED]>
Subject: RE: [IMail Forum] Number of New Messages
Date: Fri, 18 Jan 2002 11:42:42 -0600

>Chris and Alan,
>
>Regarding using IMAP for the new message check, how would you make it
>include the number of new messages in subfolders, which are there from the
>result of mailbox rules? The method below shows only the new messages in
>the Inbox (main) folder. IIRC, that was the thing that kept us from using
>IMAP in our You've Got IMail product. I'm sure it can probably be done, by
>recursing through the list of folders and checking each one, but some
>users have a whole bunch of 'em, and that would be a lengthy conversation
>as compared to one quick http get.
>
>Ron Hornbaker
>President/CTO
>  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
>  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
>> Terrebonne
>> Sent: Friday, January 18, 2002 9:19 AM
>> To: [EMAIL PROTECTED]
>> Subject: RE: [IMail Forum] Number of New Messages
>>
>>
>> One way is to use the IMAP protocol as follows:\
>> Telnet into port 143 on your server and enter this (the lines
>> begining with
>> * are server responses).
>>
>> * OK IMAP4 Server (IMail 6.06)
>> 1 login [EMAIL PROTECTED] password
>> 1 OK LOGIN completed
>> 1 examine inbox
>> * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
>> * 33 EXISTS
>> * 0 RECENT
>> * OK [UNSEEN 31] 2 Messages unseen
>> * OK [PERMANENTFLAGS ()]
>> * OK [UIDVALIDITY 2431986063] UIDs valid
>> 1 OK [READ-ONLY] EXAMINE completed
>
>
>Please visit http://www.ipswitch.com/support/mailing-lists.html 
>to be removed from this list.
>
>An Archive of this list is available at:
>http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
>


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Reply via email to