On 091120, 21:30, D.J.J. Ring, Jr. wrote:
> Can someone recommend a tutorial of configuring mutt to work with
> gmail IMAP directly via the muttrc file?
> 
> Thanks,
> 
> David

Hi David,

Before you can create a dir .mutt and then run the command touch
.passwordgmail you can edit this file and write your password inside...

set smtp_pass="YOURPASSWORD"
set imap_pass="YOURPASSWORD"

save your .passwordgmail file

once you have created this file you should encrypt it using gpg...
if you don't know gpg you can do a google search...

later you can create the .muttrc file something similar to this but
there are many other things you can write in the .muttrc file  I
recommend reading the man page and the manuall... 

# begin file

set from = "YOUR GMAIL ADDRESS"
set realname = "YOUR NAME"
set smtp_url = "smtp://usern...@smtp.gmail.com:587/" # using port 587 for$
set imap_user = "usern...@gmail.com"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set record = "+[Gmail]/Sent Mail"
set trash = "+[Gmail]/Trash"
set header_cache =~/.mutt/cache/headers
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates
set move = no
set imap_keepalive = 900

# encrypted IMAP/SMTP passwords - YOU CAN USE GPG AND CREATE A FILE WITH
# YOUR PASSWORD EVEN IF YOU USE TWO FACTOR AUTHENTICATION
source "gpg -d ~/.mutt/.passwordgmail.gpg |"

##########################################################################

#IMPORTANT!
set tmpdir="~/.tempdir"

## SOME OPTIONS

# do not generate the From field From: (usa invece i my_hdr)
set use_from = yes

# do not generate the field User_Agent: (usa invece i my_hdr)
set user_agent = no

# enable the use of personal 'my_hdr' headers
set hdrs = yes

# personal headers 
#my_hdr From: NAME <usern...@gmail.com>
#my_hdr Reply-To: usern...@gmail.com

# Custom Mail-User-Agent ID.
my_hdr User-Agent: Mutt 

# display order of headers
unhdr_order *
hdr_order Subject: From: Reply-To: Date: To: CC: BCC:

# header to display
ignore *
unignore Subject: From: Date: To: Reply-To: CC: BCC:

##########################################################################

hope to be helpful.

Bye.

-- 
Stefano P.                                      | Debian GNU/Linux 10           
           
                                                | e-mail: s...@blu.it

Reply via email to