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

"no mailbox" impossible to leave -- changeset 6020



Hi,

If I end up with "no mailbox", it seems impossible to change it into
another by "c" (change-folder) since the error messages " is not a
mailbox" followed by "No mailbox is opened". In that case I have to exit
mutt and start all over.

This happens when I try to open a mailbox with an erroneous password.


The problem was introduced by

changeset:   6020:e67f4c347bb4
branch:      HEAD
user:        Rocco Rutte <pdmef@xxxxxxx>
date:        Mon Aug 17 16:58:21 2009 +0200
summary:     Require already opened folder when using templates for
change-folder.

$ hg diff -r 6019 -r 6020
diff --git a/curs_main.c b/curs_main.c
--- a/curs_main.c
+++ b/curs_main.c
@@ -1082,7 +1082,7 @@
            break;
          }
        }
-       else
+       else if (Context && Context->path)
        {
          mutt_buffy (buf, sizeof (buf));


This should probable be a simple fix even if I don't understand the
rationale behind the patch above.


Best regards

Anders