Changeset 367:7a3e51056fb3 for buffy.c

Show
Ignore:
Timestamp:
1998-08-22 06:35:23 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
mutt-0-94
Message:

[patch-0.94.3.bl.imap_buffy.1] Adding Brandon's IMAP buffy
support.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • buffy.c

    r101 r367  
    2121#include "mx.h" 
    2222#include "mailbox.h" 
     23#ifdef USE_IMAP 
     24#include "imap.h" 
     25#endif 
    2326 
    2427#include <string.h> 
     
    243246    tmp->new = 0; 
    244247 
     248#ifdef USE_IMAP 
     249    if ((tmp->magic == M_IMAP) || mx_is_imap (tmp->path)) 
     250    { 
     251      tmp->magic = M_IMAP; 
     252    } 
     253    else 
     254#endif 
    245255    if (stat (tmp->path, &sb) != 0 || 
    246256        (!tmp->magic && (tmp->magic = mx_get_magic (tmp->path)) <= 0)) 
     
    317327        } 
    318328        break; 
     329 
     330#ifdef USE_IMAP 
     331      case M_IMAP: 
     332        if (imap_buffy_check (tmp->path) > 0) 
     333        { 
     334          BuffyCount++; 
     335          tmp->new = 1; 
     336        } 
     337        break; 
     338#endif 
    319339      } 
    320340    }