]> granicus.if.org Git - mutt/commitdiff
Here is the patch to fix the bug I reported earlier in this thread,
authorGary Johnson <garyjohn@spk.agilent.com>
Wed, 2 Apr 2003 08:40:50 +0000 (08:40 +0000)
committerGary Johnson <garyjohn@spk.agilent.com>
Wed, 2 Apr 2003 08:40:50 +0000 (08:40 +0000)
that sometimes when changing folders, mutt would generate an error
message and stop the further processing of folder-hooks.

curs_main.c

index ed4a4140a78dade0a0f7a06637d959408b8862c9..43d30d202bb4f3b59060248c3ad685af64b24462 100644 (file)
@@ -1048,6 +1048,12 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE);
 
         mutt_sleep (0);
       
+       /* Set CurrentMenu to MENU_MAIN before executing any folder
+        * hooks so that all the index menu functions are available to
+        * the exec command.
+        */
+
+       CurrentMenu = MENU_MAIN;
        mutt_folder_hook (buf);
 
        if ((Context = mx_open_mailbox (buf,