Toggle "Directories" list



Hi,

I just started using mutt to check my local maildir mail (fetched with
fetchmail), and my IMAP server's mail. I set up the $mailboxes variable to
use both, and the Mailboxes screen displays them correctly.

However I would like to customize the Directories screen (the one obtained
by pressing <Tab> at the Mailboxes prompt) so that it either displays all
the folders on my local computer, or all the ones on the IMAP server,
toggled using a key.

So for instance, when I first hit 'c,' and then Tab I want to see all the
folders under ~/.maildir. If I hit 'W' at this point, then it should list
all the directories on the IMAP server. Another 'W' will get it back to
displaying ~/.maildir.

I tried creating a macro like this
macro index W "<change-dir>imap://imap\n";
But it didn't even work.

I looked at the ConfigTricks section on the MuttWiki, and I figured the
toggling behavior I want can be achieved by having two files source
each other dynamically (as in the sorting example on the wiki page).

But I couldn't get it to work. I'm very new to mutt, and I would really
appreciate some help.

Thanks,
Berk



--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • Re: Using courier-imap (was Re: Very disturbing feature in icedove)
    ... Mutt and IMAP ... I've never had a problem with mutt and IMAP. ... I can post mine out of my own config. ... mailboxes `echo $HOME/.Maildir/*` ...
    (Debian-User)
  • Re: Managing Maildirs
    ... > formatted mailboxes using imap, to a more robust and faster imap server ... > that uses maildirs. ... I am currently using mutt with mh-style directories on my local machine, ... The hard part will be converting your current mbox-style mailboxes over to ...
    (freebsd-isp)
  • Using mutt to access imap folders (was: mail questions: mutt and KDE)
    ... This way the traffic in freebsd-kde will not get ... You can set $in your environment to an imap folder. ... up mutt will select the imap folder by default, ...
    (freebsd-questions)
  • Re: Email programs that work.
    ... Mutt create automaticaly the required folders. ... IMAP server, but they are tools to do this. ... Filtering is THE JOB of the Mailserver receiving the messages. ...
    (Debian-User)
  • Re: Mutt Basic
    ... Leonard Charagnier is the latest in a long line of puzzled Mutt attempters. ... Mutt is only a Mail User Agent, ... Puller: Something that will grab the mail or allow you to view it. ... Most ISPs support imap, so we don't need this puller if we use imap instead of pop3. ...
    (Ubuntu)