From b065b14e616ef50fe81671a3f0072ac03e0dc784 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 29 Apr 2019 08:14:11 -0400 Subject: [PATCH] Update mail config --- mail/.config/afew/config | 29 ++++ mail/.config/alot/config | 273 +++++++++++++++++++++++++++++++++++ mail/.notmuch-config | 4 +- mail/.notmuch-config.example | 20 --- 4 files changed, 304 insertions(+), 22 deletions(-) create mode 100644 mail/.config/afew/config create mode 100644 mail/.config/alot/config delete mode 100644 mail/.notmuch-config.example diff --git a/mail/.config/afew/config b/mail/.config/afew/config new file mode 100644 index 0000000..2ffefdd --- /dev/null +++ b/mail/.config/afew/config @@ -0,0 +1,29 @@ +[global] + +[SpamFilter] +[KillThreadsFilter] +[ListMailsFilter] +[ArchiveSentMailsFilter] +sent_tag = sent + +# add specific tags + +[Filter.0] +query = 'subject:alot' +tags = +alot +message = alot mails + +[Filter.1] +query = 'to:notmuch@notmuchmail.org AND (subject:emacs OR subject:elisp OR "(defun" OR "(setq" OR PATCH)' +tags = -inbox;-new;+notmuch +message = notmuch emacs stuff + +[MailMover] +folders = Inbox Archive Sent Drafts Trash +rename = True +max_age = 30 +#Inbox = 'tag:spam':Junk 'NOT tag:inbox':Archive 'tag:trash':Trash +#Junk = 'NOT tag:spam AND tag:inbox':Inbox 'NOT tag:spam':Archive + +# what's still new goes into the inbox +[InboxFilter] diff --git a/mail/.config/alot/config b/mail/.config/alot/config new file mode 100644 index 0000000..91112a8 --- /dev/null +++ b/mail/.config/alot/config @@ -0,0 +1,273 @@ +#theme=mutt +quit_on_last_bclose = True +#theme=sup +body_mimetype=text/plain +#theme = sup +#prefer_plaintext=True +#theme = solarized +search_threads_sort_order = newest_first +complete_matching_abook_only = False + +#thread_statusbar = [{buffer_no}: thread:{tid}] {subject} total: {total_messages}, itags: {intersection_tags} ttags: {thread_tags} +#thread_statusbar = [{buffer_no}: thread:{tid}] {subject} total: {total_messages}, tags: {thread_tags} + +ansi_background=False + +show_count_in_tag_list = messages +#initial_command = search tag:inbox ; search tag:sent +#bug_on_exit = true +#editor_cmd = /usr/bin/vim -f -c 'set filetype=mail' + +#editor_cmd = emacs +4 +#editor_spawn = False +#editor_in_thread = False + +#show_statusbar = false +#quote_prefix = '|' +#compose_ask_tags = True + +#editor_in_thread = False +#editor_spawn = True +#editor_cmd = vim + +edit_headers_whitelist = Attach,From,To,Subject +#edit_headers_whitelist = , +edit_headers_blacklist = ' ' +#display_content_in_threadline = True + +displayed_headers = To,Cc,Bcc,Subject,Tags,Date,Message-Id + +notify_timeout = 4 +#show_statusbar = False + +#timestamp_format = '%c' + +#print_cmd = muttprint -F Utopia -a From_Date_*Subject*_/Tags/ +print_cmd = muttprint -2 -F Utopia -a From_Date_*Subject* -p TO_FILE:~/print.ps + +prompt_suffix = "> " + +reply_force_address = true +forward_force_address = true +bounce_force_address = true + +thread_subject= oldest +#user_agent = alot/{version} + +[accounts] + + [[onec]] + realname = Colin Powell + address = colin@onec.me + gpg_key = 7B405BE1 + sign_by_default = True + type = sendmail + sendmail_command = msmtp --account=onec -t + draft_box = maildir:///home/powellc/Mail/colin@onec.me/Drafts + sent_box = maildir:///home/powellc/Mail/colin@onec.me/Sent + + +[bindings] + q=bclose;refresh + ', a' = "call hooks.pa(ui)" + '[' = compose --template bpp + M = compose --spawn=1 + T = search is:todo + Y = search is:travel + A = search is:alot + S = search is:sent + % = "shellescape '/home/powellc/var/documents/scripts/checkmail.sh'; refresh" + 'meta left' = bprevious + 'meta right' = bnext + 'meta 1' = buffer 1 + 'meta 2' = buffer 2 + 'meta 3' = buffer 3 + 'meta 4' = buffer 4 + 'meta 5' = buffer 5 + 'g g' = move first + + [[search]] + #H = untag --all LA + & = toggletags killed + ! = toggletags flagged + s = toggletags unread + t = toggletags todo + y = toggletags travel + F = toggletags flat + D = toggletags delete + #enter = "select; fold NOT is:unread" + + [[thread]] + ', t' = "call hooks.translate(ui)" + ', w' = "call hooks.whereisit(ui)" + #H = "call ui.current_buffer.get_selected_message().test_parser()" + #G = "pipeto 'git am'" + t = toggletags todo + F = toggletags flat + a = toggletags inbox + y = toggletags travel + v = verify + ' ' = fold;move next;unfold + $ = call hooks.github(ui) + U = call hooks.unsubscribe() + D = call hooks.dimapseminar(ui) + u = pipeto urlscan 2> /dev/null + +######################################################## +16_base03 = 'dark gray' +16_base02 = 'black' +16_base01 = 'light green' +16_base00 = 'yellow' +16_base0 = 'light blue' +16_base1 = 'light cyan' +16_base2 = 'light gray' +16_base3 = 'white' +16_yellow = 'brown' +16_orange = 'light red' +16_red = 'dark red' +16_magenta = 'dark magenta' +16_violet = 'light magenta' +16_blue = 'dark blue' +16_cyan = 'dark cyan' +16_green = 'dark green' + +# Use a slightly different mapping here to be able to use "bold" in 256c mode +256_base03 = 'dark gray' +256_base02 = 'black' +256_base01 = 'light green' +256_base00 = 'yellow' +256_base0 = 'g66' +256_base1 = 'g70' +256_base2 = 'light gray' +256_base3 = 'white' +256_yellow = 'brown' +256_orange = 'light red' +256_red = 'dark red' +256_magenta = 'dark magenta' +256_violet = 'light magenta' +256_blue = 'dark blue' +256_cyan = '#088' +256_green = 'dark green' +######################################################## +# +# ⅏ 🚂🚠 +# 🔘 🔥 +[tags] + [[flagged]] + translated = ⚑ + normal = '','','light red','','dark red','' + [[inbox]] + translated = ➤#📨●◉↘ + normal = "", "", "", "", "", "" + [[sent]] + translated = ↗#⇗ + normal = '','', 'dark blue', '', 'dark blue', '' + [[unread]] + translated = '' + [[replied]] + translated = ⏎ + normal = '','', 'dark cyan', 'default', 'dark blue', 'default' + [[encrypted]] + translated = 🔒#🔑#⚷ +# normal = "", "", "", "", "#0ff", "#006" + [[signed]] + translated = ® + normal = "", "", "", "", "", "" + [[ring]] + translated = 💍#◉ + [[killed]] + translated = τ # ☠ +# normal = "", "", "", "", g70, g27 + [[lists]] + translated = 📃#⎎ + + [[attachment]] + translated = 📎 + normal = "", "", 'light blue', '', 'light blue', '' + + [[bug]] + translated = 🐜 + normal = "", "", "dark red", "", "light red", "" + [[todo]] + normal = "", "", white, "dark magenta", white, "dark magenta" + + [[C4P]] + normal = "", "", "", "", g74, g23 + + [[lists/seminars]] + normal = "", "", "", "", "", "#6da" + + [[G+]] + normal = "", "", "", "", "#0ff", "#00f" + + [[peergroup]] + normal = "", "", "", "", "#006", "#08d" + + [[soc]] + normal = "", "", "", "", "#6da", "#08d" + + [[foo]] + translated = ⚽ + #normal = "", "", "", "", "#6da", "#08d" + + [[lists/wols]] + translated = wols + normal = "", "", "", "", "#6da", "#08d" + + [[lists/sicsa]] + translated = UoE/sicsa + normal = "", "", "", "", "#6da", "#060" + + [[lists/gradschool]] + translated = UoE/gradschool + normal = "", "", "", "", "#6da", "#060" + + [[lists/students]] + translated = UoE/students + normal = "", "", "", "", g74, "#080" + + [[lists/phd-degree-students]] + translated = UoE/PhD + normal = "", "", "", "", g74, "#080" + [[automata]] + normal = "", "", "", "", g74, "#060" + + [[lists/atp-vim-list]] + translated = atp + normal = "", "", "", "", "", "#606" + + [[lists/inf-general]] + translated = inf + + [[lists/alot]] + translated = alot + normal = "", "", "", "", "#80d,bold", "#df6" + + [[lists/urwid]] + normal = "", "", "", "", "#080", "#606" + + [[travel]] + translated = ✈ + + [[lists/mutt-kz]] + normal = "", "", "", "", "#fff", "#606" + + [[notmuch::bug]] + translated = nm:bug + normal = "", "", "light red, bold", "light blue", "light red, bold", "#88d" + + [[lists/notmuch.*]] + translation = notmuch::(.*), \1 + normal = "", "", "", "", "#fff", "#88d" + + [[lists/lfcs-.*]] + translation = lists/lfcs-(.*), LFCS-\1 + normal = "", "", "", "", "#6da", "#060" + + [[lists/labri]] + translated = labri + normal = "", "", "", "", "#6da", "#060" + + [[lists/dimapseminar]] + translated = dimap + normal = "", "", "", "", "#08f,bold", "" + diff --git a/mail/.notmuch-config b/mail/.notmuch-config index a289dbe..d5b0b89 100644 --- a/mail/.notmuch-config +++ b/mail/.notmuch-config @@ -7,11 +7,11 @@ primary_email=colin@onec.me other_email=colin@timberwyckfarm.com;hello@colinforcastine.com,colin@unbl.ink [new] -tags=inbox +tags=new ignore=.mbsyncstate;.isncuidmap.db;.uidvalidity [search] -exclude_tags=deleted;spam;muted +exclude_tags=deleted;trash;spam;muted [maildir] synchronize_flags=true diff --git a/mail/.notmuch-config.example b/mail/.notmuch-config.example deleted file mode 100644 index a289dbe..0000000 --- a/mail/.notmuch-config.example +++ /dev/null @@ -1,20 +0,0 @@ -[database] -path=/home/powellc/Mail - -[user] -name=Colin Powell -primary_email=colin@onec.me -other_email=colin@timberwyckfarm.com;hello@colinforcastine.com,colin@unbl.ink - -[new] -tags=inbox -ignore=.mbsyncstate;.isncuidmap.db;.uidvalidity - -[search] -exclude_tags=deleted;spam;muted - -[maildir] -synchronize_flags=true - -[crypto] -gpg_path=/usr/local/bin/gpg