citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 5706a4675d35edc8cb603a5771719ce6dde9f3d1
parent 7bec5958f13cbc867312e3b13e87f6ed76f03065
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 31 Aug 2023 18:32:18 -0700

more mutt updates

Diffstat:
Abin/mutt-local-date | 14++++++++++++++
Mdotfiles/.config/neomutt/neomuttrc | 13++++++++-----
Mdotfiles/.notmuch-config | 6+-----
3 files changed, 23 insertions(+), 10 deletions(-)

diff --git a/bin/mutt-local-date b/bin/mutt-local-date @@ -0,0 +1,14 @@ +#!/usr/bin/perl -n + +use Date::Parse; +use POSIX; +use strict; + +if (/^Date: (.*)$/) { + my $datestr = $1; + my $date = strftime ("%a, %d %b %Y %H:%M:%S", + localtime (str2time ($datestr))); + print "Local-Date: $date\n"; +} + +print; diff --git a/dotfiles/.config/neomutt/neomuttrc b/dotfiles/.config/neomutt/neomuttrc @@ -7,6 +7,7 @@ set wait_key=no set pager_stop=yes set from="jb55@jb55.com" set pipe_decode=yes +set sig_dashes=no set pipe_split=no set envelope_from=yes set mime_forward=no @@ -27,13 +28,13 @@ set sort = reverse-last-date-received virtual-mailboxes \ "INBOX" "notmuch://?query=query:inbox" \ + "patches" "notmuch://?query=query:patches" \ + "today" "notmuch://?query=date:today" \ "damus-prs" "notmuch://?query=query:damusp" \ - "damus-issues" "notmuch://?query=query:damusi" \ - "damus-all-issues" "notmuch://?query=query:damus-all-issues" \ - "damus-all-issues-no-elsat" "notmuch://?query=query:damus-all-issues-no-elsat" \ - "damus-issues-no-elsat" "notmuch://?query=query:damusinoelsat" + "damus-issues" "notmuch://?query=query:damusi" macro index,pager a "<modify-labels>-unread -inbox<enter> +macro index,pager i "<modify-labels>+inbox<enter> macro index,pager A "<create-alias>" "Create alias" macro index,pager F "<modify-labels>+filed" "File message" macro index,pager + "<modify-labels>+" @@ -47,7 +48,8 @@ macro pager c "|cols|less<enter>" macro pager t "|collapse|less<enter>" macro attach h "|w3m -dump -T text/html | less<enter>" "View text/html with w3m" #macro pager P "|grep patch$ | xargs curl -sL | delta --paging always<enter>" -macro pager P "| mail-prpatch | delta --paging always" +macro pager P ":set pipe_decode=no<enter> | mail-prpatch | delta --paging always" +macro pager G ":set pipe_decode=no<enter> | mail-prpatch-insert" my_hdr Bcc: William Casarin <jb55@jb55.com> @@ -68,5 +70,6 @@ color header brightcyan default '^Subject:' folder-hook . "push \eV" set collapse_unread=yes set uncollapse_jump=yes +set display_filter=~/bin/mutt-local-date source ~/.mail_aliases diff --git a/dotfiles/.notmuch-config b/dotfiles/.notmuch-config @@ -113,10 +113,6 @@ inbox=tag:inbox and not tag:filed lightning=tag:inbox and tag:lightning list=tag:list and not tag:github and tag:inbox and not tag:busy notmuch=tag:notmuch and tag:inbox -today=date:today and tag:inbox -work=tag:inbox and tag:work +patches=subject:PATCH and tag:inbox damusp=(subject:PR or subject:PATCH) and subject:damus and tag:inbox damusi=subject:Issue and subject:damus-io and tag:inbox -damus-all-issues=subject:Issue and subject:damus-io -damus-all-issues-no-elsat=subject:Issue and subject:damus-io and not from:alltheseas -damusinoelsat=subject:Issue and subject:damus-io and tag:inbox and not from:alltheseas