Nick Sayer wrote:
> 

[...]

> 
> 2. Extra entries in the ...user/f/foo.sub file that corespond to
> nonexistent mailboxes causes the LSUB output to truncate at that spot.

Try this patch.  Fairly simple, but a pain in the ass to find.

Ken


Index: mboxlist.c
===================================================================
RCS file: /afs/andrew/system/cvs/src/cyrus/imap/mboxlist.c,v
retrieving revision 1.147.2.4.2.6
diff -c -r1.147.2.4.2.6 mboxlist.c
*** mboxlist.c  2001/07/12 00:43:00     1.147.2.4.2.6
--- mboxlist.c  2001/07/28 02:52:35
***************
*** 1377,1384 ****
  
        matchlen = glob_test(g, namebuf+rock->inboxoffset,
                             keylen-rock->inboxoffset, &minmatch);
!       if (matchlen == -1) break;
! 
        switch (r) {
        case 0:
            /* found the entry; output it */
--- 1377,1388 ----
  
        matchlen = glob_test(g, namebuf+rock->inboxoffset,
                             keylen-rock->inboxoffset, &minmatch);
! 
!       if (matchlen == -1) {
!           r = 0;
!           break;
!       }
! 
        switch (r) {
        case 0:
            /* found the entry; output it */

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp

Reply via email to