diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-07-19 10:49:21 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-07-19 10:49:21 +0000 |
commit | 63b2ee52323f72bdfc4fb5d9150dc6c0e2648aba (patch) | |
tree | 2ce6e5a2574cb92c6431ecf54a04641547565272 /buffy.c | |
parent | 98735efb6eb38f4561760e56ac2d9b6ee2582f7e (diff) |
Consider empty folders to be non-existent for buffy's purposes.
Diffstat (limited to 'buffy.c')
-rw-r--r-- | buffy.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -41,8 +41,9 @@ static short BuffyNotify = 0; /* # of unnotified new boxes */ #ifdef BUFFY_SIZE -/* Find the last message in the file. * upon success return 0. * If no - * message found - return -1 */ +/* Find the last message in the file. + * upon success return 0. If no message found - return -1 */ + int fseek_last_message (FILE * f) { long int pos; @@ -257,7 +258,7 @@ int mutt_buffy_check (int force) } else #endif - if (stat (tmp->path, &sb) != 0 || + if (stat (tmp->path, &sb) != 0 || sb.st_size == 0 || (!tmp->magic && (tmp->magic = mx_get_magic (tmp->path)) <= 0)) { /* if the mailbox still doesn't exist, set the newly created flag to |