How do I set up a gmail account?

Kevin J. McCarthy kevin at 8t8.us
Wed May 8 04:04:46 UTC 2019


On Tue, May 07, 2019 at 11:56:56PM -0300, Luciano ES wrote:
>Message-ID: <20190506230923.35007eaf at 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-mail

However, 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20190507/8d4bf9ad/attachment.asc>


More information about the Mutt-users mailing list