From: YONETANI Tomokazu Date: Fri, 29 Aug 2008 08:23:28 +0000 (+0200) Subject: Only consider empty files non-existent for buffy's purpose. X-Git-Tag: mutt-1-5-19-rel~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75142320ebfbb7970cb8b1e93ba1dcc7c0ea28e6;p=mutt Only consider empty files non-existent for buffy's purpose. According to SUS, the st_size member of struct stat is undefined for directories. In case a system reports 0, the newly_created flag will be set for a directory and the magic will be cleared. If the folder type is cleared, mutt won't check the folder for new mail and thus will ignore MH and Maildir type folders on such a fs completely (e.g. the HAMMER fs on DragonFly BSD). --- diff --git a/ChangeLog b/ChangeLog index 66f1d06b..2b971b6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,23 @@ +2008-08-28 11:19 -0700 Brendan Cully (1d94905ad00b) + + * imap/command.c, imap/imap.c, imap/imap_private.h, imap/message.c: + The msgset changes seem buggy. Reverting pending further testing. + +2008-08-28 02:31 -0700 Brendan Cully (e68f79fef249) + + * imap/command.c, imap/imap.c, imap/imap_private.h, imap/message.c: + Split long IMAP commands for the benefit of lazy servers (closes + #3000). Also touches lots of old, hairy code. Likely to wake + sleeping dogs. + +2008-08-26 23:09 -0700 Brendan Cully (2731e5174c5a) + + * ChangeLog, imap/util.c, mutt_sasl.c, mutt_ssl.c, mutt_ssl_gnutls.c: + Properly set the SASL external auth name when using SSL client + certs. Also zero out the account structure before filling it with + available data. Client certificates + SASL EXTERNAL were only + working by luck. + 2008-08-26 02:07 -0700 Brendan Cully (22498996719f) * imap/imap.c: Remove leftover IMAP IDLE handling from before diff --git a/buffy.c b/buffy.c index 8a3f6fce..db20c218 100644 --- a/buffy.c +++ b/buffy.c @@ -308,7 +308,7 @@ int mutt_buffy_check (int force) tmp->magic = M_POP; else #endif - if (stat (tmp->path, &sb) != 0 || sb.st_size == 0 || + if (stat (tmp->path, &sb) != 0 || (S_ISREG(sb.st_mode) && 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