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

Re: Mailboxes from different profiles



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

On Friday, January 25 at 08:37 PM, quoth Leonardo Caldas:
> I got a doubt and perhaps someone could help me out. Besides my 
> muttrc I have several other sourced config files (ie macros, 
> bindings, mailboxes, etc). For listing my mailboxes I've been using 
> the line below:
>
> mailboxes `find ~/Mail/ -type d -name cur -printf '%h '`
>
> It's been working quite fine so far, but once I have several profiles 
> I'd like its behaviour to vary depending on the profile I'm using. So I 
> put the line above on the different profiles files and imagined that as 
> soon as I loaded the files it would automaticaly run the correct 
> command.

Nope. If you read the documentation, the 'mailboxes' command simply 
adds the specified mailbox names to the list of mailboxes. To do what 
you want, you'd have to empty the list of mailbox names before adding 
the new list of mailboxes. For example, you could do:

     unmailboxes *
     mailboxes `find ~/Mail/ -type d -name cur -printf '%h '`

~Kyle
- -- 
Jesus answered and said to him, "Whoever loves me will keep my word, 
and my Father will love him, and we will come to him and make our 
dwelling with him."
                                                          -- John 14:23
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFHmnelBkIOoMqOI14RAge0AKD9fpr1Wxn5tFTx0+Y4EJin0GInXgCeOr9S
TedsyrhjIpUCZ9U4kfw22KA=
=LLWB
-----END PGP SIGNATURE-----