X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/14c29200cb58d3c4a0830265f2433849781858d0..20f65ac3b82b354496b5bb469ff184ba8b0bcd96:/buffy.h diff --git a/buffy.h b/buffy.h index b86d1aa..2e5e048 100644 --- a/buffy.h +++ b/buffy.h @@ -22,13 +22,14 @@ typedef struct buffy_t { - char *path; - long size; + char path[_POSIX_PATH_MAX]; + off_t size; struct buffy_t *next; short new; /* mailbox has new mail */ short notified; /* user has been notified */ short magic; /* mailbox type */ short newly_created; /* mbox or mmdf just popped into existence */ + time_t last_visited; /* time of last exit from this mailbox */ } BUFFY; @@ -39,3 +40,10 @@ extern time_t BuffyDoneTime; /* last time we knew for sure how much mail there w BUFFY *mutt_find_mailbox (const char *path); void mutt_update_mailbox (BUFFY * b); + +/* fixes up atime + mtime after mbox/mmdf mailbox was modified + according to stat() info taken before a modification */ +void mutt_buffy_cleanup (const char *buf, struct stat *st); + +/* mark mailbox just left as already notified */ +void mutt_buffy_setnotified (const char *path);