From f9070fac47dc1fb61c4670945e7909f7d8ae158b Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Fri, 13 May 2016 09:55:30 +0100 Subject: [PATCH] Initially working conf for mbsync and local mutt --- offline_mail/.mail_pass/musoft.gpg | Bin 0 -> 382 bytes offline_mail/.mail_pass/personal-gmail.gpg | Bin 0 -> 364 bytes offline_mail/.mail_pass/student.gpg | Bin 0 -> 365 bytes offline_mail/.mbsync/musoft.mbsync | 49 +++++++ offline_mail/.mbsync/personal-gmail.mbsync | 49 +++++++ offline_mail/.mbsync/student.mbsync | 20 +++ offline_mail/.mutt/account.musoft | 13 ++ offline_mail/.mutt/account.personal | 13 ++ offline_mail/.mutt/account.personal-gmail | 13 ++ offline_mail/.mutt/account.student | 13 ++ offline_mail/.mutt/gpg.rc | 7 + offline_mail/.mutt/mailcap | 1 + offline_mail/.mutt/muttrc | 41 ++++++ offline_mail/.mutt/solarized.muttrc | 151 +++++++++++++++++++++ 14 files changed, 370 insertions(+) create mode 100644 offline_mail/.mail_pass/musoft.gpg create mode 100644 offline_mail/.mail_pass/personal-gmail.gpg create mode 100644 offline_mail/.mail_pass/student.gpg create mode 100644 offline_mail/.mbsync/musoft.mbsync create mode 100644 offline_mail/.mbsync/personal-gmail.mbsync create mode 100644 offline_mail/.mbsync/student.mbsync create mode 100644 offline_mail/.mutt/account.musoft create mode 100644 offline_mail/.mutt/account.personal create mode 100644 offline_mail/.mutt/account.personal-gmail create mode 100644 offline_mail/.mutt/account.student create mode 100644 offline_mail/.mutt/gpg.rc create mode 100644 offline_mail/.mutt/mailcap create mode 100644 offline_mail/.mutt/muttrc create mode 100644 offline_mail/.mutt/solarized.muttrc diff --git a/offline_mail/.mail_pass/musoft.gpg b/offline_mail/.mail_pass/musoft.gpg new file mode 100644 index 0000000000000000000000000000000000000000..55282fc6f38013afe9bad3d3dd4054d5c90f91ba GIT binary patch literal 382 zcmV-^0fGL70Sp7T%)}e0opU4s2meiRvINVTojle$FMb8Ta`~e4R|cEq z4+0~lW_{sCYAsYIYLFVxU!XI8@9%aPf}JR10mKCTUJfiM%jBxAC%xdB(EYgwd&r9i$=(PZ+xr^@1n$3H=~8>M*;be$K0ck9u!(4&clyJ>;n%DhD@8 z_nxDr{t-@qc=NMzxUNi{31lyre22a zU;??ll%FhIZG(&K<)t!3&PL@m>1|C9j=zi5+#3239*dc64#Vp8CqOi|8{|$47TuZ* zNxx|ZbS&l}X(>5g>$nvB-GpO{Xp6IY{<=f2W6Z3(${;RudNs-%Byn~%| zqoYA6uNP=3;GV%7o&_*TU^w4y#;%p)=w+5I`^kyU7X;4X?5I_7A&RywNSvsRcWiP6 zaxTFV4^GbMSX;m~L4>3uOC8c%0XGvW{?$Ka7SN+&HHB<(S7YGz&Nw&Fe2)@BO7)#J6{vIS-bAZqb|f-f>x zyN4*08~-Tfvj8sgLnL-xf%Q(2nAPo{L|;AE>L2a@o}^SotQfBhL3^MNVZ*;o(WAmG z@)AS%w)2I)$4kz<$V-dcfNI}~&C@$5uJ75~@~omts8R@K`o8=EW+K)+{ci!)(ayug zDf{3CjB)H|ZbnN)CjrOL1>VwJ0n*F(M4>LZtCIm#aA%I84v@WU7Yq{Sjl?5|e`->t zV=wVxl1o-fAb`8(nN-iYpD3$)6sRCV5tA-Ctd7#};S2hnU0Km!)ETZhCL>-GK+3z4 L$DCA?b%*bP#HYB( literal 0 HcmV?d00001 diff --git a/offline_mail/.mbsync/musoft.mbsync b/offline_mail/.mbsync/musoft.mbsync new file mode 100644 index 0000000..41b3dc2 --- /dev/null +++ b/offline_mail/.mbsync/musoft.mbsync @@ -0,0 +1,49 @@ +IMAPAccount gmail +Host imap.gmail.com +User max@musoft.co.uk +PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.mail_pass/musoft.gpg" +UseIMAPS yes +CertificateFile /etc/ssl/certs/ca-certificates.crt + +IMAPStore gmail-remote +Account gmail + +MaildirStore gmail-local +Path ~/mail/musoft/ +Inbox ~/mail/musoft/Inbox + +Channel gmail-sent +Master :gmail-remote:"[Gmail]/Sent Mail" +Slave :gmail-local:Sent +SyncState * +Create Slave + +Channel gmail-all-mail +Master :gmail-remote:"[Gmail]/All Mail" +Slave :gmail-local:"All Mail" +SyncState * +Create Slave + +Channel gmail-all-drafts +Master :gmail-remote:"[Gmail]/Drafts" +Slave :gmail-local:"Drafts" +SyncState * +Create Slave + +Channel gmail-all-spam +Master :gmail-remote:"[Gmail]/Spam" +Slave :gmail-local:"Spam" +SyncState * +Create Slave + +Channel gmail-default +Master :gmail-remote: +Slave :gmail-local: +Patterns "INBOX" +SyncState * +Create Slave + +Group gmail +Channel gmail-default +Channel gmail-sent +Channel gmail-all-mail diff --git a/offline_mail/.mbsync/personal-gmail.mbsync b/offline_mail/.mbsync/personal-gmail.mbsync new file mode 100644 index 0000000..f809127 --- /dev/null +++ b/offline_mail/.mbsync/personal-gmail.mbsync @@ -0,0 +1,49 @@ +IMAPAccount gmail +Host imap.gmail.com +User maxf130@gmail.com +PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.mail_pass/personal-gmail.gpg" +UseIMAPS yes +CertificateFile /etc/ssl/certs/ca-certificates.crt + +IMAPStore gmail-remote +Account gmail + +MaildirStore gmail-local +Path ~/mail/personal-gmail/ +Inbox ~/mail/personal-gmail/Inbox + +Channel gmail-sent +Master :gmail-remote:"[Gmail]/Sent Mail" +Slave :gmail-local:Sent +SyncState * +Create Slave + +Channel gmail-all-mail +Master :gmail-remote:"[Gmail]/All Mail" +Slave :gmail-local:"All Mail" +SyncState * +Create Slave + +Channel gmail-all-drafts +Master :gmail-remote:"[Gmail]/Drafts" +Slave :gmail-local:"Drafts" +SyncState * +Create Slave + +Channel gmail-all-spam +Master :gmail-remote:"[Gmail]/Spam" +Slave :gmail-local:"Spam" +SyncState * +Create Slave + +Channel gmail-default +Master :gmail-remote: +Slave :gmail-local: +Patterns "INBOX" +SyncState * +Create Slave + +Group gmail +Channel gmail-default +Channel gmail-sent +Channel gmail-all-mail diff --git a/offline_mail/.mbsync/student.mbsync b/offline_mail/.mbsync/student.mbsync new file mode 100644 index 0000000..f0afe9e --- /dev/null +++ b/offline_mail/.mbsync/student.mbsync @@ -0,0 +1,20 @@ +IMAPAccount student +Host outlook.office365.com +User mf195@student.le.ac.uk +PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.mail_pass/student.gpg" +UseIMAPS yes +CertificateFile /etc/ssl/certs/ca-certificates.crt + +IMAPStore student-remote +Account student + +MaildirStore student-local +Path ~/mail/student/ +Inbox ~/mail/student/Inbox + +Channel student +Master :student-remote: +Slave :student-local: +Patterns "INBOX" "Drafts" "Sent" "Trash" "Junk E-Mail" +Create Both +SyncState * diff --git a/offline_mail/.mutt/account.musoft b/offline_mail/.mutt/account.musoft new file mode 100644 index 0000000..e176dab --- /dev/null +++ b/offline_mail/.mutt/account.musoft @@ -0,0 +1,13 @@ +set from = "max@musoft.co.uk" +set realname = "Maximilian Friedersdorff" + +set spoolfile = "+musoft/INBOX" +set postponed = "+musoft/Drafts" +set trash = "" +set record = "" + +set header_cache = ~/.mutt/musoft/cache/headers +set message_cachedir = ~/.mutt/musoft/cache/bodies +set certificate_file = ~/.mutt/musoft/certificates + +set pgp_sign_as="0x2EA4B143" diff --git a/offline_mail/.mutt/account.personal b/offline_mail/.mutt/account.personal new file mode 100644 index 0000000..21cf92c --- /dev/null +++ b/offline_mail/.mutt/account.personal @@ -0,0 +1,13 @@ +set from = "max@friedersdorff.com" +set realname = "Maximilian Friedersdorff" + +set spoolfile = "+personal/Inbox" +set postponed = "+personal/Drafts" +set trash = "+personal/Trash" +set record = "+personal/Sent" + +set header_cache = ~/.mutt/personal/cache/headers +set message_cachedir = ~/.mutt/personal/cache/bodies +set certificate_file = ~/.mutt/personal/certificates + +set pgp_sign_as="0x153CBB66" diff --git a/offline_mail/.mutt/account.personal-gmail b/offline_mail/.mutt/account.personal-gmail new file mode 100644 index 0000000..216a82d --- /dev/null +++ b/offline_mail/.mutt/account.personal-gmail @@ -0,0 +1,13 @@ +set from = "maxf130@gmail.com" +set realname = "Maximilian Friedersdorff" + +set spoolfile = "+personal-gmail/INBOX" +set postponed = "+personal-gmail/[Gmail]/Drafts" +set trash = "" +set record = "" + +set header_cache = ~/.mutt/personal-gmail/cache/headers +set message_cachedir = ~/.mutt/personal-gmail/cache/bodies +set certificate_file = ~/.mutt/personal-gmail/certificates + +set pgp_sign_as="0x153CBB66" diff --git a/offline_mail/.mutt/account.student b/offline_mail/.mutt/account.student new file mode 100644 index 0000000..0a4cd87 --- /dev/null +++ b/offline_mail/.mutt/account.student @@ -0,0 +1,13 @@ +set from = "mf195@student.le.ac.uk" +set realname = "Maximilian Friedersdorff" + +set spoolfile = "+student/Inbox" +set postponed = "+student/Drafts" +set trash = "+student/Trash" +set record = "+student/Sent" + +set header_cache = ~/.mutt/student/cache/headers +set message_cachedir = ~/.mutt/student/cache/bodies +set certificate_file = ~/.mutt/student/certificates + +set pgp_sign_as="0x33FA1EFF" diff --git a/offline_mail/.mutt/gpg.rc b/offline_mail/.mutt/gpg.rc new file mode 100644 index 0000000..b2900e9 --- /dev/null +++ b/offline_mail/.mutt/gpg.rc @@ -0,0 +1,7 @@ +set crypt_autosign +set crypt_autopgp +set crypt_replyencrypt +set crypt_replysign +set crypt_replysignencrypted +set crypt_timestamp +set pgp_use_gpg_agent diff --git a/offline_mail/.mutt/mailcap b/offline_mail/.mutt/mailcap new file mode 100644 index 0000000..c9f551b --- /dev/null +++ b/offline_mail/.mutt/mailcap @@ -0,0 +1 @@ +text/html; w3m -I %{charset} -T text/html; copiousoutput diff --git a/offline_mail/.mutt/muttrc b/offline_mail/.mutt/muttrc new file mode 100644 index 0000000..b7eed3d --- /dev/null +++ b/offline_mail/.mutt/muttrc @@ -0,0 +1,41 @@ +set folder = ~/mail + +folder-hook personal/* source ~/.mutt/account.personal +folder-hook personal-gmail/* source ~/.mutt/account.personal-gmail +folder-hook student/* source ~/.mutt/account.student +folder-hook musoft/* source ~/.mutt/account.musoft + +macro index \e1 '~/mail/personal/Inbox' +macro index \e2 '~/mail/personal-gmail/Inbox' +macro index \e3 '~/mail/student/Inbox' +macro index \e4 '~/mail/musoft/Inbox' + +source ~/.mutt/account.personal + + +macro index 'c' '?^K+' + +# Automatically render html emails. Not sure if this is a good idea +auto_view text/html +alternative_order text/plain text/enriched text/html + +# Solarized color theme +source ~/.mutt/solarized.muttrc + +# aliases +set alias_file=~/.mutt/aliases +set sort_alias= alias +source $alias_file + +# View urls more easily with urlview +macro index \cb "|urlview\n" +macro pager \cb "|urlview\n" + +set text_flowed=yes +set editor="vim +':set textwidth=72' +'set fo=aw'" + +# Encryption +source ~/.mutt/gpg.rc + +# Speed up folder switch +set sleep_time = 0 diff --git a/offline_mail/.mutt/solarized.muttrc b/offline_mail/.mutt/solarized.muttrc new file mode 100644 index 0000000..e9d6def --- /dev/null +++ b/offline_mail/.mutt/solarized.muttrc @@ -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]>" # +#color body brightwhite default "<[Bb][Gg]>" # +#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 " + -- 2.45.2