Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to make mutt work with gmail?

409 views
Skip to first unread message

chutsu

unread,
Nov 29, 2009, 9:19:11 PM11/29/09
to
Hi
I recently installed mutt on my mac using "macports", and I don't know
what to put into the .muttrc to make it work with gmail... Does anyone
have a working .muttrc I can copy off?

Thanks
Chris

andrew

unread,
Nov 30, 2009, 1:20:51 AM11/30/09
to

There is a guide that might be useful:

Using Mutt with Gmail
http://www.andrews-corner.org/mutt.html

It does not deal with IMAP though....

Andrew

--
Do you think that's air you're breathing?

Wawrzek

unread,
Nov 30, 2009, 8:17:32 AM11/30/09
to
On Nov 30, 6:20 am, andrew <and...@skamandros.invalid> wrote:
> On 2009-11-30, chutsu <chu...@gmail.com> wrote:
>
> > I recently installed mutt on my mac using "macports", and I don't know
> > what to put into the .muttrc to make it work with gmail... Does anyone
> > have a working .muttrc I can copy off?
>
[...]

> It does not deal with IMAP though....

# Base hook to reset account variables to known state before
activating new ones
account-hook . 'unset preconnect imap_user imap_pass
imap_authenticators; set ssl_starttls=ask-yes'

#GOOGLE
account-hook imaps://imap.gmail.com:993 \
'set \
imap_user="J...@gmail.com" imap_pass="XXX" \
folder="imaps://imap.gmail.com:993" \
record="imaps://imap.gmail.com:993/[Google Mail]/Sent Mail" \
from="J...@gmail.com" hostname="gmail.com" \
'
set spoolfile="imaps://imap.gmail.com:993/INBOX"
mailboxes +INBOX +'[Google Mail]/All Mail' +'[Google Mail]/Sent Mail'
+'[Google Mail]/Spam' +'[Google Mail]/YYY'


Works for me. Of course you need to change XXX to your password, JA to
your username and you can add as many YYY as you need.

Cheers,
Wawrzek

Indi

unread,
Nov 30, 2009, 8:50:33 AM11/30/09
to
On 2009-11-30, andrew <and...@skamandros.invalid> wrote:
> On 2009-11-30, chutsu <chu...@gmail.com> wrote:
>
>> I recently installed mutt on my mac using "macports", and I don't know
>> what to put into the .muttrc to make it work with gmail... Does anyone
>> have a working .muttrc I can copy off?
>
> There is a guide that might be useful:
>
> Using Mutt with Gmail
> http://www.andrews-corner.org/mutt.html
>
> It does not deal with IMAP though....
>
> Andrew
>

Here's one that does deal with IMAP.
--
HTH,
indi

Indi

unread,
Nov 30, 2009, 8:51:38 AM11/30/09
to

Woops. Mornings...
Okay, *here* it is:

http://linsec.ca/Using_mutt_on_OS_X

--
Cheers,
indi

Indi

unread,
Nov 30, 2009, 9:12:16 AM11/30/09
to

Okay, morning indeed.
Apologies, I guess there's not much on imap there
but this may help you from my own muttrc. I use this in FreeBSD
and in OS X, it assumes the sidebar patch, IMAP enabled and esmtp.
I don't use the MacPorts version of mutt though, last I tried that
it wasn't built to enable IMAP (which seems a waste -- mutt has
terrific IMAP support).


set from=us...@gmail.com
set realname="Me"
set reverse_name=yes
set reverse_realname=no
set imap_user = 'us...@gmail.com'
set imap_pass='password'
set sendmail='/usr/local/bin/esmtp -v -X /tmp/esmtp.lo'
set use_envelope_from=yes
set spoolfile = 'imaps://imap.gmail.com:993'
set folder = 'imaps://imap.gmail.com:993/'
set postponed='=[Gmail]/Drafts'
set move=no
set delete=yes
set edit_hdrs
set include
set reply_to
set sort=threads
set abort_nosubject=no
set imap_check_subscribed
set imap_list_subscribed
alternates '(username|altusername)([-+].*)?@.*'
set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the
index
hdr_order From: Date: User-Agent: X-Mailer To: Cc: Reply-To: Subject:
ignore *
unignore From: Date: User-Agent: X-Mailer To: Cc: Reply-To: Subject:
my_hdr Reply-To:

auto_view text/html application/x-pgp-message
set mailcap_path='~/.mailcap'
set mailcap_sanitize=yes
set editor='emacs %s'
set header_cache='~/.mutt/cache/headers'
set message_cachedir='~/.mutt/cache/bodies'
set certificate_file=~/.mutt/certificates
set mail_check=120
set edit_hdrs
set include
set reply_to

alternates '(username|altusername)([-+].*)?@.*'
set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the
index

hdr_order From: Date: User-Agent: X-Mailer To: Cc: Reply-To: Subject:
ignore *
unignore From: Date: User-Agent: X-Mailer To: Cc: Reply-To: Subject:
my_hdr Reply-To:

set editor='emacs %s'
set alias_file=~/.mutt/mail_aliases
source ~/.mutt/mail_aliases

color hdrdefault brightblue default
color quoted green default
color signature red default
color status brightcyan default
color indicator brightyellow default
color normal brightmagenta default

# set up the sidebar, default visible
set sidebar_width=16
set sidebar_visible=yes
set sidebar_delim=':'

# color of folders with new mail
color sidebar_new brightgreen default

# ctrl-n, ctrl-p to select next, prev folder
# ctrl-o to open selected folder
bind index \CP sidebar-prev
bind index \CN sidebar-next
bind index \CO sidebar-open
bind pager \CP sidebar-prev
bind pager \CN sidebar-next
bind pager \CO sidebar-open

# b toggles sidebar visibility
macro index b '<enter-command>toggle sidebar_visible<enter>'
macro pager b '<enter-command>toggle sidebar_visible<enter>'

# Remap bounce-message function to "B"
bind index B bounce-message

Grant Edwards

unread,
Nov 30, 2009, 10:43:40 AM11/30/09
to
On 2009-11-30, chutsu <chu...@gmail.com> wrote:
> Hi
> I recently installed mutt on my mac using "macports", and I don't know
> what to put into the .muttrc to make it work with gmail...

Same thing you do for any other IMAP server.

What are you having problems with?


> Does anyone have a working .muttrc I can copy off?

set folder=imaps://imap.gmail.com:993/
set imap_keepalive=30

--
Grant Edwards grante Yow! I had pancake makeup
at for brunch!
visi.com

0 new messages