- for <rebuild-cache>, add it to manual tables and don't clean up after run since it's no command line option any longer
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@551
e385b8ad-14ed-0310-8656-
cc95a2468c6d
<entry><muttng-doc:key>Z</muttng-doc:key></entry>
<entry>move to the previous page</entry>
</row>
+ <row>
+ <entry><muttng-doc:funcref name="rebuild-cache"/></entry>
+ <entry></entry>
+ <entry>cycle through all defined mailboxes to rebuild all header caches</entry>
+ </row>
<row>
<entry><muttng-doc:funcref name="refresh"/></entry>
<entry><muttng-doc:key mod="C">L</muttng-doc:key></entry>
mutt_error (_("Support for header caching was not build in."));
return (1);
#else
- int i = 0, magic = 0, imap = 0;
+ int i = 0, magic = 0;
CONTEXT* ctx = NULL;
char* buf = NULL;
BUFFY* b = NULL;
magic = mx_get_magic (b->path);
if (magic != M_MAILDIR && magic != M_MH && magic != M_IMAP)
continue;
- if (magic == M_IMAP)
- imap = 1;
buf = str_dup (b->path);
mutt_pretty_mailbox (buf);
mutt_message (_("Rebuilding cache for %s..."), buf);
mem_free (&buf);
}
- if (imap)
- imap_logout_all ();
-
mutt_clear_error ();
return (0);