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

Re: Alternative Identities



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday, July 30 at 08:55 PM, quoth mimosinnet@xxxxxxxxx:
>This code in muttrc successfully loads the imap account definition (I 
>have tryed with both accounts):
>
># Default mailbox
>source ~/.mutt/Comptes/joanet
>
>If I issue the command c (change-folder) ?, I get the desired list of 
>the imap folders of the defined account.
>
>I was expecting I could source the other imap account definition, and 
>mutt would be in the other account. If I enter mutt with one account 
>and I source the other account:
>:source ~/.mutt/Comptes/uab
>
>when issuing command c (change-folder) ?, mutt is waiting to get the 
>list of folders or shows the folders of the account it was first 
>sourced. It seems that sourcing the other account does not change the 
>default imap folder.

More accurately, "sourcing the other account" does not affect/change 
the CURRENT imap connection. Issuing <change-folder> is done (by 
default) within the current connection.

Or, put another way, simply changing the value of $folder DOES NOT 
cause mutt to open a new connection. NOR does issuing <change-folder>.

>Is there another option I should set to be able to change imap 
>accounts when inside mutt?

In order to finish the change, you have to tell mutt to change the 
current connection. For example, you could add the following to the 
end of the account file you're sourcing:

     push <change-folder>=<enter>

That would tell mutt to actually connect to the other server (or, if 
already connected, to make that connection the current connection).

~Kyle
- -- 
A government which robs Peter to pay Paul can always depend on the 
support of Paul.
                                                 -- George Bernard Shaw
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkiQv1IACgkQBkIOoMqOI17d4wCgn4YytBlNb87mM5JerO/Ef+8e
sd8AoI2crUblChw7Ayq9uzhQ31FGKrBS
=S7CZ
-----END PGP SIGNATURE-----