On Tue, May 07, 2019 at 11:56:56PM -0300, Luciano ES wrote:
Message-ID: <20190506230923.35007...@lud1.home>
Not sure how you generated this second message, but it has the same Message-ID as your "Inbox folder doesn't work anymore" message. That tangles the threads up, so please try not to do that.
folder-hook gmail 'set folder = "imaps://imap.gmail.com:993"'
This specifies the default location for your mailboxes, and the value for mailbox shortcuts "=" and "+".
folder-hook gmail 'set spoolfile = "$HOME/Mail/gmail"'
This sets the "inbox", and the value for mailbox shortcut "!".
macro index "3" "<change-folder>/root/Mail/gmail<enter><imap-fetch-mail>"
This changes to a local folder, presumably your $spoolfile. <imap-fetch-mail> retrieves new mail for an IMAP mailbox, but you have a local mailbox open. There is nothing in particular that ties it to your remote Gmail folder. Some people use getmail or mbsync for that sort of thing.
imap-fetch-mail: unknown command
<imap-fetch-mail> is a function, not a command. Commands, which can be run directly from ":", are listed at <http://www.mutt.org/doc/manual/#commands>. To execute a function, use the exec command:
:exec imap-fetch-mailHowever, again, since /root/Mail/gmail is just a local mailbox, this won't do anything.
You may want to try macro index "3" "<change-folder>imaps://imap.gmail.com:993/INBOX<enter>" and change your spoolfile to "=INBOX" instead.On a related note, if you are connecting to multiple accounts, I encourage you to look at account-hooks for your authentication information. Using folder-hooks will not work in all situations. See <http://www.mutt.org/doc/manual/#account-hook>.
-- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature