Albert Schueller
9 years ago
I've been using mutt for many years on a local mail spool. Our enterprise recently migrated to gmail. I'm trying to get mutt working with gmail. I've had a lot of success so far, thanks to the many wonderful examples out there.
I have one minor issue that I think, if someone can resolve it for me, will help me understand some other things about imap, mutt and gmail.
Many of the mutt/gmail/imap examples out there have a macro like this:
macro index ga "<change-folder>=[Gmail]/All Mail<enter><enter>" "Go to all mail"
Now, I have
set spoolfile = +INBOX
and when I change "folders", e.g. hit 'c' and enter something like =COMMUNITY (which is a label I use), it works just fine. Or when I hit 'c' and then <tab><tab> I get my list of "folders" (really labels) and can switch to whatever I want. There is even a [Gmail] folder with subfolders like "All Mail" that I can successfully navigate. I say this, just to convince everyone that my imap setup is working.
However, when I use the 'ga' macro above, mutt doesn't switch to the "All Mail" folder, but instead just gives a somewhat cryptic error:
"Mail is not a mailbox."
So, in an attempt to debug, I removed the <enter>'s from my macro, like this:
macro index ga "<change-folder>=[Gmail]/All Mail" "Go to all mail"
When I type 'ga' now, I get the prompt:
Open mailbox: Mail
Since there is no mailbox "Mail", this explains the previous error message. :)
Is it the <space> in the mailbox name that's fouling things up? If so, why is the macro everywhere in mutt/imap/gmail examples? Can any one advise me how to get this working?
On a side note, I have starred emails in gmail, but this doesn't work either:
macro index gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
In fact, there is no "Starred" folder in the list of folders under [Gmail]
Thanks,
Albert
I have one minor issue that I think, if someone can resolve it for me, will help me understand some other things about imap, mutt and gmail.
Many of the mutt/gmail/imap examples out there have a macro like this:
macro index ga "<change-folder>=[Gmail]/All Mail<enter><enter>" "Go to all mail"
Now, I have
set spoolfile = +INBOX
and when I change "folders", e.g. hit 'c' and enter something like =COMMUNITY (which is a label I use), it works just fine. Or when I hit 'c' and then <tab><tab> I get my list of "folders" (really labels) and can switch to whatever I want. There is even a [Gmail] folder with subfolders like "All Mail" that I can successfully navigate. I say this, just to convince everyone that my imap setup is working.
However, when I use the 'ga' macro above, mutt doesn't switch to the "All Mail" folder, but instead just gives a somewhat cryptic error:
"Mail is not a mailbox."
So, in an attempt to debug, I removed the <enter>'s from my macro, like this:
macro index ga "<change-folder>=[Gmail]/All Mail" "Go to all mail"
When I type 'ga' now, I get the prompt:
Open mailbox: Mail
Since there is no mailbox "Mail", this explains the previous error message. :)
Is it the <space> in the mailbox name that's fouling things up? If so, why is the macro everywhere in mutt/imap/gmail examples? Can any one advise me how to get this working?
On a side note, I have starred emails in gmail, but this doesn't work either:
macro index gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
In fact, there is no "Starred" folder in the list of folders under [Gmail]
Thanks,
Albert