User Tools

Site Tools


mutt

This is an old revision of the document!


Questo è il mio .muttrc. Lo tengo aggiornato qui, nella Wiki, e lo copio in /.mutt del server ogni 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].Brouillons"

set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt_certificates

set move = no

set delete

######################################
### Macro per spostarsi nei folder ###
######################################

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

macro index Ga <change-folder>"/home/francesco/Mail/Amici/"<enter>
macro index Gf <change-folder>"/home/francesco/Mail/Florence/"<enter>
macro index Gi <change-folder>"/home/francesco/Mail/INBOX/"<enter>
macro index Gs <change-folder>"/home/francesco/Mail/mail_spedite/"<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>

####################
### MAIL INVIATE ###
####################
set copy =yes
set record ="~/Mail/mail_spedite"

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"

### 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

#####################
### Mailing-lists ###
#####################
lists address debian-italian@lists.debian.org
lists address debian-user-spanish@lists.debian.org
lists address debian-user-portuguese@lists.debian.org
lists address debian-user@lists.debian.org
lists address debian-user-french@lists.debian.org
lists address debian-changes@lists.debian.org
lists address debian-backports@lists.debian.org
lists address mutt-users@mutt.org

subscribe address debian-italian@lists.debian.org
subscribe address debian-user-spanish@lists.debian.org
subscribe address debian-user-portuguese@lists.debian.org
subscribe address debian-user@lists.debian.org
subscribe address debian-user-french@lists.debian.org
subscribe address debian-changes@lists.debian.org
subscribe address debian-backports@lists.debian.org
subscribe address mutt-users@mutt.org

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

mailboxes !
mailboxes =Allan
mailboxes =Amici
mailboxes =Amiche
mailboxes =Benedetta
mailboxes =Benedicte
mailboxes =BnF
mailboxes =Bollette
mailboxes =Chiara_Ruzzier
mailboxes =Chichita
mailboxes =Cinematheque
mailboxes =Clelia
mailboxes =Corinne
mailboxes =Cuneo
mailboxes =Debian_bkpts
mailboxes =Debian_Fr
mailboxes =Debian_It
mailboxes =Debian_Pt
mailboxes =Debian_Sp
mailboxes =Debian_Changes
mailboxes =Debian_Security
mailboxes =Debian_Users
mailboxes =Florence
mailboxes =Forlani
mailboxes =Koha
mailboxes =Lavoro
mailboxes =Lavoro_pop3_biblioteca
mailboxes =Lavoro_pop3_francesco
mailboxes =Libri_internet
mailboxes =Martelli
mailboxes =MBB
mailboxes =Mutt
mailboxes =Openbox
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

Per eliminare tutti i messaggi di un dossier:

In the main view press “D” (Shift + d) At the bottom it asks “Delete messages matching:”

Enter the following and press enter:

~s .*

All messages will be marked for deletion. Now just press “q” to quit and “y” to confirm you want to delete all those messages.

(The ~s makes it search the subject for the given expression and of course “.*” is a global regex wild card.

See this page for more details. http://www.mutt.org/doc/manual/manual-4.html)

mutt.1342688461.txt.gz · Last modified: 2012/07/19 11:01 by admin