From: Sergey Matveev Date: Mon, 31 Oct 2022 15:21:08 +0000 (+0300) Subject: Newer mu and combined back/sent folders X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=dd58224a7e8f087634e0e8628f9789dc8201fbf4;p=dotfiles.git Newer mu and combined back/sent folders --- diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc index 9b53c6d..b7fc957 100644 --- a/mutt/.mutt/muttrc +++ b/mutt/.mutt/muttrc @@ -2,7 +2,7 @@ set folder = "~/mail" set mbox_type = maildir # set mbox_type = mbox set spoolfile = =mbox -set record = =sent-`date "+%y-%m"` +set record = =back-`date "+%y-%m"` set postponed = =postponed set certificate_file = ~/.mutt/certificates set net_inc = 1 @@ -40,8 +40,9 @@ macro index,pager,browser "" macro index ":set mbox_type = mbox\n" "mbox mailbox type" macro index S "=spamdb" -macro index "mu find --clearlinks --format=links --linksdir=~/mail/search " "mu find" -macro index "~/mail/search" "mu find results" +macro index "mu find --clearlinks --format=links --linksdir=~/mail/search " "mu find" +macro index "~/mail/search" "mu find results" +macro index "~/mail/search-sent" "mu find sent results" macro pager \cu |urlview\n diff --git a/mutt/bin/sent b/mutt/bin/sent new file mode 100755 index 0000000..218097e --- /dev/null +++ b/mutt/bin/sent @@ -0,0 +1,9 @@ +#!/bin/sh -e + +alts=$(perl -lane ' + next unless /^alternates/; + push @alts, "f:$F[1]"; + sub END { print join " or ", @alts }; +' ~/.mutt/accounts/*) +mfind date:2m.. "($alts)" +mutt -f =search-sent diff --git a/zsh/.zsh/rc/010mail.zsh b/zsh/.zsh/rc/010mail.zsh index 8c5d995..50f8984 100644 --- a/zsh/.zsh/rc/010mail.zsh +++ b/zsh/.zsh/rc/010mail.zsh @@ -3,5 +3,5 @@ mailpath=( ~/mail/arbeit/new"?Neue Nachrichten in =arbeit" ) alias arr="mutt -f =arbeit -e 'source ~/.mutt/accounts/arbeit'" -alias sent="mutt -f =sent-\`date '+%y-%m'\`" +export MUHOME=~/.mu bindkey -s "OP" " inc\n" # F1