conf/.muttrc

227 lines
7.4 KiB
Plaintext
Raw Normal View History

2012-11-22 00:08:53 +00:00
set mbox_type=Maildir
set folder="~/.mail"
set mask="!^\\.[^.]"
set record="+.Sent"
set postponed="+.Drafts"
set spoolfile="~/.mail"
2014-04-17 08:22:17 +00:00
auto_view text/html
alternative_order text/plain text text/enriched text/html
2012-11-22 00:08:53 +00:00
# Set the desired default "from" address for both header From and envelope-from
set reverse_name
2014-02-28 09:33:17 +00:00
set from="nemunaire@nemunai.re"
2014-04-17 08:22:07 +00:00
alternates "nemunaire@pomail.fr|nemu@pomail.fr|pom@pomail.fr|pompom@pomail.fr|pierreolivier@pomail.fr|pierre-olivier@pomail.fr|.+@pommail.fr|.+@mercier.pm|.+@p0m.fr|.+@nemunai.re|nemunaire@epita.fr|mercie_d@epita.fr|pierreolivier.mercier@epita.fr|pomercier@novaquark.com"
2012-11-22 00:08:53 +00:00
set realname="Pierre-Olivier Mercier"
2014-02-28 09:33:17 +00:00
set hostname="nemunai.re"
2012-11-22 00:08:53 +00:00
set envelope_from=yes
set use_domain=no
set alias_file= ~/.mutt/aliases
set sort_alias= alias
set reverse_alias=yes
source $alias_file
source ~/.mutt/mls
2014-04-17 08:22:17 +00:00
set dsn_notify="failure,delay"
2012-11-22 00:08:53 +00:00
# set up the sidebar
set sidebar_width=25
set sidebar_visible=yes
set sidebar_sort=yes
mailboxes ! `find ~/.mail -maxdepth 1 -type d -name ".*" -printf "+'%f' "`
2012-11-22 00:08:53 +00:00
macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
macro pager C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro pager M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
2014-06-25 10:00:03 +00:00
macro pager D "<pipe-message>~/scripts/dmarc-parser.pl<enter>" "move a message to a mailbox"
2012-11-22 00:08:53 +00:00
macro compose A "<attach-message>?" "attach message(s) to this message"
2014-04-17 08:22:17 +00:00
# Include folder hooks defining Fcc
source ~/.mutt/folder-hooks
#GPG
set fcc_clear # Keep fcc's clear of signatues and encryption.
2014-04-17 08:22:17 +00:00
source ~/.mutt/gpg.rc
2014-06-25 10:00:03 +00:00
set pgp_sign_as="0x4573CC96"
2016-01-14 16:57:37 +00:00
set pgp_autosign
set pgp_replysign
set pgp_replyencrypt
2016-01-14 16:57:37 +00:00
set pgp_replysignencrypted
set pgp_verify_sig=yes
set pgp_strict_enc
2016-01-14 16:57:37 +00:00
set pgp_use_gpg_agent=yes
set send_charset="us-ascii:utf-8"
2013-01-02 11:29:43 +00:00
#
2012-11-22 00:08:53 +00:00
set header_cache = ~/.mutt/cache
set header_cache_pagesize = 32768
set maildir_header_cache_verify = no
# locales FR pour les nom des jours et mois
set locale="fr_FR"
set date_format="%A %d %b %Y à %H:%M:%S (%Z)"
set attribution="Le %d, %n a écrit :"
2016-01-14 16:57:37 +00:00
set mime_forward # Forward message as MIME attachments.
2012-11-22 00:08:53 +00:00
# Header stuff
#ignore "Authentication-Results:"
#ignore "DomainKey-Signature:"
#ignore "DKIM-Signature:"
2014-02-28 08:50:02 +00:00
hdr_order Date From To Cc Bcc User-Agent
2012-11-22 00:08:53 +00:00
ignore *
2016-01-14 16:59:45 +00:00
unignore Disposition-Notification-To
2014-04-17 08:22:17 +00:00
unignore Authentication-Results
2012-11-22 00:08:53 +00:00
unignore from: date subject to cc mail-followup-to
unignore x-mailing-list: posted-to:
unignore x-mailer: x-url reply-to
unignore user-agent:
2014-06-11 09:13:10 +00:00
unignore Saved-In:
2012-11-22 00:08:53 +00:00
# For better looks
#set arrow_cursor
#set folder_format="%t%N %-30.30f %8s"
#set index_format="%4C %Z %{%b %d} %-31.31F %N (%4c) %s"
set beep_new
set menu_scroll
set smart_wrap = yes
2016-01-14 16:58:40 +00:00
set nomarkers # don't put '+' at the beginning of wrapped lines
2012-11-22 00:08:53 +00:00
set pager_index_lines = 7 # how large is the index window?
set sort = 'threads'
set sort_aux=date-received
2014-02-28 08:50:02 +00:00
#set sort_browser=date
2012-11-22 00:08:53 +00:00
# My Editor
2013-01-02 11:29:43 +00:00
set editor="vim '+set tw=72'"
2012-11-22 00:08:53 +00:00
2013-01-02 11:29:43 +00:00
set config_charset=utf8
2012-11-22 00:08:53 +00:00
set charset="utf-8"
set pager_stop
# =====================================================================
# Normal colors
# =====================================================================
2013-01-02 11:29:43 +00:00
color normal white black
color message white black
color signature magenta default
color hdrdefault cyan default
color attachment yellow default
2013-01-02 11:29:43 +00:00
color status brightblack cyan
color search brightwhite magenta
color bold brightyellow default
color tilde brightblue default # ``~'' used to pad blank lines
color tree brightwhite default # thread tree in the index menu
color body brightblue default "(git|ssh|ftp|http)s?://[^ ]+" # point out URLs
2013-01-02 11:29:43 +00:00
color body brightblue default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses
2012-11-22 00:08:53 +00:00
# =====================================================================
# Index
# =====================================================================
2016-01-14 17:00:44 +00:00
#color index color248 default "~A"
2012-11-22 00:08:53 +00:00
# Unread messages in yellow
2016-01-14 17:00:44 +00:00
color index cyan default "~t $from"
color index brightyellow default "~N|~O"
color index brightcyan default "~t $from (~N|~O)"
# Messages already replied to in green
color index green default "~Q"
2012-11-22 00:08:53 +00:00
# Deleted messages in a dark color
2016-01-14 17:00:44 +00:00
color index color237 default "~D"
2012-11-22 00:08:53 +00:00
# Flagged messages in red
color index brightred default "~F"
2016-01-14 16:58:40 +00:00
color index magenta default "~T"
2012-11-22 00:08:53 +00:00
# =====================================================================
# Header
# =====================================================================
# Color information about the sender
color header brightcyan default "From: "
2016-01-14 16:59:45 +00:00
color header brightcyan default "Subject: "
color header brightcyan default "Date: "
2016-01-14 16:59:45 +00:00
color header brightyellow default "Saved-In: "
color header magenta default "Disposition-Notification-To: "
# DKIM
color header blue default "Authentication-Results:.*spf=none"
color header blue default "Authentication-Results:.*spf=neutral"
color header blue default "Authentication-Results:.*dkim=neutral"
color header red default "Authentication-Results:.*spf=fail"
color header red default "Authentication-Results:.*dkim=fail"
# DMARC
color header yellow default "Authentication-Results:.*dmarc=quarantine"
color header red default "Authentication-Results:.*dmarc=reject"
2012-11-22 00:08:53 +00:00
# =====================================================================
# Body
# =====================================================================
# Color the first levels of quoted text
color quoted green default
color quoted1 cyan default
color quoted2 green default
color quoted3 cyan default
2012-11-22 00:08:53 +00:00
# Sidebar colors
color sidebar_new yellow default
color sidebar_flagged brightred default
2012-11-22 00:08:53 +00:00
2016-01-14 16:58:40 +00:00
bind index ' ' tag-entry
2014-06-25 10:00:03 +00:00
macro index,pager \eL '<change-folder>=.Lost/<enter>'
2015-03-19 13:51:24 +00:00
#macro index,pager \eV '<change-folder>=.Epita.SRS.virli/<enter>'
2012-11-22 00:08:53 +00:00
bind index,pager \CP sidebar-scroll-up
#bind index,pager \CI sidebar-scroll-down
bind index,pager \CO sidebar-open
bind index,pager i sidebar-next
macro index,pager I '<sidebar-next><sidebar-next><sidebar-next><sidebar-next><sidebar-next><sidebar-next><sidebar-next><sidebar-next><sidebar-next><sidebar-next>'
bind index,pager o sidebar-open
bind index,pager p sidebar-prev
macro index,pager P '<sidebar-prev><sidebar-prev><sidebar-prev><sidebar-prev><sidebar-prev><sidebar-prev><sidebar-prev><sidebar-prev><sidebar-prev><sidebar-prev>'
2013-01-02 11:29:43 +00:00
bind index,pager B bounce-message
2012-11-22 00:08:53 +00:00
# b toggles sidebar visibility
macro index,pager b '<enter-command>toggle sidebar_visible<enter>'
# Remap bounce-message function to "B"
bind index B bounce-message
bind index,pager \e<tab> next-unread-mailbox
# GnuPG output
#
# Make if very obvious there is a bad signature!
2016-01-14 17:01:03 +00:00
color body black red "^gpg: BAD signature .*$"
color body black red "^gpg: MAUVAISE signature .*$"
2012-11-22 00:08:53 +00:00
# Tag a good signature
2016-01-14 17:01:03 +00:00
color body brightgreen black "^gpg: Good signature .*$"
color body brightgreen black "^gpg: Bonne signature .*$"
2012-11-22 00:08:53 +00:00
# Inform the signature can't be verified
2016-01-14 17:01:03 +00:00
color body brightred black "^gpg: Can't check signature: public key not found"
color body brightred black "^gpg: Impossible de v.*"
color body brightred black "^gpg: WARNING: .*!"
color body brightred black "^gpg: ATTENTION: .*!"
color body brightred black "^gpg: some signal caught ... exiting"
2012-11-22 00:08:53 +00:00
#Messages
color error brightwhite red # error messages
color message brightblack green # status messages