<<< Date Index >>>     <<< Thread Index >>>

Re: What should go into 1.5.7?



Hello,

* Thomas Roessler <roessler@xxxxxxxxxxxxxxxxxx> [050126 12:51]:
> If there are any patches you want to see included with 1.5.7, please
> re-submit them to mutt-dev by Thursday evening. 1.5.7 due on Friday.

this patch doesn't raise an error if you try to sync an empty mailbox
which makes it possible to use such a macro as this on an empty mailbox:

macro index y "<sync-mailbox><change-folder>?"
macro pager y "<sync-mailbox><change-folder>?"

        Thomas
diff -Nru a/curs_main.c b/curs_main.c
--- a/curs_main.c       2004-07-24 12:27:19 +02:00
+++ b/curs_main.c       2005-01-26 16:07:47 +01:00
@@ -984,6 +984,9 @@
       
       case OP_MAIN_SYNC_FOLDER:
 
+       if (Context && !Context->msgcount)
+         break;
+
        CHECK_MSGCOUNT;
         CHECK_VISIBLE;
        CHECK_READONLY;