diff --git a/.mutt/color b/.mutt/color new file mode 100644 index 0000000..ef5b11f --- /dev/null +++ b/.mutt/color @@ -0,0 +1,113 @@ +# -*- muttrc -*- +# +# Color settings for mutt. +# + +# Default color definitions +color normal white default +color hdrdefault green default +color quoted green default +color quoted1 yellow default +color quoted2 red default +color signature cyan default +color indicator brightyellow red +color error brightred default +color status brightwhite blue +color tree brightmagenta default +color tilde blue default +color attachment brightyellow default +color markers brightred default +color message white default +color search brightwhite magenta +color bold brightyellow default + +# Color definitions when on a mono screen +mono bold bold +mono underline underline +mono indicator reverse +mono error bold + +# Colors for items in the reader +color header brightyellow default "^(From|Subject):" +color header brightcyan default ^To: +color header brightcyan default ^Cc: +mono header bold "^(From|Subject):" + +# Many of these formulas were stolen from Jeremy Blosser +# These would be much simpler if colors were additive. + +# regular new messages +color index black white "~N !~T !~F !~p !~P" +# regular tagged messages +color index black cyan "~T !~F !~p !~P" +# regular flagged messages +color index black red "~F !~p !~P" +# messages to me +color index yellow default "~p !~N !~T !~F !~P" +color index brightyellow white "~p ~N !~T !~F !~P" +color index yellow cyan "~p ~T !~F !~P" +color index yellow red "~p ~F !~P" +# messages from me +color index green default "~P !~N !~T !~F" +color index green white "~P ~N !~T !~F" +color index green cyan "~P ~T !~F" +color index green red "~P ~F" +# messages which mention my name in the body +color index yellow default "~b \"phil(_g|\!| gregory| gold)|pgregory\" !~N !~T !~F !~p !~P" +color index brightyellow white "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~N !~T !~F !~p !~P" +color index yellow cyan "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~T !~F !~p !~P" +color index yellow red "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~F !~p !~P" +# messages which are in reference to my mails +color index magenta default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" !~N !~T !~F !~p !~P" +color index magenta white "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~N !~T !~F !~p !~P" +color index magenta cyan "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~T !~F !~p !~P" +color index magenta red "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~F !~p !~P" +# messages to root, etc. +color index cyan default "~C \"(root|postmaster|abuse|mailer-daemon)@\" !~N !~P !~p" +color index cyan white "~C \"(root|postmaster|abuse|mailer-daemon)@\" ~N !~P !~p" +# big messages +color index brightred default "!~N ~z 102400-" +color index brightred cyan "~T !~F !~p !~P ~z 102400-" +color index brightred white "~N ~z 102400-" + +# deleted messages +color index red default "!~N ~D" +color index red white "~N ~D" + + +# Highlights inside the body of a message. + +# Attribution lines +color body magenta default "\\* [^<]+ <[^>]+> \\[[^]]+\\]:" +color body magenta default "(^|[^[:alnum:]])on [a-z0-9 ,]+( at [a-z0-9:,. +-]+)? wrote:" + +# URLs +color body brightyellow default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" + +# email addresses +color body brightmagenta default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])" + +# PGP messages +color body brightyellow default "^gpg: Good signature .*" +color body white default "^gpg: " +color body brightwhite red "^gpg: BAD signature from.*" +mono body bold "^gpg: Good signature" +mono body bold "^gpg: BAD signature from.*" + +# Various smilies and the like +color body brightwhite default "<[Gg]>" # +color body brightwhite default "<[Bb][Gg]>" # +color body brightwhite default " [;:]-*[})>{(<|]" # :-) etc... +# *bold* +color body brightblue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" +mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" +# _underline_ +color body brightblue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" +mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" +# /italic/ (Sometimes gets directory names) +#color body brightblue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" +#mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" + +# Border lines. +color body blue default "( *[-+=#*~_]){6,}" + diff --git a/.mutt/colorSimple b/.mutt/colorSimple new file mode 100644 index 0000000..799666c --- /dev/null +++ b/.mutt/colorSimple @@ -0,0 +1,40 @@ +color attachment brightmagenta black +color error brightwhite red # errors yell at you in red +color hdrdefault red black # headers +color indicator brightyellow magenta # currently selected message +color markers brightcyan black # the + for wrapped pager lines +color message brightcyan black # informational messages, not mail +color normal white black # plain text +color quoted green black # quoted text +color search brightgreen black # hilite search patterns in the pager +color signature red black # signature (after "-- ") is red +color status brightyellow blue # status bar is yellow *on blue* +color tilde blue black # ~'s after message body +color tree red black # thread tree in index menu is magenta +color signature brightred black +color underline yellow black +color header cyan black ^(From|Subject): # Important headers +color body magenta black "(ftp|http)://[^ ]+" # picks up URLs +color body magenta black [-a-z_0-9.]+@[-a-z_0-9.]+ + +# 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 + +# Colorize smileys: :-) ;-) :-/ :-( +color body yellow black "[;:]-[)/(|]" +color body yellow black "[;:][)/(|]" +color body green black "[[:alpha:]]\+://[^ ]*" + +color index brightyellow black ~N # New +color index yellow black ~O # Old +color index magenta black ~F +color index blue black ~T +color index red black ~D + diff --git a/.mutt/colorSimple2 b/.mutt/colorSimple2 new file mode 100644 index 0000000..ec910c4 --- /dev/null +++ b/.mutt/colorSimple2 @@ -0,0 +1,67 @@ +## ================= +## Color definitions +## ================= + +## Format: +## color object foreground background +## Objects names for mutt 0.90 are: +## attachment, body, bold, error, header, hdrdefault, indicator, +## markers, message, normal, quoted, quoted1, ..., quotedN, +## search, signature, status, subject, tilde, tree, underline. + +## Color names: +## white black green magenta blue cyan yellow red default colorx + +# +# pager-coloring +# + +# color to yellow black # pager header WISH! +# color subject yellow black # pager header WISH! +# color cc yellow black # pager header +# color date yellow black # pager header +# color From red black # pager header +color hdrdefault green black # pager header +# color header blue black "^cc: " +# color header yellow black "^date: " +color header red black "^from: " +# color header red black "^reply-to: " +color header red black "^subject: " +# color header yellow black "^to: " +# color header magenta black "^x-mailer: " +# color header black black "^message-id: .*pine" + +# color body white black # pager body +color attachment green black # pager body +color normal white black # pager body +color quoted yellow black # pager body +color quoted1 yellow black # pager body +color quoted2 yellow black # pager body +color quoted3 yellow black # pager body +color signature blue black # pager body +color tilde blue black # pager body + +## Emphasis +color bold red black # .. +color underline yellow black # + +# +# index-coloring +# + +color error red white # global + +color indicator white blue # index +color markers red black # index +color message white blue # index +color status white blue # index status bar default: black white +color tree red black # index + +# mail to myself +# color index green black '~p' + +# colors +color index white black '~c name@domain.tld' +color index white black '~t name@domain.tld' +color index white black '~f name@domain.tld' + diff --git a/.muttrc b/.muttrc new file mode 100644 index 0000000..ee2db19 --- /dev/null +++ b/.muttrc @@ -0,0 +1,126 @@ + +## GLOBAL +set hidden_host # When set, mutt will skip the host name part of ``$hostname'' variable when adding the domain part to addresses. +set move=no +set quit=ask-yes +set timeout=15 +set imap_authenticators="login" +set imap_passive="no" +unset mark_old # Controls whether or not mutt marks new unread messages as old if you exit a mailbox without reading them. +set tilde +auto_view text/html +alternative_order text/plain text/enriched text text/html # Show the "text/plain" part *before* the "text/html" part +set realname="Mathieu Maret" +#set signature="~/Desktop/Documents/signature_perso" +set reply_regexp="^((re|aw|sv|ang):[ \t]*)+" +# get rid of auto '--' when composing mail +set sig_dashes=yes +set abort_nosubject=yes +set abort_unmodified=yes +set postpone=ask-no +set tmpdir="~/.mutt/tmp/" +set sort=threads +set sort_aux=mailbox-order +set editor="vim + -c 'set ft=mail tw=80' -c ':0/^$'" +unset metoo +#unset confirmappend +#set help = no +charset-hook US-ASCII ISO-8859-1 +charset-hook x-unknown ISO-8859-1 +set allow_8bit +set locale="fr_FR.UTF-8" +set charset="utf-8" +charset-hook us-ascii iso-8859-1 +charset-hook x-unknown iso-8859-1 +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 + + + + +## ACCOUNT +# GMAIL +set imap_user = 'mathieu.maret@gmail.com' +#set imap_pass = 'yourpass' +set spoolfile = imaps://imap.gmail.com:993/INBOX +set folder = imaps://imap.gmail.com:993 +#set record="imaps://imap.gmail.com/[Gmail]/Sent Mail" +set maildir_trash = yes +unset record +set postponed="imaps://imap.gmail.com/[Gmail]/Drafts" +set header_cache="~/.mutt/cache/headers" +set header_cache = yes +set message_cachedir="~/.mutt/cache/bodies" +set certificate_file=~/.mutt/certificates +set imap_check_subscribed="yes" +set imap_list_subscribed="yes" +mailboxes ! +set smtp_url = smtp://mathieu.maret@smtp.gmail.com:587/ + +## VIEW MAIL +set smileys="(>From)|(:[-^]?[][)(><}{|/DP])" +set pager_context=1 # number of lines that overlap on paging +set pager_index_lines=8 +set pager_stop # "next_page" won't jump to next message at end of messages + +## REPLY +set edit_headers +set attribution="%n wrote:" # attribution format : on day, name wrote (alias=%a if you want to add that) +set indent_string="> " +set from="Mathieu Maret " + +## INDEX +set index_format="%4C %Z [%D] %-15.15n %s" +# When viewing the index, mails are marked +# Z -not sent to me, T - sent only to me, G - sent to me +# and others(Group), C - cc'ed to me, F - from me +set to_chars=" +-.F" +set date_format="%d/%b - %H:%M" + +## HEADERS +ignore * +unignore From: To Cc Reply-To Mail-Followup-To Subject User-Agent X-Mailer Date X-Spam-Level: +hdr_order Date From: To Cc Reply-To Mail-Followup-To User-Agent X-Mailer X-Spam-Level: Subject + +## BINDINGS +bind pager previous-line +bind pager next-line + +bind index F flag-message +bind pager F flag-message +macro attach W /home/paul/Desktop/Téléchargements/ + +## SIDEBAR +# set up the sidebar, default not visible +#set sidebar_width=24 +#set sidebar_visible=yes +#set sidebar_delim='|' +# color of folders with new mail +#color sidebar_new yellow 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 +# b toggles sidebar visibility +macro index b 'toggle sidebar_visible' +macro pager b 'toggle sidebar_visible' +bind index B bounce-message + + +## COLORS + +source ~/.mutt/colorSimple2 +#source ~/.mutt/colors/themes.256 +#source ~/.mutt/colors/calmar.light +