From 63b2ee52323f72bdfc4fb5d9150dc6c0e2648aba Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 19 Jul 1999 10:49:21 +0000 Subject: Consider empty folders to be non-existent for buffy's purposes. --- buffy.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'buffy.c') diff --git a/buffy.c b/buffy.c index 6fa30bf3..0589c325 100644 --- a/buffy.c +++ b/buffy.c @@ -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 -- cgit v1.2.3