parent
bc77e6e054
commit
b51bd71da1
9 changed files with 270 additions and 0 deletions
@ -0,0 +1 @@ |
||||
*.creds |
@ -0,0 +1,44 @@ |
||||
# Source the credentials file (Not in git repo) |
||||
source ./account.jonathan.creds |
||||
|
||||
#IMAP |
||||
set imap_user=$my_user |
||||
set imap_pass=$my_pass |
||||
set folder=imaps://$my_user@imap.1and1.co.uk:993 |
||||
|
||||
#SMTP |
||||
set realname = 'Jonathan Hodgson' |
||||
set from = jonathan@lunarweb.co.uk |
||||
set use_from = yes |
||||
|
||||
set smtp_url=smtps://$my_user:$my_pass@auth.smtp.1and1.co.uk |
||||
set ssl_force_tls = yes |
||||
|
||||
# The main folder |
||||
set spoolfile = "+INBOX" |
||||
|
||||
# Check all mail boxes |
||||
set imap_check_subscribed |
||||
|
||||
# Store message headers locally to speed things up. |
||||
# If hcache is a folder, Mutt will create sub cache folders for each account which may speeds things up even more. |
||||
set header_cache = ~/.cache/mutt/jonathan.fellowshipproductions/headers |
||||
|
||||
# Store messages locally to speed things up, like searching message bodies. |
||||
# Can be the same folder as header_cache. |
||||
# This will cost important disk usage according to your e-mail amount. |
||||
set message_cachedir = ~/.cache/mutt/jonathan.fellowshipproductions/bodies |
||||
|
||||
# Specify where to save and/or look for postponed messages. |
||||
set postponed = +Drafts |
||||
|
||||
# Allow Mutt to open a new IMAP connection automatically. |
||||
unset imap_passive |
||||
|
||||
# Keep the IMAP connection alive by polling intermittently (time in seconds). |
||||
set imap_keepalive = 300 |
||||
|
||||
# How often to check for new mail (time in seconds). |
||||
set mail_check = 120 |
||||
|
||||
set record = +Sent%20Items |
@ -0,0 +1,5 @@ |
||||
text/html; w3m -I %{charset} -T text/html; copiousoutput; |
||||
|
||||
text/html; mv %s %s.html && qutebrowser %s.html > /dev/null; needsterminal; |
||||
|
||||
image/*; ~/.config/mutt/muttimage.sh %s ; copiousoutput |
@ -0,0 +1,151 @@ |
||||
# vim: filetype=muttrc |
||||
|
||||
# |
||||
# |
||||
# make sure that you are using mutt linked against slang, not ncurses, or |
||||
# suffer the consequences of weird color issues. use "mutt -v" to check this. |
||||
|
||||
# custom body highlights ----------------------------------------------- |
||||
# highlight my name and other personally relevant strings |
||||
#color body yellow default "(ethan|schoonover)" |
||||
# custom index highlights ---------------------------------------------- |
||||
# 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 J_cream brightwhite "~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 J_magent "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~F !~p !~P" |
||||
## messages which are in reference to my mails |
||||
#color index J_magent default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" !~N !~T !~F !~p !~P" |
||||
#color index J_magent brightwhite "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~N !~T !~F !~p !~P" |
||||
#color index J_magent cyan "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~T !~F !~p !~P" |
||||
#color index J_magent red "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~F !~p !~P" |
||||
|
||||
# for background in 16 color terminal, valid background colors include: |
||||
# base03, bg, black, any of the non brights |
||||
|
||||
# basic colors --------------------------------------------------------- |
||||
color normal brightyellow default |
||||
color error red default |
||||
color tilde black default |
||||
color message cyan default |
||||
color markers red white |
||||
color attachment white default |
||||
color search brightmagenta default |
||||
#color status J_black J_status |
||||
color status brightyellow black |
||||
color indicator brightblack yellow |
||||
color tree yellow default # arrow in threads |
||||
|
||||
# basic monocolor screen |
||||
mono bold bold |
||||
mono underline underline |
||||
mono indicator reverse |
||||
mono error bold |
||||
|
||||
# index ---------------------------------------------------------------- |
||||
|
||||
#color index red default "~D(!~p|~p)" # deleted |
||||
#color index black default ~F # flagged |
||||
#color index brightred default ~= # duplicate messages |
||||
#color index brightgreen default "~A!~N!~T!~p!~Q!~F!~D!~P" # the rest |
||||
#color index J_base default "~A~N!~T!~p!~Q!~F!~D" # the rest, new |
||||
color index red default "~A" # all messages |
||||
color index brightred default "~E" # expired messages |
||||
color index blue default "~N" # new messages |
||||
color index blue default "~O" # old messages |
||||
color index brightmagenta default "~Q" # messages that have been replied to |
||||
color index brightgreen default "~R" # read messages |
||||
color index blue default "~U" # unread messages |
||||
color index blue default "~U~$" # unread, unreferenced messages |
||||
color index brightyellow default "~v" # messages part of a collapsed thread |
||||
color index brightyellow default "~P" # messages from me |
||||
color index cyan default "~p!~F" # messages to me |
||||
color index cyan default "~N~p!~F" # new messages to me |
||||
color index cyan default "~U~p!~F" # unread messages to me |
||||
color index brightgreen default "~R~p!~F" # messages to me |
||||
color index red default "~F" # flagged messages |
||||
color index red default "~F~p" # flagged messages to me |
||||
color index red default "~N~F" # new flagged messages |
||||
color index red default "~N~F~p" # new flagged messages to me |
||||
color index red default "~U~F~p" # new flagged messages to me |
||||
color index black red "~D" # deleted messages |
||||
color index brightcyan default "~v~(!~N)" # collapsed thread with no unread |
||||
color index yellow default "~v~(~N)" # collapsed thread with some unread |
||||
color index green default "~N~v~(~N)" # collapsed thread with unread parent |
||||
# statusbg used to indicated flagged when foreground color shows other status |
||||
# for collapsed thread |
||||
color index red black "~v~(~F)!~N" # collapsed thread with flagged, no unread |
||||
color index yellow black "~v~(~F~N)" # collapsed thread with some unread & flagged |
||||
color index green black "~N~v~(~F~N)" # collapsed thread with unread parent & flagged |
||||
color index green black "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged |
||||
color index cyan black "~v~(~p)" # collapsed thread with unread parent, no unread inside, some to me directly |
||||
color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial) |
||||
#color index yellow default "~(~N)" # messages in threads with some unread |
||||
#color index green default "~S" # superseded messages |
||||
#color index red default "~T" # tagged messages |
||||
#color index brightred red "~=" # duplicated messages |
||||
|
||||
# message headers ------------------------------------------------------ |
||||
|
||||
#color header brightgreen default "^" |
||||
color hdrdefault brightgreen default |
||||
color header brightyellow default "^(From)" |
||||
color header blue default "^(Subject)" |
||||
|
||||
# body ----------------------------------------------------------------- |
||||
|
||||
color quoted blue default |
||||
color quoted1 cyan default |
||||
color quoted2 yellow default |
||||
color quoted3 red default |
||||
color quoted4 brightred default |
||||
|
||||
color signature brightgreen default |
||||
color bold black default |
||||
color underline black default |
||||
color normal default default |
||||
# |
||||
color body brightcyan default "[;:][-o][)/(|]" # emoticons |
||||
color body brightcyan default "[;:][)(|]" # emoticons |
||||
color body brightcyan default "[*]?((N)?ACK|CU|LOL|SCNR|BRB|BTW|CWYL|\ |
||||
|FWIW|vbg|GD&R|HTH|HTHBE|IMHO|IMNSHO|\ |
||||
|IRL|RTFM|ROTFL|ROFL|YMMV)[*]?" |
||||
color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon? |
||||
color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon? |
||||
|
||||
## pgp |
||||
|
||||
color body red default "(BAD signature)" |
||||
color body cyan default "(Good signature)" |
||||
color body brightblack default "^gpg: Good signature .*" |
||||
color body brightyellow default "^gpg: " |
||||
color body brightyellow red "^gpg: BAD signature from.*" |
||||
mono body bold "^gpg: Good signature" |
||||
mono body bold "^gpg: BAD signature from.*" |
||||
|
||||
# yes, an insance URL regex |
||||
color body red 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<>\"]" |
||||
# and a heavy handed email regex |
||||
#color body J_magent 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]\\])" |
||||
|
||||
# Various smilies and the like |
||||
#color body brightwhite default "<[Gg]>" # <g> |
||||
#color body brightwhite default "<[Bb][Gg]>" # <bg> |
||||
#color body yellow default " [;:]-*[})>{(<|]" # :-) etc... |
||||
# *bold* |
||||
#color body blue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" |
||||
#mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" |
||||
# _underline_ |
||||
#color body blue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" |
||||
#mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" |
||||
# /italic/ (Sometimes gets directory names) |
||||
#color body blue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" |
||||
#mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" |
||||
|
||||
# Border lines. |
||||
#color body blue default "( *[-+=#*~_]){6,}" |
||||
|
||||
#folder-hook . "color status J_black J_status " |
||||
#folder-hook gmail/inbox "color status J_black yellow " |
||||
#folder-hook gmail/important "color status J_black yellow " |
||||
|
@ -0,0 +1,8 @@ |
||||
#! /bin/sh |
||||
|
||||
#### Determine size of Terminal |
||||
height=`stty size | awk 'BEGIN {FS = " "} {print $1;}'` |
||||
width=`stty size | awk 'BEGIN {FS = " "} {print $2;}'` |
||||
|
||||
### Display Image / offset with mutt bar |
||||
echo -e "2;3;\n0;1;210;20;$((width*7-250));$((height*14-100));0;0;0;0;$1\n4;\n3;" | /usr/lib/w3m/w3mimgdisplay & |
@ -0,0 +1,61 @@ |
||||
# Folder hooks |
||||
folder-hook 'account.jonathan' 'source ~/.mutt/accounts/account.jonathan.conf' |
||||
#I will put other accounts here |
||||
|
||||
# Default account |
||||
source ~/.mutt/accounts/account.jonathan.conf |
||||
|
||||
#Default Editor |
||||
set editor = "$EDITOR" |
||||
|
||||
set ssl_starttls = yes |
||||
set ssl_force_tls = yes |
||||
set imap_check_subscribed |
||||
set mail_check = 120 |
||||
set mailcap_path = ~/.mutt/mailcap |
||||
set timeout = 300 |
||||
set imap_keepalive = 300 |
||||
set move = no |
||||
set include |
||||
set sort = 'threads' |
||||
set sort_aux = 'reverse-last-date-received' |
||||
set auto_tag = yes |
||||
|
||||
set date_format="%m/%d %I:%M" |
||||
set index_format="%2C %Z %d %-15.15F %s (%-4.4c)" |
||||
|
||||
#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 |
||||
|
||||
mono bold bold |
||||
mono underline underline |
||||
mono indicator reverse |
||||
color index yellow default '.*' |
||||
color index_author red default '.*' |
||||
color index_number blue default |
||||
color index_subject cyan default '.s' |
||||
color index_size green default |
||||
color normal default default |
||||
color body brightred default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ |
||||
color body brightblue default (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+ |
||||
|
||||
source ~/.mutt/muttcol |
||||
|
||||
bind editor <Tab> complete-query |
||||
bind editor ^T complete |
||||
bind editor <space> noop |
||||
bind index G last-entry |
||||
bind index g noop |
||||
bind index gg first-entry |
||||
bind index d half-down |
||||
bind index u half-up |
||||
bind index D delete-message |
||||
bind index U undelete-message |
||||
bind index F search |
||||
bind index R group-reply |
||||
# }}} |
Loading…
Reference in new issue