I think the problem here is the whitespace in the folder. Possible solutions:
Update: As winchendonsprings pointed out, there is a way to escape the whitespace in the folder name. Now we can use a macro to change to
All Mail
:bind editor <space> noop macro index ga "<change-folder>=[Gmail].All Mail<enter>" "Go to all mail"
You use a name transalation to create mailboxes without a whitespace as described in the documentation. For example the translation could look like this:
nametrans = lambda x: re.sub('\[|\]|\s', '_', x)
You should make sure, as the documentation states, that no folder ends up with the same translated name. You can check this by running offlineimap with
--info
.Another possible solution could be, to register your mailboxes and simply use a macro to toggle between the index and your list of configured mailboxes, eg. in your
.muttrc
:mailboxes =[Gmail].All\ Mail =[Gmail].Important =[Gmail].Starred macro index <left> ':mailboxes <enter>c?<toggle-mailboxes>
That provides the benefit that mutt monitors your local mailbox and tells you if you've got new mail. You can even automate this if you want. Examples can be found here.