gnu_linux_config:mutt_client
Differences
This shows you the differences between two versions of the page.
gnu_linux_config:mutt_client [2011/09/19 21:10] – créée guillaume | gnu_linux_config:mutt_client [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Client mail Mutt ====== | ||
- | Mutt est un client mail en mode texte qui peut s' | ||
- | <code bash> | ||
- | |||
- | La configuration de Mutt se fait via le fichier // | ||
- | |||
- | Fichier .muttrc : | ||
- | < | ||
- | # Account information | ||
- | set realname = "Le nom à utiliser" | ||
- | |||
- | # IMAP settings | ||
- | set ssl_use_sslv3 | ||
- | set imap_user = " | ||
- | set imap_pass = " | ||
- | set imap_keepalive = 120 | ||
- | set timeout = 60 | ||
- | set mail_check = 90 | ||
- | |||
- | # Account settings | ||
- | set smtp_url = " | ||
- | set smtp_pass = " | ||
- | set folder = " | ||
- | set spoolfile = " | ||
- | set postponed = " | ||
- | set record = " | ||
- | set mbox = " | ||
- | set trash = " | ||
- | |||
- | # Caching | ||
- | set header_cache = ~/ | ||
- | set message_cachedir = ~/ | ||
- | set certificate_file = ~/ | ||
- | |||
- | # General settings | ||
- | set check_mbox_size = yes | ||
- | set move = no | ||
- | set confirmappend = no | ||
- | set copy = no | ||
- | set delete = yes | ||
- | set index_format = "%5C %Z %[%d%m%y %H%M] %-15.15F %3c %s" | ||
- | bind index " | ||
- | set editor = 'vim + -c "set textwidth=72" | ||
- | set query_command = "abook --mutt-query ' | ||
- | macro generic, | ||
- | macro index,pager A "< | ||
- | |||
- | # GPG Setup | ||
- | source ~/ | ||
- | |||
- | # Default Identity | ||
- | folder-hook . "set from = ' | ||
- | folder-hook . " | ||
- | folder-hook . "set signature=' | ||
- | |||
- | # View settings | ||
- | set markers = no # don't put ' | ||
- | set pager_index_lines= 5 # how large is the index window? | ||
- | set sort = ' | ||
- | set sort_aux = ' | ||
- | auto_view text/html | ||
- | |||
- | # Colors | ||
- | color normal | ||
- | color attachment | ||
- | color hdrdefault | ||
- | color indicator | ||
- | color markers | ||
- | color quoted | ||
- | color signature | ||
- | color status | ||
- | color tilde | ||
- | color tree red default | ||
- | #color header | ||
- | #color header | ||
- | #color header | ||
- | #color header | ||
- | #color header | ||
- | #color body brightred default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ | ||
- | #color body brightblue default (https? | ||
- | |||
- | # Shortcuts to mailboxes | ||
- | bind editor < | ||
- | macro index gi "< | ||
- | macro index gd "< | ||
- | macro index gg "< | ||
- | macro index gG "< | ||
- | macro index gj "< | ||
- | macro index go "< | ||
- | macro index ga "< | ||
- | macro index gs "< | ||
- | macro index gS "< | ||
- | macro index gt "< | ||
- | |||
- | # Keyboard bindings to functions | ||
- | bind index X " | ||
- | |||
- | # Header stuff | ||
- | ignore " | ||
- | ignore " | ||
- | ignore " | ||
- | hdr_order Date From To Cc | ||
- | ignore * | ||
- | unignore from: date subject to cc | ||
- | unignore x-mailing-list: | ||
- | unignore x-mailer: | ||
- | |||
- | #Fcc hooks | ||
- | fcc-hook " | ||
- | fcc-hook "~C user_gmail@gmail.com" | ||
- | |||
- | # Save hooks | ||
- | save-hook . " | ||
- | |||
- | ########### | ||
- | ########### USE ONLY WITH MUTT-PATCHED OR COMMENT OUT FROM HERE TO END OF FILE | ||
- | ########### | ||
- | # | ||
- | # set up the sidebar, default not visible | ||
- | set sidebar_width=22 | ||
- | set sidebar_visible=yes | ||
- | set sidebar_delim=' | ||
- | set sidebar_sort=no | ||
- | |||
- | # which mailboxes to list in the sidebar | ||
- | mailboxes =INBOX =" | ||
- | |||
- | # color of folders with new mail | ||
- | color sidebar_new brightgreen default | ||
- | |||
- | # ctrl-n, ctrl-p to select next, prev folder | ||
- | # ctrl-o to open selected folder | ||
- | bind index \CP sidebar-prev | ||
- | bind index \CN sidebar-next | ||
- | bind index \CO sidebar-open | ||
- | bind pager \CP sidebar-prev | ||
- | bind pager \CN sidebar-next | ||
- | bind pager \CO sidebar-open | ||
- | |||
- | # I don't need these. just for documentation purposes. See below. | ||
- | # sidebar-scroll-up | ||
- | # sidebar-scroll-down | ||
- | |||
- | # ctrl-b toggles sidebar visibility | ||
- | macro index \CB '< | ||
- | macro pager \CB '< | ||
- | |||
- | # | ||
- | # Mario Holbe suggests: | ||
- | # macro index b '< | ||
- | # macro pager b '< | ||
- | </ | ||
- | |||
- | Si l'on utilise une clé GPG pour chiffrer ou déchiffrer des mails, on met dans le fichier // | ||
- | < | ||
- | set pgp_decode_command=" | ||
- | set pgp_verify_command=" | ||
- | set pgp_decrypt_command=" | ||
- | set pgp_sign_command=" | ||
- | set pgp_clearsign_command=" | ||
- | set pgp_encrypt_only_command="/ | ||
- | set pgp_encrypt_sign_command="/ | ||
- | set pgp_import_command=" | ||
- | set pgp_export_command=" | ||
- | set pgp_verify_key_command=" | ||
- | set pgp_list_pubring_command=" | ||
- | set pgp_list_secring_command=" | ||
- | |||
- | # specify the uid to use when encrypting/ | ||
- | set pgp_sign_as=uid_of_gpg_key_to_use | ||
- | |||
- | # this set the number of seconds to keep in memory the passpharse used to encrypt/ | ||
- | # the more the less secure it will be | ||
- | set pgp_timeout=60 | ||
- | |||
- | # it's a regexp used against the GPG output: if it matches some line of the output | ||
- | # then mutt considers the message a good signed one (ignoring the GPG exit code) | ||
- | set pgp_good_sign=" | ||
- | |||
- | # mutt uses by default PGP/GPG to sign/ | ||
- | # if you want to use S-mime instead set the smime_is_default variable to yes | ||
- | |||
- | # automatically sign all outcoming messages | ||
- | set crypt_autosign | ||
- | # sign only replies to signed messages | ||
- | set crypt_replysign | ||
- | |||
- | # automatically encrypt outcoming messages | ||
- | set crypt_autoencrypt=no | ||
- | # encrypt only replies to signed messages | ||
- | set crypt_replyencrypt=yes | ||
- | # encrypt and sign replies to encrypted messages | ||
- | set crypt_replysignencrypted=yes | ||
- | |||
- | # automatically verify the sign of a message when opened | ||
- | set crypt_verify_sig=yes | ||
- | </ | ||
- | |||
- | Certaines personnes (beaucoup ?) envoient des mails au format HTML. Mutt étant un client en mode texte, il faut passer par w3m (navigateur web en mode texte) pour faire le rendu des mails HTML. Pour cela, il faut créer un fichier // | ||
- | < | ||
- | text/ | ||
- | </ | ||
- | |||
- | Enfin pour rajouter automatiquement une signature à la fin des mails, il faut simplement mettre le contenu de la signature dans le fichier // |
gnu_linux_config/mutt_client.1316466627.txt.gz · Last modified: 2021/01/04 20:40 (external edit)