From: Brendan Cully Date: Sat, 30 Aug 2008 01:18:59 +0000 (-0700) Subject: Remove redundant code X-Git-Tag: mutt-1-5-19-rel~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70feed1aff4e1a2ccfec6b0f0e185dba45aa16b3;p=mutt Remove redundant code --- diff --git a/ChangeLog b/ChangeLog index 2b971b6e..2b6bfaf9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,27 @@ +2008-08-29 16:54 -0700 Brendan Cully (e0f0a7915711) + + * imap/command.c, imap/imap.c, imap/imap_private.h, imap/message.c: + Use sorted headers in imap_exec_msgset. Fixes [e68f79fef249]. Closes + #3000 again. + +2008-08-29 10:23 +0200 YONETANI Tomokazu (78aab353e217) + + * buffy.c: 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). + 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 @@ -12,14 +29,12 @@ 2008-08-26 23:09 -0700 Brendan Cully (2731e5174c5a) - * ChangeLog, imap/util.c, mutt_sasl.c, mutt_ssl.c, mutt_ssl_gnutls.c: + * 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 [53d9210aa4ee]. diff --git a/imap/imap.c b/imap/imap.c index cb7a2eba..b1e8f6ef 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -975,7 +975,6 @@ int imap_exec_msgset (IMAP_DATA* idata, const char* pre, const char* post, idata->ctx->hdrs = safe_malloc (idata->ctx->msgcount * sizeof (HEADER*)); memcpy (idata->ctx->hdrs, hdrs, idata->ctx->msgcount * sizeof (HEADER*)); - oldsort = Sort; Sort = SORT_ORDER; qsort (idata->ctx->hdrs, idata->ctx->msgcount, sizeof (HEADER*), mutt_get_sort_func (SORT_ORDER)); @@ -1242,7 +1241,6 @@ int imap_sync_mailbox (CONTEXT* ctx, int expunge, int* index_hint) ctx->hdrs = safe_malloc (ctx->msgcount * sizeof (HEADER*)); memcpy (ctx->hdrs, hdrs, ctx->msgcount * sizeof (HEADER*)); - oldsort = Sort; Sort = SORT_ORDER; qsort (ctx->hdrs, ctx->msgcount, sizeof (HEADER*), mutt_get_sort_func (SORT_ORDER));