dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 46d7f6a517792b18a39c0c7339dce81827fda634
parent 9950c8717dcade3aa3eee62dfc3426fbc6f71cf0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 16 Jul 2020 09:07:51 +0200

Add mairix/mutt configuration, remove notmuch

Diffstat:
M.config/mutt/muttrc | 46++++++++++------------------------------------
M.mairixrc | 6+++---
D.notmuch-config | 98-------------------------------------------------------------------------------
3 files changed, 13 insertions(+), 137 deletions(-)

diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc @@ -131,7 +131,6 @@ bind attach,index,pager,browser \CU previous-page bind index,pager R group-reply bind index <tab> sync-mailbox -#macro index <tab> "<enter-command>unset wait_key<enter><sync-mailbox><shell-escape>dwmstatus-refresh<enter><enter-command>set wait_key<enter>" bind index B search-opposite bind index S sort-mailbox @@ -185,54 +184,29 @@ macro index U "<limit>all\n" "show all messages (undo limit)" #macro index,pager S "<save-message>=adamsgaard/Spam<enter>" "mark as spam" #macro index,pager H "<save-message>=adamsgaard/INBOX<enter>" "mark as non-spam" -# sync all accounts macro index O "<enter-command>unset wait_key<enter>\ -<shell-escape>tmux split-window -l 1 \"mbsync -a; dwmstatus-refresh\"; tmux select-pane -l<enter>\ -<enter-command>set wait_key<enter>" +<shell-escape>tmux split-window -l 1 \"mbsync -a\"; tmux select-pane -l<enter>\ +<enter-command>set wait_key<enter>" "sync all accounts" -# sync current inbox folder-hook adamsgaard 'macro index o "<enter-command>unset wait_key<enter>\ -<shell-escape>tmux split-window -l 1 \"mbsync adamsgaard:INBOX; dwmstatus-refresh\";\ +<shell-escape>tmux split-window -l 1 \"mbsync adamsgaard:INBOX\";\ tmux select-pane -l<enter>\ -<enter-command>set wait_key<enter>"' +<enter-command>set wait_key<enter>"' "sync current INBOX" -# view smtpd log macro index,pager \ l "<enter-command>unset wait_key<enter>\ <shell-escape>tmux split-window -l 10 \"tail -f /var/log/maillog\"; tmux select-pane -l<enter>\ -<enter-command>set wait_key<enter>" +<enter-command>set wait_key<enter>" "view smtpd log" -# rss link handling macro index,pager \ o "<enter-command>unset wait_key<enter>\ <pipe-message>sed -n \'s/\^URL: //p\' | plumb<enter>\ -<enter-command>set wait_key<enter>N"' +<enter-command>set wait_key<enter>N"' "open 'URL:' link" -# unsubscribe macro index,pager \ u "<enter-command>unset wait_key<enter>\ <pipe-message>grep http | grep unsub | sed 's/.*http/http/;s/)#//' | plumb<enter>\ -<enter-command>set wait_key<enter>N"' - -# notmuch-mutt integration, from `man notmuch-mutt` -#macro index L "<enter-command>set my_old_pipe_decode=\$pipe_decode \ -#my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ -#<shell-escape>notmuch-mutt -r --prompt search<enter>\ -#<change-folder-readonly>`echo \ -#${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\ -#<enter-command>set pipe_decode=\$my_old_pipe_decode \ -#wait_key=\$my_old_wait_key<enter>" "notmuch: search all mail" - -#macro index <F9> "<enter-command>set my_old_pipe_decode=\$pipe_decode \ -#my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ -#<pipe-message>notmuch-mutt -r thread<enter>\ -#<change-folder-readonly>`echo \ -#${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\ -#<enter-command>set pipe_decode=\$my_old_pipe_decode \ -#wait_key=\$my_old_wait_key<enter>" "notmuch: reconstruct thread" - -#macro index <F6> "<enter-command>set my_old_pipe_decode=\$pipe_decode \ -#my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ -#<pipe-message>notmuch-mutt tag -- -inbox<enter>\ -#<enter-command>set pipe_decode=\$my_old_pipe_decode \ -#wait_key=\$my_old_wait_key<enter>" "notmuch: remove message from inbox" +<enter-command>set wait_key<enter>N"' "unsubscribe by following link containing 'unsub' string" + +macro index \ef "<change-folder-readonly>$HOME/.cache/mairix/results<enter>\ +<shell-escape>mairix " "mairix: search all mail" # show recipient instead of sender in "Sent" folder view set date_format='%b %d %k:%M' diff --git a/.mairixrc b/.mairixrc @@ -1,4 +1,4 @@ base=~/.mail -maildir=adamsgaard/*...:geomail/*...:gmail/*...:noaa/*...:princeton/*...:riseup/*...:ucsd/*... -database=~/.cache/mairix.db -mfolder=~/.mail/mairix +maildir=*... +database=~/.cache/mairix/mairix.db +mfolder=~/.cache/mairix/results diff --git a/.notmuch-config b/.notmuch-config @@ -1,98 +0,0 @@ -# .notmuch-config - Configuration file for the notmuch mail system -# -# For more information about notmuch, see http://notmuchmail.org - -# Database configuration -# -# The only value supported here is 'path' which should be the top-level -# directory where your mail currently exists and to where mail will be -# delivered in the future. Files should be individual email messages. -# Notmuch will store its database within a sub-directory of the path -# configured here named ".notmuch". -# -[database] -path=.mail - -# User configuration -# -# Here is where you can let notmuch know how you would like to be -# addressed. Valid settings are -# -# name Your full name. -# primary_email Your primary email address. -# other_email A list (separated by ';') of other email addresses -# at which you receive email. -# -# Notmuch will use the various email addresses configured here when -# formatting replies. It will avoid including your own addresses in the -# recipient list of replies, and will set the From address based on the -# address to which the original email was addressed. -# -[user] -name=Anders Damsgaard -primary_email=anders@adamsgaard.dk -other_email=andersd@riseup.net;adc@geo.au.dk;anders.damsgaard@geo.au.dk;adamsgaard@ucsd.edu;andersdc@gmail.com;a.damsgaard@icloud.com;andersd@stanford.edu;andersd@princeton.edu;anders.damsgaard@noaa.gov;anders@geodatahub.dk;info@geodatahub.dk;support@geodatahub.dk - -# Configuration for "notmuch new" -# -# The following options are supported here: -# -# tags A list (separated by ';') of the tags that will be -# added to all messages incorporated by "notmuch new". -# -# ignore A list (separated by ';') of file and directory names -# that will not be searched for messages by "notmuch new". -# -# NOTE: *Every* file/directory that goes by one of those -# names will be ignored, independent of its depth/location -# in the mail store. -# -[new] -tags=unread;inbox; -ignore=.mbsyncstate;.uidvalidity - -# Search configuration -# -# The following option is supported here: -# -# exclude_tags -# A ;-separated list of tags that will be excluded from -# search results by default. Using an excluded tag in a -# query will override that exclusion. -# -[search] -exclude_tags=deleted;spam; - -# Maildir compatibility configuration -# -# The following option is supported here: -# -# synchronize_flags Valid values are true and false. -# -# If true, then the following maildir flags (in message filenames) -# will be synchronized with the corresponding notmuch tags: -# -# Flag Tag -# ---- ------- -# D draft -# F flagged -# P passed -# R replied -# S unread (added when 'S' flag is not present) -# -# The "notmuch new" command will notice flag changes in filenames -# and update tags, while the "notmuch tag" and "notmuch restore" -# commands will notice tag changes and update flags in filenames -# -[maildir] -synchronize_flags=true - -# Cryptography related configuration -# -# The following option is supported here: -# -# gpg_path -# binary name or full path to invoke gpg. -# -[crypto] -gpg_path=gpg