dotfiles/mutt/.mutt/muttrc
Frank Villaro-Dixon 6ce0fb1f9b thinkgs
2016-07-22 14:53:14 +02:00

124 lines
3.9 KiB
Text

############################
##### ATTENTION - /!\ ######
# Fichier sur git, #
# Accessible publiquement #
# Ne pas mettre de mdp en #
# clair ! #
############################
macro index <f2> '<change-folder>imaps://frank_mail@villaro-dixon.eu<enter>'
folder-hook 'frank_mail@villaro-dixon.eu' 'source ~/.mutt/account.frank'
# switch to default account on startup
source ~/.mutt/account.frank
set my_frank_smtp_pass=`~/.mutt/unlock-pass.sh frank_smtp`
set my_frank_imap_pass=`~/.mutt/unlock-pass.sh frank_imap`
### MOTS DE PASSE
###source "~/.mutt/unlock-pass.sh |"
##Passwords:
####source "gpg -d ~/.mutt/passwords.gpg |"
#source "~/.mutt/unlock-pass.sh |"
# Change the following line to a different editor you prefer.
#set editor = "vim"
set editor="$HOME/.mutt/killsig %s; /usr/bin/vim %s"
set imap_check_subscribed
# Allow Mutt to open new imap connection automatically.
unset imap_passive
#how often to check
set mail_check = 120
bind index "^" imap-fetch-mail
unset mark_old #Do not mark new messages as old after closing mutt
set beep_new
set timeout = 300
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set move = no
set include
set sort = 'threads'
set sort_aux = 'reverse-last-date-received'
set auto_tag = yes
set abort_unmodified=ask-yes #réponse non modifiée
set fast_reply=yes # Yeah, I know what person I want to reply to!
set attribution="On %d, %n, wrote %c characters saying:"
set indent_string="> "
#set max_line_length = 80
#set stuff_quoted
set text_flowed
set followup_to=no
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
alternative_order text/plain text/html *
auto_view text/html
#bind editor <Tab> complete-query
bind editor ^T complete
bind editor <space> noop
set pager_stop = yes
# Gmail-style keyboard shortcuts
#macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
#macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n <delete-message>" "Gmail delete message"
#macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
#macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
#macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
#macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
set certificate_file=~/.mutt/certificates/cert
set tmpdir=/dev/shm/
source ~/.mutt/colors.test1
source ~/.mutt/crypto
# LISTE DE CONTACTS
#set query_command="~/.mutt/grep_ldap.sh '%s'"
#Alias
set alias_file=~/.mutt/alias
set sort_alias = alias
set reverse_alias = yes
source $alias_file
set date_format="%y-%m-%d %T"
set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s"
set sleep_time=0
macro attach 'V' "<pipe-entry>cat > /dev/shm/mail.html && firefox /dev/shm/mail.html && rm /dev/shm/mail.html<enter>"
set display_filter=~/.mutt/displayMail.sh
#Spamcop things. This file is public on git.. Meh
macro index \cx ":set autoedit=no mime_forward=yes editor=\"/bin/true\"\n<tag-prefix><forward-message>submit.zxDB3O8TzLOF2Khd@spam.spamcop.net\n<send-message>:set autoedit=yes mime_forward=no editor=\"/usr/bin/editor\"\n" \
"Forward mail to SpamCop"
macro pager \cx ":set autoedit=no mime_forward=yes editor=\"/bin/true\"\n<tag-prefix><forward-message>submit.zxDB3O8TzLOF2Khd@spam.spamcop.net\n<send-message>:set autoedit=yes mime_forward=no editor=\"/usr/bin/editor\"\n" \
"Forward mail to SpamCop"
folder-hook . 'push "<collapse-all>"'
folder-hook . 'push ":set collapse\_unread=no<enter>"'
macro index \R '<read-thread><collapse-thread><next-unread>' 'Mark the current thread as read'
macro index '{' ':set my_oldcollapse_unread=$collapse_unread<enter>:set collapse_unread=yes<enter><collapse-thread>:set collapse_unread=$my_oldcollapse_unread<enter>' 'Collapse thread.'
macro index '}' '{' '(Un)collapse thread.'