.muttrc per invio mail

Configurazione .muttrc per invio mail tramite account google, da linea di comando.

L'account google deve essere configurato per accettare connessioni da terze parti "insicure".

Teoricamente funziona tutto, cioe` e` possibile leggere ed inviare mail, ma l'ho testato solo per l'invio.

E` derivato da un'esistente, di cui ho mantenuto le parti.

Ovviamente, sono da sostituire <casella di posta> e <password>.

# Some minimal Mutt settings, Gentoo-style.  These reflect the Gentoo
# predilection for maildir folders.
#
# Please don't add settings to this file to change other user
# preferences (such as colors), since those can be hard for a user to
# undo if their preference doesn't match yours!  For example, it is
# *impossible* currently in mutt to remove color settings from objects
# other than the index.

###set mbox_type=Maildir
###set folder=~/.maildir
###set spoolfile=~/.maildir/
###set record=~/.maildir/sent/
###set move=no

# Maybe we shouldn't set index_format here, but this is a recommended
# one for maildir-style folders.

set index_format="%4C %Z %{%b %d} %-16.16L  %s"

######################################################################
#
# mySystem configuration file for Mutt
#

color hdrdefault cyan black
color quoted magenta black
color signature brightred black
color indicator brightyellow red
color error brightred black
color status brightyellow blue
color tree brightmagenta black  # the thread tree in the index menu
color tilde brightmagenta black
color message brightcyan black
color normal white black
color attachment brightmagenta black
color search black green        # how to hilite search patterns in the pager
color header brightyellow black ^(From|Subject):
color body brightyellow black "(ftp|http)://[^ ]+"      # point out URLs
color body brightcyan black [-a-z_0-9.]+@[-a-z_0-9.]+   # e-mail addresses
color underline brightgreen black

###set from="<casella di posta>@gmail.com"
#set use_domain="no"
#%set use_from="no"
#%set use_domain
###set hostname=gmail.com
###set realname="<real name>"
set sort=threads
set editor=vi
#set charset="ISO-8859-15"

###
set imap_user="<casella di posta>@gmail.com"
#set imap_login="<casella di posta>@gmail.com"
set imap_pass="<password>"
set folder="imaps://imap.gmail.com:993"
set spoolfile="+INBOX"
set postponed="+[Gmail]/Drafts"
set header_cache="~/.mutt/cache/headers"
set message_cachedir="~/.mutt/cache/bodies
set certificate_file="~/.mutt/certificates
set smtp_url="smtp://<casella di posta>@smtp.gmail.com:587/"
set smtp_pass="<password>"
set move=no
set imap_keepalive="900"
###

# Scarica la posta / esegui fetchmail premendo il tasto G
#macro index G "!fetchmail -a -m 'procmail -d %T'\r"
#macro pager G "!fetchmail -a -m 'procmail -d %T'\r"

# Lista degli header da togliere quando visualizzo la mail
ignore *
unignore  Date To From: Subject X-Mailer Organization User-Agent
hdr_order Date From To Subject X-Mailer User-Agent Organization

# lbdb database
#%set query_command="lbdbq %s"

# abook
set query_command="abook --mutt-query '%s'"
macro pager A "<pipe-message>abook --add-email<return>"