On Sun, 2 Jun 2002 16:22:22 -0300 (ART) Leandro Lucarella <[EMAIL PROTECTED]>
wrote:
LL> VZ> You can already set up each folder to be permanently monitored (new
LL> VZ> mail page).
LL>
LL> But is not a nice job to change 50 folders... :(
LL> or this option is inherited by subfolders?
No, I explicitly coded it in such a way that it isn't inherited -- IMHO it
would be a bad idea to automatically propagate it to the subfolders. We
could have an option "monitor all children" though.
LL> VZ> The problem with doing "Update tree" now is that it opens a new
LL> VZ> connection for each folder which is horribly wasteful and should be fixed, of
LL> VZ> course.
LL>
LL> Yes, I suppose there have to be a command to do this with a single IMAP
LL> connection... do you know anything about it?
LL>
LL> I've looked in squirrelmail IMAP client written in php and they use an IMAP
LL> UNSEEN command to get new messages count to a folder:
LL>
LL> function sqimap_unseen_messages ($imap_stream, $mailbox) {
LL> $read_ary = sqimap_run_command ($imap_stream, "STATUS \"$mailbox\" (UNSEEN)",
true, $result, $message);
LL> ereg("UNSEEN ([0-9]+)", $read_ary[0], $regs);
LL> return $regs[1];
LL> }
LL>
LL> as you can see, it sends a "STATUS <mailbox> (UNSEEN)" and returns the <n>
LL> part of the "UNSEEN <n>" response.
LL> Maybe it helps...
This is exactly what M does (well, except that it also check for the
flagged and recent messages which means that it takes thrice as long) and
the problem is really that it doesn't reuse the connection but opens a new
one for each folder. As I said, this is just a bug and will be fixed.
Regards,
VZ
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Mahogany-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-users