mutt config files

This commit is contained in:
Frank Villaro-Dixon 2013-07-31 16:03:11 +02:00
parent aac1c3832c
commit 94acb5229f
8 changed files with 325 additions and 1 deletions

1
bashrc
View file

@ -8,6 +8,7 @@ export EDITOR="vim"
GPG_TTY=`tty`
export GPG_TTY
export GPGKEY=6F36914A
#####ON DEFINIT LES COULEURS
red='\033[31m'

View file

@ -13,7 +13,6 @@ ln -s $WAI/screenrc ./.screenrc
ln -s $WAI/octaverc ./.octaverc
ln -s $WAI/mailcap ./.mailcap
ln -s $WAI/chooseWP.sh ~/Pictures/wallpapers/chooseWP.sh
#SSH
@ -21,6 +20,16 @@ if [ ! -d "~/.ssh" ]; then mkdir .ssh/; fi;
cd ~/.ssh
ln -s $WAI/ssh/config ./
#MUTT
if [ ! -d "~/.mutt" ]; then mkdir .mutt/; fi;
cd ~/.mutt
ln -s $WAI/mutt/muttrc ./
ln -s $WAI/mutt/killsig ./
ln -s $WAI/mutt/passwords.gpg ./
ln -s $WAI/mutt/crypto ./
ln -s $WAI/mutt/colors.test1 ./
ln -s $WAI/mutt/colors.test2 ./
#VIM
if [ ! -d "~/.vim" ]; then mkdir ~/.vim/; fi;

80
mutt/colors.test1 Normal file
View file

@ -0,0 +1,80 @@
# vim: filetype=muttrc
############## COLORS ##############
# Colours for items in the index
color index brightcyan black ~N
# Hmm, don't like this.
#color index brightgreen black "~N (~x byers.world)|(~x byers.x)|(~x langly.levallois123.axialys.net)|(~x the.earth.li)"
color index brightyellow black ~F
color index black green ~T
color index brightred black ~D
mono index bold ~N
mono index bold ~F
mono index bold ~T
mono index bold ~D
# Highlights inside the body of a message.
# URLs
color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
# email addresses
color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
#mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
# header
color header green black "^from:"
color header green black "^to:"
color header green black "^cc:"
color header green black "^date:"
color header yellow black "^newsgroups:"
color header yellow black "^reply-to:"
color header brightcyan black "^subject:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header yellow black "^X-Message-Flag:"
color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM"
# Coloring quoted text - coloring the first 7 levels:
color quoted cyan black
color quoted1 yellow black
color quoted2 red black
color quoted3 green black
color quoted4 cyan black
color quoted5 yellow black
color quoted6 red black
color quoted7 green black
# Default color definitions
#color hdrdefault white green
color signature brightmagenta black
color indicator black cyan
color attachment black green
color error red black
color message white black
color search brightwhite magenta
color status brightyellow blue
color tree brightblue black
color normal white black
color tilde green black
color bold brightyellow black
#color underline magenta black
color markers brightcyan black
# Colour definitions when on a mono screen
mono bold bold
mono underline underline
mono indicator reverse

88
mutt/colors.test2 Normal file
View file

@ -0,0 +1,88 @@
## Theme kindly inspired from
## http://nongeekshandbook.blogspot.ie/2009/03/mutt-color-configuration.html
## Colours for items in the index
color index brightcyan black ~N
color index brightred black ~O
color index brightyellow black ~F
color index black green ~T
color index brightred black ~D
mono index bold ~N
mono index bold ~F
mono index bold ~T
mono index bold ~D
## Highlights inside the body of a message.
## URLs
color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
## Email addresses.
color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
## Header
color header green black "^from:"
color header green black "^to:"
color header green black "^cc:"
color header green black "^date:"
color header yellow black "^newsgroups:"
color header yellow black "^reply-to:"
color header brightcyan black "^subject:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header yellow black "^X-Message-Flag:"
color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM"
## Coloring quoted text - coloring the first 7 levels:
color quoted cyan black
color quoted1 yellow black
color quoted2 red black
color quoted3 green black
color quoted4 cyan black
color quoted5 yellow black
color quoted6 red black
color quoted7 green black
## Default color definitions
#color hdrdefault white green
color signature brightmagenta black
color indicator black cyan
color attachment black green
color error red black
color message white black
color search brightwhite magenta
color status brightyellow blue
color tree brightblue black
color normal white black
color tilde green black
color bold brightyellow black
#color underline magenta black
color markers brightcyan black
## Colour definitions when on a mono screen
mono bold bold
mono underline underline
mono indicator reverse

41
mutt/crypto Normal file
View file

@ -0,0 +1,41 @@
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0xC9C40C31 -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0x6F36914A -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
# specify the uid to use when encrypting/signing
set pgp_sign_as=0x6F36914A
# this set the number of seconds to keep in memory the passpharse used to encrypt/sign
# 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="^gpg: Good signature from"
# mutt uses by default PGP/GPG to sign/encrypt messages
# if you want to use S-mime instead set the smime_is_default variable to yes
# automatically sign all outgoing messages
set crypt_autosign
# sign only replies to signed messages
set crypt_replysign
# automatically encrypt outgoing messages
set crypt_autoencrypt=yes
# 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

22
mutt/killsig Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/perl
#
# killsig: delete signature (also "oe-sigs") when quoting emails.
# known patterns: ">-- " , "> -- ", ">--", "> --".
#
# Michael Velten <michael@michnet.de>
open(MAIL, "+<$ARGV[0]") || die "$0: Can't open $ARGV[0]: $!";
while (<MAIL>) {
unless (/^> ?-- ?$/) {
push(@purged, $_);
}
else {
while (<MAIL>) {
push(@purged, $_) unless /^>.+/;
}
}
}
truncate(MAIL, 0);
seek(MAIL,0,0);
print MAIL @purged;
close(MAIL);

81
mutt/muttrc Normal file
View file

@ -0,0 +1,81 @@
############################
##### ATTENTION - /!\ ######
# Fichier sur git, #
# Accessible publiquement #
# Ne pas mettre de mdp en #
# clair ! #
############################
set imap_user = "frank_mail"
# Keep IMAP connection alive by polling intermittently (time in seconds).
set imap_keepalive = 300
set smtp_url = "smtp://frank_mail@villaro-dixon.eu:587/"
set from = "Frank@Villaro-Dixon.eu"
set realname = "Frank Villaro-Dixon"
##Passwords:
source "gpg -d ~/.mutt/passwords.gpg |"
# Change the following line to a different editor you prefer.
#set editor = "vim"
set editor="$HOME/.mutt/killsig %s; /usr/bin/vim %s"
# Basic config, you can leave this as is
set folder = "imaps://villaro-dixon.eu:993"
set spoolfile = "+INBOX"
mailboxes =INBOX =UNIGE =SPAM =BITFLIP
#Bien ajouter le "+" devant !!!
set postponed = "+Drafts"
# Where to save sent messages ?
set record = "+Sent"
set imap_check_subscribed
# Allow Mutt to open new imap connection automatically.
unset imap_passive
set hostname = villaro-dixon.eu
#how often to check
set mail_check = 120
bind index "^" imap-fetch-mail
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
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
# 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

2
mutt/passwords.gpg Normal file
View file

@ -0,0 +1,2 @@
 a YFÿVeâÌ#%%•JÍ<1C> Îýâ× oDFR<46>`=œû>1|ÖÓ=G®MmêX.¥µì§ÛƤèB2mzÈb<C388>®ùº•´ª"ô Í R•&ýÌìB)Þ“­T/AFñÏ„0È<}<7D>Ó£0KЛ̮n¯Õßá½HýS±ÞÕÇ—5=U÷ISµç×[Œ«ž¾Ê£¨e2o¥+²PåèJì
] R#Û2‡ºuü`M.­©JÜVWwÃëœöbÄ¢½ÛÁÅö“¦üÍ]Ëƈ.û§©\˜Að¿ t¡¿ɧ]M,tÛ<74>ÛþÄ}µ°b2…â»…åÒ\šüp.]X}]Þþ÷IŒ\ÿî(ÿË»a1x¹ÍTuv…_æ|#!%ª ã¿ßã­­C<L‡[‹µ <04>nKAÖæˆ\*ÕJ,¦ ·Á¨–Æâ