Changeset 5028:058de4be5821 for imap

Show
Ignore:
Timestamp:
2007-03-30 19:41:27 (20 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
default
Message:

Add close hook for mh/maildir.
stat the directory on open.
Make IMAP close function match prototype.

Location:
imap
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • imap/imap.c

    r5027 r5028  
    12781278 
    12791279/* imap_close_mailbox: clean up IMAP data in CONTEXT */ 
    1280 void imap_close_mailbox (CONTEXT* ctx) 
     1280int imap_close_mailbox (CONTEXT* ctx) 
    12811281{ 
    12821282  IMAP_DATA* idata; 
     
    12861286  /* Check to see if the mailbox is actually open */ 
    12871287  if (!idata) 
    1288     return; 
     1288    return 0; 
    12891289 
    12901290  if (ctx == idata->ctx) 
     
    13261326 
    13271327  mutt_bcache_close (&idata->bcache); 
     1328 
     1329  return 0; 
    13281330} 
    13291331 
  • imap/imap.h

    r4574 r5028  
    3939int imap_open_mailbox_append (CONTEXT *ctx); 
    4040int imap_sync_mailbox (CONTEXT *ctx, int expunge, int *index_hint); 
    41 void imap_close_mailbox (CONTEXT *ctx); 
     41int imap_close_mailbox (CONTEXT *ctx); 
    4242int imap_buffy_check (int force); 
    4343int imap_status (char *path, int queue);