Sending mails via Mutt and Gmail: Duplicates

Posted by Chris on Super User See other posts from Super User or by Chris
Published on 2010-12-21T15:46:13Z Indexed on 2010/12/21 15:56 UTC
Read the original article Hit count: 254

Filed under:

I'm trying to setup mutt wiht gmail for the first time. It seems to work pretty well, however when I send a mail from Mutt i appears twice in Gmail's sent folder. (I assume it's also sent twice - I'm trying to validate that)

My configuration (Stripped of coloring):

# A basic .muttrc for use with Gmail
# Change the following six lines to match your Gmail account details
set imap_user = "XX"
set smtp_url = "[email protected]@smtp.gmail.com:587/"
set from = "XX"
set realname = "XX"

# Change the following line to a different editor you prefer.
set editor = "vim"

# Basic config, you can leave this as is
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set imap_check_subscribed
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 header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set move = no
set include
set sort = 'threads'
set sort_aux = 'reverse-last-date-received'
set auto_tag = yes
hdr_order Date From To Cc
auto_view text/html
bind editor <Tab> complete-query
bind editor ^T complete
bind editor <space> noop

# Gmail-style keyboard shortcuts
macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[Gmail]/Bin\"\n <delete-message>" "Gmail delete message"
macro index,pager gl "<change-folder>"
macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
macro index,pager gt "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to sent mail"

#Don't prompt on exit
set quit=yes


## =================
#Color definitions
## =================

set pgp_autosign

© Super User or respective owner

Related posts about mutt

  • Listing important folders in mutt

    as seen on Super User - Search for 'Super User'
    When I type c in mutt I get all my folders displayed and this is quite long. I would like to configure it to show only those folders that I deem to be interesting. Would be happy to configure it by adding a list in my .muttrc >>> More

  • sending mail using mutt + emacs

    as seen on Server Fault - Search for 'Server Fault'
    How to sent mail from emacs? I found this There are two ways to send the message. C-c C-s (mail-send) sends the message and marks the mail buffer unmodified, but leaves that buffer selected so that you can modify the message (perhaps with new recipients) and send it again. C-c C-c (mail-send-and-exit)… >>> More

  • sending mail using mutt + emacs

    as seen on Super User - Search for 'Super User'
    How to sent mail from emacs? I found this There are two ways to send the message. C-c C-s (mail-send) sends the message and marks the mail buffer unmodified, but leaves that buffer selected so that you can modify the message (perhaps with new recipients) and send it again. C-c C-c (mail-send-and-exit)… >>> More

  • sending mail using mutt + emacs

    as seen on Super User - Search for 'Super User'
    How to sent mail from emacs? I have add from address and subject and trapped inside emacs I found this There are two ways to send the message. C-c C-s (mail-send) sends the message and marks the mail buffer unmodified, but leaves that buffer selected so that you can modify the message (perhaps with… >>> More

  • sending mail using mutt + emacs

    as seen on Stack Overflow - Search for 'Stack Overflow'
    How to sent mail from emacs? I have add from address and subject and trapped inside emacs I found this There are two ways to send the message. C-c C-s (mail-send) sends the message and marks the mail buffer unmodified, but leaves that buffer selected so that you can modify the message (perhaps with… >>> More