gmail/mutt mini-howto
#1
Sat, 2016-01-30 17:38
Mike Sanders
-
- Offline
- 1 month 1 week ago
- 2016-01-30
Hi folks. Just learning my way around Alpine Linux & the forum, if this is posted to an incorrect board, my bad... simply sharing my notes in the hope it helps others & compels you to share as well =)
gmail/mutt mini-howto
As root...
apk add mutt nano mkdir /var/mail touch /var/mail/USER-NAME # where USER-NAME is the alpine linux user's login name chown USER-NAME /var/mail/USER-NAME
As user...
mkdir ~/mail # ~/muttrc.gmail # personal cfg set realname = 'REAL-NAME' # your real name set from = 'GMAIL-NAME@GMAIL.COM' # your gmail address set editor = nano # your favorite editor # pop3/smtp cfg set smtp_url = smtp://GMAIL-NAME:GMAIL-PASSWORD@smtp.gmail.com:587 # smtp host set pop_host = pops://GMAIL-NAME:GMAIL-PASSWORD@pop.gmail.com:995 # pop3 host set pop_delete = no # delete mail on remote host after fetching # mailbox cfg set mbox_type = mbox # mailbox format set folder = ~/mail # mail folder set mbox = ~/mail/+archive # mbox for saved mail set record = ~/mail/+sent # mbox for sent mail set postponed = ~/mail/+draft # mbox for drafts # general cfg set autoedit = yes # go to the editor right away when composing set edit_headers = yes # allow editing headers when composing set include = yes # include sender's message in reply set copy = yes # save a copy of outgoing messages set mark_old = yes # read messages are marked as old set move = yes # move read messages to archive mbox # eof mutt -F ~/muttrc.gmail # mutt/gmail invocation # within mutt press G to download gmail msg's # within mutt press m to compose test email # in nano press clrl+x+s to save msg # back in mutt press y to send test msg
see also:
. query - gmail and less secure apps
. https://support.google.com/accounts/answer/6010255
. http://unix.stackexchange.com/questions/172666/gmail-blocking-mutt