User Tools

Site Tools


muttrc

Questo è il mio .muttrc. Lo tengo aggiornato qui, nella Wiki, copiandolo da /.mutt del serverHP di tanto in tanto:

francesco@serverHP:~/.mutt$ cat muttrc 
folder-hook .				"source ~/.mutt/gmail"
folder-hook Lavoro_pop3_francesco	"source ~/.mutt/francesco"
folder-hook Lavoro_pop3_biblioteca	"source ~/.mutt/biblioteca"

# set reverse_name

# alternates "francesco.scaglione@esteri.it|biblioteca.iic.parigi@esteri.it"

# set envelope_from=yes

set mbox_type = Maildir
set folder = "/home/francesco/Mail/"
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 move = no

set delete

### Trovato in Arch Wiki Mutt
### Per accelerare lo switch tra i folder:
### set sleep_time = 0
### Funziona, ma è troppo brusco, preferisco la breve pausa

################
### Le Macro ###
################

# Vedere gli esempi di macro qui:
# http://wiki.mutt.org/?MacroSamples
# Mnemotecnica: G sta per "Google", L per "lavoro", S per "Spedite"

macro index Ga <change-folder>"/home/francesco/Mail/Amici/"<enter>
macro index Gd <change-folder>"~/Mail/[Gmail].Drafts/"<enter>
macro index Gf <change-folder>"/home/francesco/Mail/Florence/"<enter>
macro index Gi <change-folder>"/home/francesco/Mail/INBOX/"<enter>
macro index Gl <change-folder>"/home/francesco/Mail/Lavoro/"<enter>
macro index Gt <change-folder>"/home/francesco/Mail/Teresa/"<enter>
macro index Lb <change-folder>"/home/francesco/Mail/Lavoro_pop3_biblioteca/"<enter>
macro index Lf <change-folder>"/home/francesco/Mail/Lavoro_pop3_francesco/"<enter>
macro index Mm <change-folder>"/var/mail/francesco"<enter>
macro index Sb <change-folder>"/home/francesco/Mail/mail_spedite_biblioteca"<enter>
macro index Sf <change-folder>"/home/francesco/Mail/mail_spedite_francesco"<enter>
macro index Sg <change-folder>"~/Mail/[Gmail].Sent<quote-char> Mail/"<enter>

### Quelle che seguono sono le macro per notmuch
macro index <F8> \
      "<enter-command>unset wait_key<enter><shell-escape>notmuch-mutt --prompt search<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter>" \
      "notmuch: search mail"

macro index <F9> \
      "<enter-command>unset wait_key<enter><pipe-message>notmuch-mutt thread<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter><enter-command>set wait_key<enter>" "notmuch: reconstruct thread"

macro index <F6> \
      "<enter-command>unset wait_key<enter><pipe-message>notmuch-mutt tag -inbox<enter>" \
      "notmuch: remove message from inbox"

###

set sort=threads
set sort_aux=reverse-date

set editor="vim -c 'set tw=70 et' '+/^$' " 
set edit_headers=yes      # See the headers when editing

set   abort_nosubject=no		# Let me send messages with an empty subject
set   abort_unmodified=no		# Let me send empty messages
set   pager_stop			# Don't fall through to the next message in the pager
set   read_inc=50			# Progress indicator when reading folders.

# Heures et dates françaises
# set locale="fr_FR.UFT-8"
# set charset="utf-8" # chartset for your teminal
# set assumed_charset="utf-8"
set send_charset="utf-8:iso-8859-15:us-ascii"

set date_format="%d %b %Y à %H:%M"

###############
### Colori! ###
###############

color index	red black ~D

color attachment brightyellow black

###

### How do I forward a message including attachments?
### add:

# set mime_forward=yes
# set mime_forward_rest=yes

### to your ~/.muttrc. This will cause Mutt to attach the message rather
### than quoting it in the body of the message. 
### Otherwise use "bounce".

###################################
### Uso Lynx per leggere l'html ###
###################################

set implicit_autoview
auto_view text/html  application/x-pgp-message
set mailcap_path="~/.mailcap"
set mailcap_sanitize=yes

### permet lorsqu'on lit un mail de toujours avoir 
### une liste affiché en haut dans une 2ème fenêtre
set pager_index_lines=9

### This variable controls the number of lines
### of context that are given when displaying the next or previous
### page in the internal pager
set pager_context=3

###############
### *Index* ###
############### 

# Quello che segue è per un monitor da 14/15 pollici
set index_format="%4C %Z   %-19.19f   %-49.49s %d (%?l?%4l&%4c?)"

# Default: "%4C %Z %{%b %d} %-15.15L (%4l) %s"

# Questo è per gli schermi più larghi
# set index_format="%4C %Z   %-40.40f   %-77.77s %d (%?1?%41&%4c?)"


#################################################
### Il *folder* è la lista di tutti i dossier ###
#################################################

set folder_format="%N %f %F %s %t"
# set folder_format="%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f" # Default

#################
### Mailboxes ###
#################

mailboxes !
mailboxes =Allan
mailboxes =Amici
mailboxes =Amiche
mailboxes =Benedetta
mailboxes =BnF
mailboxes =Bollette
mailboxes =Chiara_Ruzzier
mailboxes =Chichita
mailboxes =Cinematheque
mailboxes =Clelia
mailboxes =Cuneo
mailboxes =Florence
mailboxes =Lavoro
mailboxes =Lavoro_pop3_biblioteca
mailboxes =Lavoro_pop3_francesco
mailboxes =Libri_internet
mailboxes =Martelli
mailboxes =MBB
mailboxes =Pilar
mailboxes =Suor_Rosanna
mailboxes =Teresa
mailboxes =Viaggi
mailboxes =Yuria

# A cosa serve la linea che segue?
# mailboxes ~/.mutt/mailboxes

######################################
### Gestione esterna degli aliases ###
######################################

set alias_file=~/.mutt/aliases
source $alias_file
muttrc.txt · Last modified: 2013/03/03 11:44 by admin