On Thursday 30 May 2013 14:51:45 Nathan Stratton Treadway wrote:
> On Tue, May 28, 2013 at 23:17:56 +0100, Mick wrote:
> > ## [email protected]
> > source "~/.mutt/account1/.muttrc"
> > folder-hook $folder '~/.mutt/account1/.muttrc'
> > 
> > ## [email protected]
> > source "~/.mutt/gmail/.muttrc"
> > folder-hook $folder '~/.mutt/gmail/.muttrc'
> 
> This doesn't answer your main question about loading speed, but on the
> topic of the
>    /home/username/.mutt/gmail/.muttrc: unknown command
> error message you reported:
> 
> The second argument to the "folder-hook" command is itself a full Mutt
> command, so I think in both those cases you need to include the word
> "source":
> 
>   folder-hook $folder 'source ~/.mutt/gmail/.muttrc'

Thanks Nathan, this indeed was the cause of the unknown command error.  It's 
fixed now.


> Also, note that with this setup, you are actually running both
> ~/.mutt/account1/.muttrc and  ~/.mutt/gmail/.muttrc when you first start
> up Mutt, followed but one or the other again as you open a particular
> folder.  

I was trying to make mutt login in both accounts, but haven't worked out yet 
how to switch between the two.  The sidebar only shows folders of gmail and 
the main viewing pane shows gmail's INBOX folder.


> This could certainly work fine, but a "cleaner" way would be to
> avoid sourcing the scripts directly from ~/.muttrc, but instead only
> call them from the folder hooks.

OK, this shows my ignorance in getting mutt configured correctly - I used what 
I found on the wiki if I recall right.  Is there some other example I could 
follow instead?


> Finally, since those two scripts are configuring account-wide settings,
> I wonder if it would make sense to use "account-hook" instead of
> "folder-hook".

I found this while googling:

  http://www.8t8.us/mutt/

but it only adds to my confusion as to which set up would be optimum for 
accessing multiple IMAP accounts.  I would ideally like to be able to navigate 
the sidebar for descending into different mail accounts and their 
folders/subfolders, rather than launching different instances of mutt on 
different terminals like the URL above suggests.
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to