From 33e9939588c3285a45978e09fc56d107a9501672 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 18 Nov 2014 11:08:28 +0100 Subject: [PATCH] cron --- etc/mutt/aliases | 61 +++++++++++++++++++ etc/mutt/aliases.egw | 74 ++++++++++++++++++++++ etc/mutt/autoview | 25 ++++++++ etc/mutt/bind | 12 ++++ etc/mutt/charset | 35 +++++++++++ etc/mutt/color | 64 +++++++++++++++++++ etc/mutt/decode-charset.sh | 35 +++++++++++ etc/mutt/folders | 14 +++++ etc/mutt/formats | 14 +++++ etc/mutt/gpg.rc | 42 +++++++++++++ etc/mutt/header | 33 ++++++++++ etc/mutt/macros | 25 ++++++++ etc/mutt/mailcap | 122 +++++++++++++++++++++++++++++++++++++ etc/mutt/score | 11 ++++ etc/mutt/signature | 1 + etc/mutt/view.sh | 22 +++++++ 16 files changed, 590 insertions(+) create mode 100644 etc/mutt/aliases create mode 100644 etc/mutt/aliases.egw create mode 100644 etc/mutt/autoview create mode 100644 etc/mutt/bind create mode 100644 etc/mutt/charset create mode 100644 etc/mutt/color create mode 100755 etc/mutt/decode-charset.sh create mode 100644 etc/mutt/folders create mode 100644 etc/mutt/formats create mode 100644 etc/mutt/gpg.rc create mode 100644 etc/mutt/header create mode 100644 etc/mutt/macros create mode 100644 etc/mutt/mailcap create mode 100644 etc/mutt/score create mode 100644 etc/mutt/signature create mode 100755 etc/mutt/view.sh diff --git a/etc/mutt/aliases b/etc/mutt/aliases new file mode 100644 index 00000000..6c14829a --- /dev/null +++ b/etc/mutt/aliases @@ -0,0 +1,61 @@ +# +# Lists +# +unlists * +# NB 03.09.01 prochaine version!!! subscribe dash-list micq mutt-dev mutt-users ml openssh gimp-announce +# NB 03.09.01 prochaine version!!! subscribe gimp-developer linux-kernel linux-announce linux inpres belgique +# NB 03.09.01 prochaine version!!! subscribe really-bad-attitude liege-ulg links-list slaktool-devel +# NB 03.09.01 prochaine version!!! subscribe ourgamedevel gtk-list + +# +# Aliases +# +# alias
[ ,
... ] +# +source "~/.mutt/aliases.egw" +################################################################################ +# PERSO +################################################################################ +alias bernard "Bernard Dennig" +alias castillon "Castillon Massas" +alias stef "Stephane Boisselier" +alias anita "Anita Granero" +alias marie "Marie" +alias dora "Dora Eftaxia" +alias papa "Marc Boisselier" +alias ioanna "Ioanna Tassopoulou" +alias tallinn "Ruta Stulpinaite" , enel.lausa@gmail.com, "Sérgio RODRIGUES" , Paul-Henri , erikverheijen@gmail.com, "Gregory STABILE" , "Judit NAGY" , "Wouter CLAES" +################################################################################ +# FOOT +################################################################################ +alias franck "Franck LABORDE" +alias lol "Laurent SANCHEZ" +alias domi "Dominique LAREE" +################################################################################ +# Appart +################################################################################ +################################################################################ +# BOULO +################################################################################ +# izideal +alias serge "Serge Rodrigues" +alias francois "François Azevedo" +alias izideal "Serge Rodrigues" , "François Azevedo" +#alias izideal "Serge Rodrigues" , "François Azevedo" +alias chantal "Marie Chantal Pirona" +alias webformance "Olivier Guillo" , "Alix Jalon" , "Veronique Seneze" ,"Christian Delaroche" , "Kamel Malek" , "Stanislas" , "Gaëlle Macé" , "Rida Benarbia" , "Leila Moumeni" , "Pablo Gasnier" , "Fabien Kasman" +alias olivier "Olivier Guillo" +alias alix "Alix Jalon" +alias fabien "Fabien Kasman" +alias gaelle "Gaëlle Macé" +alias extranet "Alix Jalon" , "Fabien Kasman" +alias nfrance "Support NFrance" +alias anne Anne Baillare +alias arnaud Arnaud Defrenne +alias mylene Mylene Maheo +alias cecile Cécile Boisselier +#alias naves "Alicia LACAM" , "Justine PARAMELLE" +#alias naves Sandrine Petrocelli +alias naves "Stéphane Boutiot" +alias medhi "Mehdi Jahani" +alias max "Max Sumili" diff --git a/etc/mutt/aliases.egw b/etc/mutt/aliases.egw new file mode 100644 index 00000000..b45ab425 --- /dev/null +++ b/etc/mutt/aliases.egw @@ -0,0 +1,74 @@ +alias a.bartial "Arnaud Bartial" +alias a.granero "Anita Granero" +alias a.nory "Alexis Nory" +alias a.packet "Antonin Packet" +alias aga "Agnieszka Hinczyca" +alias anne "Anne Baillare" +alias assen "Assen Drandev" +alias b.dusasse "Bernard Dusasse" +alias benjamin "Benjamin Milowski" +alias c.jariod "Cynthia Jariod" +alias c.thieme "Christian Thieme" +alias carl "Carl Gressum" +alias charlotte "Charlotte Straby" +alias d.eftaxia "Dora Eftaxia" +alias d.gusmano "Didier Gusmano" +alias dominique "Dominique Laree" +alias david "David Laree" +alias d.molto "Délphine Molto" +alias d.notin "David Notin" +alias defrenne "Arnaud Defrenne" +alias e.nottin "Emmanuel Nottin" +alias enel "Enel Lausa" +alias erik "Erik Verheijen" +alias f.duffau "Fabien Duffau" +alias fbi "François Bieber" +alias francois "François Azevedo" +alias greg "Gregory Stabile" +alias ioanna "Ioanna Tassopoulou" +alias j.garcia sanches "Jordi Garcia sanches" +alias j.gouzy "Jérôme Gouzy" +alias j.gravier "Jean luc Gravier" +alias j.petieu "Jérôme Petieu" +alias j.thomas "Jérome Thomas" +alias jean "Jean Boisselier" +alias jeanmarie "Jean-marie Labedan" +alias judit "Judit Nagy" +alias k.dauny "Katia Dauny" +alias kevin "Kevin Hatry" +alias lol "Laurent Sanchez" +alias m.cazalas "Michel Cazalas" +alias m.fitan "Malika Fitan" +alias m.gelle "Mickaël Gelle" +alias marie "Marie Gridaine" +alias moni "Moni Andersen" +alias n.boisselier "Nicolas Boisselier" +alias nat "Natalie Ormsby" +alias nigel "Nigel Apperley" +alias p.cros "Philippe Cros" +alias p.eugene "Philippe Eugene" +alias p.vilain "Pierre Vilain" +alias papa "Marc Boisselier" +alias Paul-Henri "Paul-henri Chelle" +alias ruta "Ruta Stulpinaite" +alias s.boyer "Stéphanie Boyer" +alias s.cathus "Stephan Cathus" +alias s.contrepois "Stephane Contrepois" +alias s.duffau "Sébastien Duffau" +alias s.layani "Sylviane Layani" +alias s.thomas "Sophie Thomas" +alias shanna "Shanna Jacobs" +alias silvia "Silvia Nimo" +alias steph "Stephane Boisselier" +alias t.cordelle "Thierry Cordelle" +alias t.labedan "Thierry Labedan" +alias toff " Hernandez" +alias v.batsere "Vincent Batsere" +alias v.martinaux "Virginie Martinaux" +alias v.piazer "Véronique Piazer" +alias v.thomas "Vincent Thomas" +alias vitek "Vitek Kovalovsky" +alias w.claes "Wouter Claes" +alias x.fanjaud "Xavier Fanjaud" +alias y.kwack "You jin Kwack" +alias y.pouyssegure "Yannick Pouyssegure" diff --git a/etc/mutt/autoview b/etc/mutt/autoview new file mode 100644 index 00000000..d57ecd48 --- /dev/null +++ b/etc/mutt/autoview @@ -0,0 +1,25 @@ +# +# Automatically use entries from mailcap to view these MIME types +# +#auto_view text/richtext text/html text/x-sgml text/x-vcard text/x-sh \ +# text/x-csrc text/tex text/-xtex text/english \ +# application/x-tex application/x-dvi \ +# application/x-gzip-dvi application/x-diff-gzip application/x-gzip \ +# application/x-gunzip application/x-bzip2 \ +# application/x-cpio application/x-gtar \ +# application/x-tar application/x-tar-gz application/x-rar-compressed \ +# application/x-zip-compressed application/zip application/x-csh \ +# application/x-sh application/x-script application/x-shellscript \ +# application/x-latex application/x-tex application/x-shar \ +# application/x-troff application/x-troff-man application/x-troff-me \ +# application/msword \ +# application/ms-tnef application/ms-word application/rtf \ +# application/octet-stream application/x-tcl application/x-perl \ +# application/x-debian-package message/partial \ +# application/octet-stream text/x-vcard text/x-c \ +# application/x-perl application/rtf +# +# +#alternative_order text/enriched text/plain text/html +auto_view text/x-vcard +auto_view text/html diff --git a/etc/mutt/bind b/etc/mutt/bind new file mode 100644 index 00000000..da41ab30 --- /dev/null +++ b/etc/mutt/bind @@ -0,0 +1,12 @@ +# +# Bind +# NB 04.09.01 bind generic "\e<" first-entry # emacs-like bindings for moving to top/bottom +# NB 04.09.01 bind generic \e> last-entry +bind generic { top-page +bind generic } bottom-page +bind generic \177 last-entry +bind pager G bottom # just like vi and less + +# casse ou lie les threads +# NB 03.09.01 prochaine version!!! bind index ½ break-thread # for 1.3.x patched +# NB 03.09.01 prochaine version!!! bind index & link-threads # for 1.3.x patched diff --git a/etc/mutt/charset b/etc/mutt/charset new file mode 100644 index 00000000..476a54ab --- /dev/null +++ b/etc/mutt/charset @@ -0,0 +1,35 @@ +charset-hook windows-1250 CP1250 +charset-hook windows-1251 CP1251 +charset-hook windows-1252 CP1252 +charset-hook windows-1253 CP1253 +charset-hook windows-1254 CP1254 +charset-hook windows-1255 CP1255 +charset-hook windows-1256 CP1256 +charset-hook windows-1257 CP1257 +charset-hook windows-1258 CP1258 + +# charset-hook x-unknown iso-8859-15 +## le charset du terminal +##set charset="us-ascii:iso-8859-15:iso-8859-1" +##set charset=iso-8859-15 +#set charset="us-ascii:iso-8859-15:iso-8859-1:utf-8" +#set charset="iso-8859-15" +#set locale="en_US.UTF-8" +### le charset des messages +### NB 17.03.11 set send_charset=iso-8859-15 +#set file_charset="ucs-2:utf-8:windows-1252" +#set display_filter="/usr/bin/fribidi -c utf-8" +#set file_charset="utf-8:iso-8859-1" + +#set send_charset="utf-8:iso-8859-15:us-ascii" + +#set display_filter="~/.mutt/decode-charset.sh" +#set charset="iso-8859-15" + +set charset="utf-8" +set assumed_charset="utf-8" +set locale="en_US.UTF-8" +set config_charset="utf-8" +set send_charset="utf-8" +set rfc2047_parameters + diff --git a/etc/mutt/color b/etc/mutt/color new file mode 100644 index 00000000..83921853 --- /dev/null +++ b/etc/mutt/color @@ -0,0 +1,64 @@ +# couleurs generales +#color hdrdefault black white +#color normal black white +# selection +#color indicator brightyellow red + +color indicator black cyan +# etat +color status white blue +# email +#color header brightblue default "[^<@ :]+@[a-zéèàûô]+\.[a-z]" +#color body brightblue default "[^<@ :]+@[a-zéèàûô]+\.[a-z]" +# url +#color body brightblue default "\\w+://[^ \\'\\>]+" +#color header brightblue default "\\w+://[^ \\'\\>]+" + +## Color definitions +#color normal white black +color normal default default +#color hdrdefault red default +#color quoted brightblue default +#color quoted1 cyan black +#color quoted2 green black +#color quoted3 cyan black +color signature red default + +#color error brightred default +#color tree magenta default # the thread tree in the index menu +#color tilde magenta default +#color message brightcyan default +#color markers brightcyan default +color attachment brightblue default +#color search default green # how to hilite search patterns in the pager +# +color header brightyellow default ^(From): +color header brightmagenta default ^(To): +color header brightmagenta default ^(Delivered-To) +color header brightred default ^(Subject): +color header brightgreen default ^(x-mailer) +color header brightblue default ^(X-Spam-) +color body brightblue default "(ftp|http|https)://[^ ]+" # point out URLs +color body brightblue default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses +#color underline brightgreen default +# +#color index magenta black '(~n 1-1)' +#color index green black '(~n 2-2)' +#color index white black '(~n 3-7)' +#color index brightblue black '(~n 8-8)' +#color index brightred black '(~n 9-9)' +#color index red black '(~n 10-99)' +# +## Colour mutt-dev CVS commit emails brightblue on black +## color index brightblue black '(~s"\[\d4-\d2-\d2\] CVS commit messages")' +# +## gnupg coloring (source: kris kennaway ) +#color body green black "^gpg: Good signature from" +#color body brightred black "^gpg: Bad signature from" +#color body brightred black "^gpg: BAD signature from" +#color body brightred black "^gpg: Note: This key has expired!" +#color body brightyellow black "^gpg: WARNING: This key is not certifi ed with a trusted signature!" +#color body brightyellow black "^gpg: There is no indication that the signature belongs to the owner." +#color body brightyellow black "^gpg: can't handle these multiple signatures" +#color body brightyellow black "^gpg: signature verification suppressed" +#color body brightyellow black "^gpg: invalid node with packet of type" diff --git a/etc/mutt/decode-charset.sh b/etc/mutt/decode-charset.sh new file mode 100755 index 00000000..74f14798 --- /dev/null +++ b/etc/mutt/decode-charset.sh @@ -0,0 +1,35 @@ +#!/bin/bash +tmp="/tmp/decode-charset.sh.$$.tmp" +if [ -z "$1" ]; then + cat > $tmp + file=$tmp +else + file=$1 +fi + +if [ -z "$2" ]; then + charsetO="utf-8" + #charsetO="iso-8859-1" +else + charsetO=$2 +fi + +charsetI=`file "$file"|perl -pe 's/^.*?: //;$_=lc($_)'` +echo $charsetI + +cmd="cat" +case $charsetI in + *$charsetO*) ;; + *iso-8859*) cmd="iconv -f iso-8859-1 -t $charsetO" ;; + # *ascii*) cmd="iconv -f iso-8859-1 -t $charsetO" ;; + # *ascii*) cmd="iconv -f utf-8 -t iso-8859-1" ;; + *utf-8*) cmd="iconv -f utf-8 -t $charsetO" ;; + #*utf-8*) cmd="iconv -f utf-8 -t $charsetO" ;; + *) cmd="iconv -f iso-8859-1 -t $charsetO" ;; + #*) echo Unknow: $charsetI ;; +esac +$cmd $file +#$cmd $file|head +echo "$0: [$charsetI => $charsetO]: $cmd $file" >> /tmp/debug + +rm -f $tmp diff --git a/etc/mutt/folders b/etc/mutt/folders new file mode 100644 index 00000000..06011c13 --- /dev/null +++ b/etc/mutt/folders @@ -0,0 +1,14 @@ +# repertoire des mailboxes +set folder="~/Mail" + +# ou mutt va mettre ses fichiers tmp +set tmpdir = "~/tmp" + +# la "boite" des messages postponed +set postponed=+postponed + +# la boite des messages envoyes +set record=+outbox + +# vérifier les nouveaux messages dans les boites suivantes +mailboxes `echo $HOME/Mail/* | sed s/outbox// | sed s/trash// | sed s/spam//` diff --git a/etc/mutt/formats b/etc/mutt/formats new file mode 100644 index 00000000..f0350e37 --- /dev/null +++ b/etc/mutt/formats @@ -0,0 +1,14 @@ +#set hdr_format="%4C %Z [%-2M] %{%d/%m} %-15.15F (%4c) %s" +#set hdr_format="%Z %3C %{%b %d} %-15t %-19.19L (%5c) %s" +# NB remplace hdr_format +#set index_format="%Z %3C %{%d/%m} %-30.30t %-30.30a (%5c) %s" +set index_format="%Z %3C %{%d/%m} %-30.30a (%5c) %-30.30t %s" +#set index_format="%Z %3C %{%d/%m} %-30.30a %5c %s" +#set folder_format="%2C %N [ %-20f ] [ %2d ] [ %-8s ]" +set pager_format="[%C/%m] (%s) %> [%lL]" +set forw_format="fwd: %s" +set date_format = "!%a, %b %d, %Y at %I:%M:%S%p" +set attribution = "On %d, %n wrote:" +#set attribution = "Le %d, %n a écrit:" +# NB 03.09.01 prochaine version!!! set attach_format="%u%D%t%2n %T%.40d%> [%.7m/%.10M, %.6e, %s] " +set status_format="%v [box%f] [new=%n | delete=%d | tagged=%t | size=%l] %> (%P) [%M/%m messages]" diff --git a/etc/mutt/gpg.rc b/etc/mutt/gpg.rc new file mode 100644 index 00000000..eba34452 --- /dev/null +++ b/etc/mutt/gpg.rc @@ -0,0 +1,42 @@ +# +# GPG +# +# +# decode application/pgp +set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f" + +# verify a pgp/mime signature +set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f" + +# decrypt a pgp/mime attachment +set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f" + +# create a pgp/mime signed attachment +set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" + +# create a application/pgp signed (old-style) message +set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase- fd 0 --armor --textmode --clearsign %?a?-u %a? %f" + +# create a pgp/mime encrypted attachment +set pgp_encrypt_only_command="pgpewrap gpg -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" + +# create a pgp/mime encrypted and signed attachment +set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" + +# import a key into the public key ring +set pgp_import_command="gpg --no-verbose --import -v %f" + +# export a key from the public key ring +set pgp_export_command="gpg --no-verbose --export --armor %r" + +# verify a key +set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r" + +# read in the public key ring +set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" + +# read in the secret key ring +set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" + +# receive key from keyserver: +set pgp_getkeys_command="" diff --git a/etc/mutt/header b/etc/mutt/header new file mode 100644 index 00000000..4c8fd8ce --- /dev/null +++ b/etc/mutt/header @@ -0,0 +1,33 @@ +# +# HEADER +# vire tout +ignore * +# mais montre moi ça +unignore from: +unignore to +unignore cc +unignore bcc +unignore subject +unignore date +unignore organization +unignore x-mailer +unignore user-agent +unignore x-url +unignore X-GPG-Fingerprint +unignore X-PGP-Fingerprint +unignore X-Spam- +unignore Delivered-To + +# spécifie l'ordre des headers dans les messages +# supprime tout +# NB 03.09.01 prochaine version!!! unhdr_order * +# mais montre ça +hdr_order date from subject to cc bcc + +# mon header à moi :O) +#my_hdr from: nicolas.boisselier@free.fr +#my_hdr X-URL: http://nicolas.boisselier.free.fr +my_hdr X-Operating-System: Linux/`uname -r` (`uname -m`) +#my_hdr X-Crypto: GnuPG/1.0.6 http://www.gnupg.org +#my_hdr X-GPG-Key: http:// +#my_hdr X-GPG-Fingerprint: E1B2 E471 1D76 6E4B 4FBB C593 DA47 81B0 4CF1 64F5 diff --git a/etc/mutt/macros b/etc/mutt/macros new file mode 100644 index 00000000..c5b720a6 --- /dev/null +++ b/etc/mutt/macros @@ -0,0 +1,25 @@ +# +# macros +macro index \cb |urlview\n # simulate the old browse-url function +# NB 03.09.01 ne fonctionne pas!!! macro compose I 'set ispell="aspell --language-tag=fr -c --mode=email" ' 'Run aspell with French dictionary' + +macro index S s+spam\n +macro pager S s+spam\n + +macro attach S ~/tmp/attach/ +#bind attach s save-entry +#macro attach S ":set folder=~/tmp/attach\ns" + +#macro index \# /bug^M # search for bugs +#macro index "\"" ":set realname=\"real hairy macro\"^M:set ?realname^M" + # and a comment to boot! +#macro index f1 :woohoo! + +#macro pager \Ck "|pgp -kaf^M" # a comment is valid here +#macro pager X "|morepgp^M" # pipe PGP message to a script + +# F2 relis la config +# NB 03.09.01 ne fonctionne pas!!! smacro generic ":source [1]~/.mutt/muttrc\n" "Reload mutt config" + +# NB 03.09.01 ne fonctionne pas!!! macro generic ":set header\n" "Inclus tout le header dans le reply" +# NB 03.09.01 ne fonctionne pas!!! macro generic ":unset header\n" "Vire tout le header dans le reply" diff --git a/etc/mutt/mailcap b/etc/mutt/mailcap new file mode 100644 index 00000000..828ef0e2 --- /dev/null +++ b/etc/mutt/mailcap @@ -0,0 +1,122 @@ +application/octet-stream; mutt.octet.filter %s; copiousoutput + + +################################################################################# +# +# HTML +# +#text/html; links -dump %s; copiousoutput; nametemplate=%s.html +#application/x-html; links -dump %s; copiousoutput; nametemplate=%s.html + +text/html ; lynx -hiddenlinks=ignore -assume_charset=%{charset} -width=$(stty size|awk '{print $2-10}') -dump %s; copiousoutput; nametemplate=%s.html +application/x-html; lynx -hiddenlinks=ignore -assume_charset=%{charset} -width=$(stty size|awk '{print $2-10}') -dump %s; copiousoutput nametemplate=%s.html + +################################################################################# +# +# Office +# + +# RTF +application/octet-stream; unrtf %s; exts=rtf,RTF; copiousoutput + +# DOC +application/octet-stream; catdoc %s; exts=doc,DOC; copiousoutput +application/msword; catdoc %s; copiousoutput +# NB 31.10.13 application/octet-stream; xplay %s; exts=doc,DOC +# NB 31.10.13 application/msword; xplay %s + +# XLS +application/octet-stream; ~/.mutt/view.sh xls %s; exts=xls,XLS; copiousoutput +application/msexcell; ~/.mutt/view.sh xls %s; copiousoutput +application/msexcel; ~/.mutt/view.sh xls %s; copiousoutput +application/vnd.ms-excell; ~/.mutt/view.sh xls %s; copiousoutput +application/vnd.ms-excel; ~/.mutt/view.sh xls %s; copiousoutput + +#application/vnd.ms-powerpoint; ppt2txt.sh %s; copiousoutput +#application/octet-stream; ppt2txt.sh %s; exts=ppt,PPT; copiousoutput +application/vnd.ms-powerpoint; xplay %s; exts=ppt,PPT +application/octet-stream; xplay %s; exts=ppt,PPT +unknown/unknown; xplay %s; exts=ppt,PPT + +application/rar; rar v %s; copiousoutput + +################################################################################# +# +# TXT +# +application/x-sh; cat %s; copiousoutput +application/x-tex; cat %s; copiousoutput +text/x-c; cat %s; copiousoutput + +################################################################################# +# +# PDF +# +application/octet-stream; xplay %s -; exts=pdf,PDF +application/pdf; xplay %s +application/postscript; xplay %s +#application/octet-stream; pdftotext %s -; exts=pdf,PDF; copiousoutput +#application/pdf; pdftotext %s -; copiousoutput +#application/postscript; gv %s + +################################################################################# +# +# Images +# +application/octet-stream; xplay %s; exts=gif,GIF,jpg,JPG,jpeg,JPEG,png,PNG,bmp,BMP +image/gif; xplay %s +image/pjpeg; xplay %s +image/jpeg; xplay %s +image/jpg; xplay %s +image/png; xplay %s +image/bmp; xplay %s + +################################################################################# +# +# Media +# +application/octet-stream; xplay %s; exts=mp3,MP3,ogg,OGG,mpeg,MPEG,mpg,MPG,wma,WMA,mp4,MP4,wav,WAV,wmv,WMV +audio/mp3;xplay %s +audio/mp4;xplay %s +audio/mpeg;xplay %s +video/mpeg;xplay %s +audio/mpegurl;xplay %s +audio/scpls;xplay %s +audio/x-mp3;xplay %s +audio/x-mpeg;xplay %s +audio/x-mpegurl;xplay %s +audio/x-scpls;xplay %s +audio/x-wav; xplay %s; exts=wav,WAV +video/x-ms-wmv; xplay %s; exts=wmv,WMV + + +################################################################################# +# +# ZIP +# + +application/x-tar-gz; tar tzf %s; copiousoutput +application/x-gzip; gunzip -c %s; copiousoutput + +application/octet-stream; unzip -l %s; exts=zip,ZIP; copiousoutput +application/x-zip-compressed; unzip -l %s; copiousoutput +application/x-zip; unzip -l %s; copiousoutput +application/x-unknown-content-type-WinZip; unzip -l %s; copiousoutput +application/zip; unzip -l %s;copiousoutput + +application/octet-stream; rar v %s; exts=rar,RAR; copiousoutput + +################################################################################# +# +# Others +# + +# NB 12.06.13 application/octet-stream; less %s; exts=log +application/octet-stream; xplay %s + +text/x-vcard; mutt.vcard.filter; copiousoutput +#text/x-vcard; cat %s; copiousoutput +#text/x-vcard; /usr/bin/mutt.vcard.filter; copiousoutput + +#application/pgp-signature; cat %s; copiousoutput +#application/x-perl; cat %s; copiousoutput diff --git a/etc/mutt/score b/etc/mutt/score new file mode 100644 index 00000000..7046cfa1 --- /dev/null +++ b/etc/mutt/score @@ -0,0 +1,11 @@ +# voir http://mutt.org/doc/manual/manual-4.html#pattern pour les expressions + + +#score ~fcedric.gavage@unixtech\.be 8 +#score ~fbenoit.joseph@teledisnet\.be 9 +#score ~fdash@linuxbe\.org 9 +#score ~fbinny@baby-linux\.net 10 +#score ~fbinny@freegates\.be 10 + +#score ~s'bug#' 2 +#score ~s'"CVS commit messages"' 2 diff --git a/etc/mutt/signature b/etc/mutt/signature new file mode 100644 index 00000000..9eb44261 --- /dev/null +++ b/etc/mutt/signature @@ -0,0 +1 @@ +Nicolas Boisselier diff --git a/etc/mutt/view.sh b/etc/mutt/view.sh new file mode 100755 index 00000000..940e3208 --- /dev/null +++ b/etc/mutt/view.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +################################################################################# +# +# NB 25.10.13 - (C) 2013 Nicolas Boisselier +# /home/nico/.mutt/view.sh +# +################################################################################# +TYPE="$1" +FILE="$2" + +case "$TYPE" in + + xls) + xls2csv -q 0 -d utf-8 -c $'\t' "$FILE" + ;; + + *) + echo "Unknow type: $TYPE at $0!" >&2 + exit -1 + ;; + +esac -- 2.47.3