View Single Post
Old 12-07-2011, 12:37 AM   #11
kociubin
Junior Member
kociubin began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2011
Device: kindle 3g
Thanks OP! This is a good idea and mutt can be quite functional as a mail client. BTW, I just set my root user's home directory to '/mnt/us/root' and run mutt as root.

Also, for those who want a richer IMAP/Gmail experience (e.g. being able to move emails to folders, delete, archive, etc), you can take advantage of the built in IMAP support. No fetchmail necessary.

here is my .muttrc configuration.

Code:
set imap_user = "your_username@gmail.com"
set imap_pass = "your_password"

set folder = "imaps://imap.gmail.com"
set spoolfile = "+INBOX"

set realname = "Firstname Lastname"
set from = "your_username@gmail.com"
set use_from = yes

set hostname = gmail.com
set mail_check = 120
set timeout = 300
set imap_keepalive = 300
set postponed = "+[GMail]/Drafts"
set record = "+[GMail]/Sent Mail"
set move = no
set include
set sort = 'threads'
#set sort_aux = 'reverse-last-date-received'
set auto_tag = yes
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
auto_view text/html

#======================================================#
# What to show and order of headers
ignore *
unignore Date: From: User-Agent: X-Mailer X-Operating-System To: \
         Cc: Reply-To: Subject: Mail-Followup-To:
        hdr_order Date: From: User-Agent: X-Mailer X-Operating-System To: \
        Cc: Reply-To: Subject: Mail-Followup-To:

set smart_wrap       # Don't wrap mid-word
set pager_context=5  # Retain 5 lines of previous page when scrolling.

# Colors
# We set all the colors to black on while for maximum kindle readability
set arrow_cursor
color attachment black        white
color error      black        white
color hdrdefault black        white
color indicator  black        white
color markers    black        white
color message    black        white
color normal     black        white
color quoted     black        white
color search     black        white
color signature  black        white
color status     black        white
color tilde      black        white
color tree       black        white
Works great! The added benefit is that you don't need fetchmail and procmail (you do need msmtprc though).
kociubin is offline   Reply With Quote