]> granicus.if.org Git - mutt/commitdiff
Add imap-logout-all to log out of all IMAP connections. Closes #2880.
authorGregory Shapiro <dev.mutt.org@g.gshapiro.net>
Sun, 21 Feb 2010 05:56:58 +0000 (21:56 -0800)
committerGregory Shapiro <dev.mutt.org@g.gshapiro.net>
Sun, 21 Feb 2010 05:56:58 +0000 (21:56 -0800)
ChangeLog
OPS
UPDATING
curs_main.c
functions.h

index 4723d44f69a7b8cef2e5ff33e69a935ec78f2727..c4ff4a9d8eac5021215ce2895faa3642f87c29ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-02-17 00:47 -0800  Simon Ruderich  <simon@ruderich.org>  (260d39279161)
+
+       * doc/manual.xml.head: Document 'n' and 'o' flags in index
+
+       * doc/devel-notes.txt, doc/muttrc.man.head, init.h,
+       rfc1524.c: Spelling fixes
+
 2010-02-10 23:29 -0800  Brendan Cully  <brendan@kublai.com>  (b7ec848af36b)
 
        * doc/manual.xml.head: Fix a typo (closes #3379)
diff --git a/OPS b/OPS
index 7da74104e9deb9949797476970914a77f2063ca1..8414a8b337671ddee819f83f06b26da76559ee92 100644 (file)
--- a/OPS
+++ b/OPS
@@ -102,6 +102,7 @@ OP_MAIN_CHANGE_FOLDER_READONLY "open a different folder in read only mode"
 OP_MAIN_CLEAR_FLAG "clear a status flag from a message"
 OP_MAIN_DELETE_PATTERN "delete messages matching a pattern"
 OP_MAIN_IMAP_FETCH "force retrieval of mail from IMAP server"
+OP_MAIN_IMAP_LOGOUT_ALL "logout from all IMAP servers"
 OP_MAIN_FETCH_MAIL "retrieve mail from POP server"
 OP_MAIN_FIRST_MESSAGE "move to the first message"
 OP_MAIN_LAST_MESSAGE "move to the last message"
index 6273b1568a7d9f0b85f650267ae0f949665495fd..3bbdccee600ee14e18529d7b11b6a1df3c266dec 100644 (file)
--- a/UPDATING
+++ b/UPDATING
@@ -6,6 +6,7 @@ The keys used are:
 
 hg tip:
 
+  + imap-logout-all closes all open IMAP connections
   ! header/body cache paths are always UTF-8
   + $wrap_headers to control outgoing message's header length
   + all text/* parts can be displayed inline without mailcap
index df2e6cf26f6482d14f25f30571037b2dc5377e3b..58d5305e7c55d260c0f1665d47e0a0e92ae25282 100644 (file)
@@ -991,6 +991,23 @@ int mutt_index_menu (void)
        if (Context && Context->magic == M_IMAP)
          imap_check_mailbox (Context, &index_hint, 1);
         break;
+
+      case OP_MAIN_IMAP_LOGOUT_ALL:
+       if (Context && Context->magic == M_IMAP)
+       {
+         if (mx_close_mailbox (Context, &index_hint) != 0)
+         {
+           set_option (OPTSEARCHINVALID);
+           menu->redraw = REDRAW_FULL;
+           break;
+         }
+         FREE (&Context);
+       }
+       imap_logout_all();
+       mutt_message _("Logged out of IMAP servers.");
+       set_option (OPTSEARCHINVALID);
+       menu->redraw = REDRAW_FULL;
+       break;
 #endif
 
       case OP_MAIN_SYNC_FOLDER:
index 854bb92c51a62c23c023990e2717421d1c6dc53c..f90e6046e0cd53e640871a17e8b93bad93a93196 100644 (file)
@@ -108,6 +108,7 @@ struct binding_t OpMain[] = { /* map: index */
 #endif
 #ifdef USE_IMAP
   { "imap-fetch-mail",         OP_MAIN_IMAP_FETCH,             NULL },
+  { "imap-logout-all",         OP_MAIN_IMAP_LOGOUT_ALL,        NULL },
 #endif
   { "display-toggle-weed",             OP_DISPLAY_HEADERS,             "h" },
   { "next-undeleted",          OP_MAIN_NEXT_UNDELETED,         "j" },
@@ -192,6 +193,7 @@ struct binding_t OpPager[] = { /* map: pager */
   { "group-reply",     OP_GROUP_REPLY,                 "g" },
 #ifdef USE_IMAP
   { "imap-fetch-mail",  OP_MAIN_IMAP_FETCH,            NULL },
+  { "imap-logout-all",  OP_MAIN_IMAP_LOGOUT_ALL,       NULL },
 #endif
   { "display-toggle-weed",     OP_DISPLAY_HEADERS,             "h" },
   { "next-undeleted",  OP_MAIN_NEXT_UNDELETED,         "j" },