X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/19304f7c526fbe36ba0db2fb80bcaf3bd974d81d..0e96c15b2242bc98ca58bd37d06142c13c17f6e7:/buffy.h diff --git a/buffy.h b/buffy.h index 14f9517..2e5e048 100644 --- a/buffy.h +++ b/buffy.h @@ -22,13 +22,14 @@ typedef struct buffy_t { - char *path; + 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);