Re: Change list of folders accessible via 'c' or 'y' for multiple IMAP accounts

2012-02-24 Thread Oon-Ee Ng
On Thu, Feb 23, 2012 at 3:11 PM, Oon-Ee Ng ngoonee.t...@gmail.com wrote:
 Hi, I'm using dovecot locally on my laptop (with offlineimap) for
 multiple accounts (name and name2). Just setting mutt up now for that
 (previously using evolution).

 I'm using folder-hooks to set the following to the appropriate values:-
 set from = ngoonee.t...@gmail.com
 set imap_user=name
 set imap_pass=password
 set realname = Ng Oon-Ee
 set folder=imap://name@localhost/
 set spoolfile=+/

 for both accounts

 Works fine for the 'default' account which I start in. However when I
 change account using c - imap://name2@localhost, the folders list
 expands to include all the folders in account 'name' and 'name2' while
 the IMAP folders list (accessible using 'y') shows the folders of the
 previous account (name).

 I've tried using unmailboxes, but the lists don't change in content
 (trying to access folders from the wrong account gives a 'does not
 exist' error though). Am stumped at the moment, what am I missing?

Trying to script workarounds using macros and having problems with a
peculiar (to my mind) behaviour.

In the pager and index, change-folder suggests a path, but if I
start typing i-m-a-p-:-/-/ it will show imap://

However, in the browser, change-folder appends what I type to the
current path, so for example it will first show:-

Chdir to: imap://name@localhost/

and after calling my macro which simply runs
change-folderimap://name2@localhost the result will be
Chdir to: imap://name@localhost/hange-folderimap://name2@localhost

It seems to me to be buggy in two ways, first that change-folder is
spelt out in that way, and secondly that the default behaviour is
auto-appending. Am I doing something wrong or is this a bug?


Change list of folders accessible via 'c' or 'y' for multiple IMAP accounts

2012-02-22 Thread Oon-Ee Ng
Hi, I'm using dovecot locally on my laptop (with offlineimap) for
multiple accounts (name and name2). Just setting mutt up now for that
(previously using evolution).

I'm using folder-hooks to set the following to the appropriate values:-
set from = ngoonee.t...@gmail.com
set imap_user=name
set imap_pass=password
set realname = Ng Oon-Ee
set folder=imap://name@localhost/
set spoolfile=+/

for both accounts

Works fine for the 'default' account which I start in. However when I
change account using c - imap://name2@localhost, the folders list
expands to include all the folders in account 'name' and 'name2' while
the IMAP folders list (accessible using 'y') shows the folders of the
previous account (name).

I've tried using unmailboxes, but the lists don't change in content
(trying to access folders from the wrong account gives a 'does not
exist' error though). Am stumped at the moment, what am I missing?