Re: Simple muttrc file for accessing Gmail imap
In order to create an app password, google will need your cell phone number for verification and later security contacts should those become necessary. On Sun, 22 Sep 2019, Hokan wrote: > Date: Sun, 22 Sep 2019 20:46:58 > From: Hokan > To: mutt-users@mutt.org > Subject: Re: Simple muttrc file for accessing Gmail imap > > You'll also need to set "less secure password" or create an "app password". > > Or set up Oauth, but that'll take a bit of work. > > > On Sun, Sep 22, 2019 at 07:11:10PM -0400, D.J.J. Ring, Jr. wrote: > > I've been trying to help someone set up mutt for gmail imap using > > mutt's internal support for IMAP. > > > > I have been going nuts. Something's wrong but I cannot figure out why it > > fails. > > > > I just remembered that gmail has to have IMAP switched ON by using the > > gmail settings online.: > > > > For the Gmail IMAP settings to work in your email client, IMAP access > > must be enabled in Gmail online. > > > > https://www.lifewire.com/how-to-enable-gmail-via-imap-1170856 > > > > HOW TO Activate IMAP in Gmail > > > > To access a Gmail account in your email program or mobile device via > > the IMAP protocol, activate IMAP in Gmail. > > > > Open Gmail in a web browser. > > > > Choose Settings (the gear icon). > > > > Select Settings. > > > > Select the Forwarding and POP/IMAP tab. > > > > In the IMAP access section, select Enable IMAP. > > > > Leave the other settings on the default selections. > > > > Select Save Changes. > > > > That's it. > > > > Duh! It's been so long since I enabled that setting, I forgot it had > > to be done. > > > > Regards, > > > > David > > > > On Sat, Aug 24, 2019 at 4:06 PM Jude DaShiell wrote: > > > > > > Yes, those macros work and do so silently. Thanks for the macros and > > > the idea to bind stuff to the comma key. I hadn't thought of that one > > > before. > > > > > > On Sat, 24 Aug 2019, Mark Frank wrote: > > > > > > > Date: Sat, 24 Aug 2019 14:00:27 > > > > From: Mark Frank > > > > To: mutt-users@mutt.org > > > > Subject: Re: Simple muttrc file for accessing Gmail imap > > > > > > > > On Sat, Aug 24, 2019 at 1:21 PM Jude DaShiell > > > > wrote: > > > > > > > > > mutt is set up to download pop3 but has no keyboard shortcut to > > > > > download > > > > > imap or didn't the last time I went through its documentation. > > > > > > > > > > > > > > I've had this in my muttrc for years. Don't if if any of these values > > > > are > > > > optimum as I don't use mutt much anymore but it does work. > > > > > > > > > > > > $ grep imap ./.mutt/muttrc | egrep -v ^# > > > > set spoolfile=imaps://imap.gmail.com/INBOX > > > > set folder=imaps://imap.gmail.com/ > > > > set imap_keepalive = 900 > > > > set imap_user='m...@markanderika.com' > > > > set imap_pass=x > > > > set imap_keepalive=300 > > > > unset imap_passive > > > > set postponed=imaps://stag.mark-and-erika.com/INBOX.postponed > > > > macro index ,g "force retrieval of mail from IMAP > > > > server" > > > > macro pager ,g "force retrieval of mail from IMAP > > > > server" > > > > > > > > > > -- > > > > > --
Re: Simple muttrc file for accessing Gmail imap
You'll also need to set "less secure password" or create an "app password". Or set up Oauth, but that'll take a bit of work. On Sun, Sep 22, 2019 at 07:11:10PM -0400, D.J.J. Ring, Jr. wrote: > I've been trying to help someone set up mutt for gmail imap using > mutt's internal support for IMAP. > > I have been going nuts. Something's wrong but I cannot figure out why it > fails. > > I just remembered that gmail has to have IMAP switched ON by using the > gmail settings online.: > > For the Gmail IMAP settings to work in your email client, IMAP access > must be enabled in Gmail online. > > https://www.lifewire.com/how-to-enable-gmail-via-imap-1170856 > > HOW TO Activate IMAP in Gmail > > To access a Gmail account in your email program or mobile device via > the IMAP protocol, activate IMAP in Gmail. > > Open Gmail in a web browser. > > Choose Settings (the gear icon). > > Select Settings. > > Select the Forwarding and POP/IMAP tab. > > In the IMAP access section, select Enable IMAP. > > Leave the other settings on the default selections. > > Select Save Changes. > > That's it. > > Duh! It's been so long since I enabled that setting, I forgot it had > to be done. > > Regards, > > David > > On Sat, Aug 24, 2019 at 4:06 PM Jude DaShiell wrote: > > > > Yes, those macros work and do so silently. Thanks for the macros and > > the idea to bind stuff to the comma key. I hadn't thought of that one > > before. > > > > On Sat, 24 Aug 2019, Mark Frank wrote: > > > > > Date: Sat, 24 Aug 2019 14:00:27 > > > From: Mark Frank > > > To: mutt-users@mutt.org > > > Subject: Re: Simple muttrc file for accessing Gmail imap > > > > > > On Sat, Aug 24, 2019 at 1:21 PM Jude DaShiell wrote: > > > > > > > mutt is set up to download pop3 but has no keyboard shortcut to download > > > > imap or didn't the last time I went through its documentation. > > > > > > > > > > > I've had this in my muttrc for years. Don't if if any of these values > > > are > > > optimum as I don't use mutt much anymore but it does work. > > > > > > > > > $ grep imap ./.mutt/muttrc | egrep -v ^# > > > set spoolfile=imaps://imap.gmail.com/INBOX > > > set folder=imaps://imap.gmail.com/ > > > set imap_keepalive = 900 > > > set imap_user='m...@markanderika.com' > > > set imap_pass=x > > > set imap_keepalive=300 > > > unset imap_passive > > > set postponed=imaps://stag.mark-and-erika.com/INBOX.postponed > > > macro index ,g "force retrieval of mail from IMAP > > > server" > > > macro pager ,g "force retrieval of mail from IMAP > > > server" > > > > > > > -- > > -- Hokan Bicyclist Sysadmin
Re: Simple muttrc file for accessing Gmail imap
I've been trying to help someone set up mutt for gmail imap using mutt's internal support for IMAP. I have been going nuts. Something's wrong but I cannot figure out why it fails. I just remembered that gmail has to have IMAP switched ON by using the gmail settings online.: For the Gmail IMAP settings to work in your email client, IMAP access must be enabled in Gmail online. https://www.lifewire.com/how-to-enable-gmail-via-imap-1170856 HOW TO Activate IMAP in Gmail To access a Gmail account in your email program or mobile device via the IMAP protocol, activate IMAP in Gmail. Open Gmail in a web browser. Choose Settings (the gear icon). Select Settings. Select the Forwarding and POP/IMAP tab. In the IMAP access section, select Enable IMAP. Leave the other settings on the default selections. Select Save Changes. That's it. Duh! It's been so long since I enabled that setting, I forgot it had to be done. Regards, David On Sat, Aug 24, 2019 at 4:06 PM Jude DaShiell wrote: > > Yes, those macros work and do so silently. Thanks for the macros and > the idea to bind stuff to the comma key. I hadn't thought of that one > before. > > On Sat, 24 Aug 2019, Mark Frank wrote: > > > Date: Sat, 24 Aug 2019 14:00:27 > > From: Mark Frank > > To: mutt-users@mutt.org > > Subject: Re: Simple muttrc file for accessing Gmail imap > > > > On Sat, Aug 24, 2019 at 1:21 PM Jude DaShiell wrote: > > > > > mutt is set up to download pop3 but has no keyboard shortcut to download > > > imap or didn't the last time I went through its documentation. > > > > > > > > I've had this in my muttrc for years. Don't if if any of these values are > > optimum as I don't use mutt much anymore but it does work. > > > > > > $ grep imap ./.mutt/muttrc | egrep -v ^# > > set spoolfile=imaps://imap.gmail.com/INBOX > > set folder=imaps://imap.gmail.com/ > > set imap_keepalive = 900 > > set imap_user='m...@markanderika.com' > > set imap_pass=x > > set imap_keepalive=300 > > unset imap_passive > > set postponed=imaps://stag.mark-and-erika.com/INBOX.postponed > > macro index ,g "force retrieval of mail from IMAP server" > > macro pager ,g "force retrieval of mail from IMAP server" > > > > -- >
Re: Simple muttrc file for accessing Gmail imap
Yes, those macros work and do so silently. Thanks for the macros and the idea to bind stuff to the comma key. I hadn't thought of that one before. On Sat, 24 Aug 2019, Mark Frank wrote: > Date: Sat, 24 Aug 2019 14:00:27 > From: Mark Frank > To: mutt-users@mutt.org > Subject: Re: Simple muttrc file for accessing Gmail imap > > On Sat, Aug 24, 2019 at 1:21 PM Jude DaShiell wrote: > > > mutt is set up to download pop3 but has no keyboard shortcut to download > > imap or didn't the last time I went through its documentation. > > > > > I've had this in my muttrc for years. Don't if if any of these values are > optimum as I don't use mutt much anymore but it does work. > > > $ grep imap ./.mutt/muttrc | egrep -v ^# > set spoolfile=imaps://imap.gmail.com/INBOX > set folder=imaps://imap.gmail.com/ > set imap_keepalive = 900 > set imap_user='m...@markanderika.com' > set imap_pass=x > set imap_keepalive=300 > unset imap_passive > set postponed=imaps://stag.mark-and-erika.com/INBOX.postponed > macro index ,g "force retrieval of mail from IMAP server" > macro pager ,g "force retrieval of mail from IMAP server" > --
Re: Simple muttrc file for accessing Gmail imap
Yes. Just tested and confirmed as I don't use mutt as much as I used to do. On Sat, Aug 24, 2019 at 2:25 PM Jude DaShiell wrote: > Interesting, so you would hit ,g to download imap email? > > On Sat, 24 Aug 2019, Mark Frank wrote: > > macro index ,g "force retrieval of mail from IMAP > server" > > macro pager ,g "force retrieval of mail from IMAP > server" > > > > -- > >
Re: Simple muttrc file for accessing Gmail imap
Interesting, so you would hit ,g to download imap email? On Sat, 24 Aug 2019, Mark Frank wrote: > Date: Sat, 24 Aug 2019 14:00:27 > From: Mark Frank > To: mutt-users@mutt.org > Subject: Re: Simple muttrc file for accessing Gmail imap > > On Sat, Aug 24, 2019 at 1:21 PM Jude DaShiell wrote: > > > mutt is set up to download pop3 but has no keyboard shortcut to download > > imap or didn't the last time I went through its documentation. > > > > > I've had this in my muttrc for years. Don't if if any of these values are > optimum as I don't use mutt much anymore but it does work. > > > $ grep imap ./.mutt/muttrc | egrep -v ^# > set spoolfile=imaps://imap.gmail.com/INBOX > set folder=imaps://imap.gmail.com/ > set imap_keepalive = 900 > set imap_user='m...@markanderika.com' > set imap_pass=x > set imap_keepalive=300 > unset imap_passive > set postponed=imaps://stag.mark-and-erika.com/INBOX.postponed > macro index ,g "force retrieval of mail from IMAP server" > macro pager ,g "force retrieval of mail from IMAP server" > --
Re: Simple muttrc file for accessing Gmail imap
On Sat, Aug 24, 2019 at 1:21 PM Jude DaShiell wrote: > mutt is set up to download pop3 but has no keyboard shortcut to download > imap or didn't the last time I went through its documentation. > > I've had this in my muttrc for years. Don't if if any of these values are optimum as I don't use mutt much anymore but it does work. $ grep imap ./.mutt/muttrc | egrep -v ^# set spoolfile=imaps://imap.gmail.com/INBOX set folder=imaps://imap.gmail.com/ set imap_keepalive = 900 set imap_user='m...@markanderika.com' set imap_pass=x set imap_keepalive=300 unset imap_passive set postponed=imaps://stag.mark-and-erika.com/INBOX.postponed macro index ,g "force retrieval of mail from IMAP server" macro pager ,g "force retrieval of mail from IMAP server"
Re: Simple muttrc file for accessing Gmail imap
mutt is set up to download pop3 but has no keyboard shortcut to download imap or didn't the last time I went through its documentation. On Sat, 24 Aug 2019, D.J.J. Ring, Jr. wrote: > Date: Sat, 24 Aug 2019 11:41:42 > From: "D.J.J. Ring, Jr." > To: Jude DaShiell > Cc: mutt-users@mutt.org > Subject: Re: Simple muttrc file for accessing Gmail imap > > Hello Jude, > > It's possible to access gmail and download messages by adding imap > locations and NOT use a mail transport program. Everything is set up > within the muttrc file. > > Burt Henry of the Vinux Wiki. > > Mutt vs. Alpine. > http://wiki.vinuxproject.org/alpine_mutt > > Mutt Configuration and Basic Use. > http://wiki.vinuxproject.org/mutt_configuration_and_basic_use > > He manages to do this just in muttrc. > > Here's the section of muttrc, > > ##Account Specific Settings > # Change the following six lines to match your Gmail account details > #And Uncomment and edit if YOU DO NOT WANT to USE ENCRYPTED PASSWD. > #And comment out the top section that does the PW encryption. > set imap_user = "gmail_han...@gmail.com" > #set imap_pass = "my_PW" > set smtp_url = "smtp://gmail_han...@smtp.gmail.com:587/" > #set smtp_pass = "my_PW" > set from = "gmail_han...@gmail.com" > set realname = "My Name" > > # Change the following line to a different editor you prefer. > set editor = "nano" > > ## GMail Config > #(most of this should work with other IMAP accounts) > ## Basic config, you can leave this as is in most cases > # Not sure if timeout and keepalive value tweaking will help > intermittent connection issues > # (time values are in seconds) > set wait_key = no > set folder = "imaps://imap.gmail.com:993" > set spoolfile = "+INBOX" > set imap_check_subscribed > set hostname = gmail.com > set mail_check = 180 > set timeout = 300 > # Allow Mutt to open new imap connection automatically. > unset imap_passive > # Keep IMAP connection alive by polling intermittently > set imap_keepalive = 210 > set postponed = "+[GMail]/Drafts" > set record = "+[GMail]/Sent Mail" > set header_cache=~/.mutt/cache/headers > set message_cachedir=~/.mutt/cache/bodies > set certificate_file=~/.mutt/certificates > set alias_file=~/.mutt/aliases > set move = no > set include > set sort = 'threads' > set sort_aux = 'reverse-last-date-received' > set auto_tag = yes > ## Reminds you of missing subject or empty body with msg > sent as default > set abort_nosubject = ask-no > set abort_unmodified = ask-no > ignore "Authentication-Results:" > ignore "DomainKey-Signature:" > ignore "DKIM-Signature:" > hdr_order Date From To Cc > alternative_order text/plain text/html * > auto_view text/html > > This is from page: http://wiki.vinuxproject.org/muttrc > > Unfortunately, there are errors in his delightfully easy gpg configuration, > and sometimes he has googlemail instead of gmail and googlemail no longer > works for me in this muttrc. > > There is also a more elaborate muttrc file with more features, but maybe > the same errors, I'm going through it step by step and writing down the > errors. > > Since I have access to the Vinux Wiki I will upload the corrections as soon > as I make sure they are correct. > > Best wishes, > > David Ring > > On Sat, Aug 24, 2019, 10:14 Jude DaShiell wrote: > > > I think I can help there, only thing is mine has the mutt blind-friendly > > options in it. > > > > On Sat, 24 Aug 2019, D.J.J. Ring, Jr. wrote: > > > > > --
Re: Simple muttrc file for accessing Gmail imap
Hello Jude, It's possible to access gmail and download messages by adding imap locations and NOT use a mail transport program. Everything is set up within the muttrc file. Burt Henry of the Vinux Wiki. Mutt vs. Alpine. http://wiki.vinuxproject.org/alpine_mutt Mutt Configuration and Basic Use. http://wiki.vinuxproject.org/mutt_configuration_and_basic_use He manages to do this just in muttrc. Here's the section of muttrc, ##Account Specific Settings # Change the following six lines to match your Gmail account details #And Uncomment and edit if YOU DO NOT WANT to USE ENCRYPTED PASSWD. #And comment out the top section that does the PW encryption. set imap_user = "gmail_han...@gmail.com" #set imap_pass = "my_PW" set smtp_url = "smtp://gmail_han...@smtp.gmail.com:587/" #set smtp_pass = "my_PW" set from = "gmail_han...@gmail.com" set realname = "My Name" # Change the following line to a different editor you prefer. set editor = "nano" ## GMail Config #(most of this should work with other IMAP accounts) ## Basic config, you can leave this as is in most cases # Not sure if timeout and keepalive value tweaking will help intermittent connection issues # (time values are in seconds) set wait_key = no set folder = "imaps://imap.gmail.com:993" set spoolfile = "+INBOX" set imap_check_subscribed set hostname = gmail.com set mail_check = 180 set timeout = 300 # Allow Mutt to open new imap connection automatically. unset imap_passive # Keep IMAP connection alive by polling intermittently set imap_keepalive = 210 set postponed = "+[GMail]/Drafts" set record = "+[GMail]/Sent Mail" set header_cache=~/.mutt/cache/headers set message_cachedir=~/.mutt/cache/bodies set certificate_file=~/.mutt/certificates set alias_file=~/.mutt/aliases set move = no set include set sort = 'threads' set sort_aux = 'reverse-last-date-received' set auto_tag = yes ## Reminds you of missing subject or empty body with msg sent as default set abort_nosubject = ask-no set abort_unmodified = ask-no ignore "Authentication-Results:" ignore "DomainKey-Signature:" ignore "DKIM-Signature:" hdr_order Date From To Cc alternative_order text/plain text/html * auto_view text/html This is from page: http://wiki.vinuxproject.org/muttrc Unfortunately, there are errors in his delightfully easy gpg configuration, and sometimes he has googlemail instead of gmail and googlemail no longer works for me in this muttrc. There is also a more elaborate muttrc file with more features, but maybe the same errors, I'm going through it step by step and writing down the errors. Since I have access to the Vinux Wiki I will upload the corrections as soon as I make sure they are correct. Best wishes, David Ring On Sat, Aug 24, 2019, 10:14 Jude DaShiell wrote: > I think I can help there, only thing is mine has the mutt blind-friendly > options in it. > > On Sat, 24 Aug 2019, D.J.J. Ring, Jr. wrote: > >
Re: Simple muttrc file for accessing Gmail imap
I think I can help there, only thing is mine has the mutt blind-friendly options in it. On Sat, 24 Aug 2019, D.J.J. Ring, Jr. wrote: > Date: Sat, 24 Aug 2019 10:09:48 > From: "D.J.J. Ring, Jr." > To: mutt-users@mutt.org > Subject: Simple muttrc file for accessing Gmail imap > > For some blind and visually impaired users graphical user interfaces are as > frustrating as a game of blindfolded archery. > > Does anyone have a simple good example of a muttrc file that can access > gmail imap email by just changing "username" to your real user name and > "password" to your real password? > > Thanks, > > David > --