From 4f4501ba225f812b56ef39788b1146539d3e8925 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 17 Aug 2022 14:42:49 +0200 Subject: update --- .config/mutt/defaults.muttrc | 2 +- .local/bin/fetch_mail.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/mutt/defaults.muttrc b/.config/mutt/defaults.muttrc index 7f4b798..175c686 100644 --- a/.config/mutt/defaults.muttrc +++ b/.config/mutt/defaults.muttrc @@ -99,7 +99,7 @@ bind editor complete-query macro index,pager a "set my_pipe_decode=\$pipe_decode pipe_decodeabook -C $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook --add-emailset pipe_decode=\$my_pipe_decode; unset my_pipe_decode" "add the sender address to abook" macro index \Cr "T~UN." "mark all messages as read" -macro index O "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc -a" "run mbsync to sync all mail" +macro index O "fetch_mail.sh" "run mbsync to sync all mail" macro index \Cf "unset wait_keyprintf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"" "show only messages matching a notmuch pattern" macro index A "all\n" "show all messages (undo limit)" macro compose Y "\ diff --git a/.local/bin/fetch_mail.sh b/.local/bin/fetch_mail.sh index a0d6694..a3c6d75 100755 --- a/.local/bin/fetch_mail.sh +++ b/.local/bin/fetch_mail.sh @@ -8,7 +8,7 @@ export PASSWORD_STORE_DIR=/home/jozan/.local/share/pass killall mbsync >/dev/null 2>&1 notify-send -u low -t 3000 'mbsync' ' fetching mail...' >/dev/null 2>&1 { - mbsync -q -a -c /usr/home/jozan/.config/mbsync/mbsyncrc || + mbsync -a -c /usr/home/jozan/.config/mbsync/mbsyncrc || notify-send -u low -t 6000 'mbsync' ' failed to fetch mail' >/dev/null 2>&1 && (sleep 1; kill -74 $(pidof dwmblocks) >/dev/null 2>&1) }& -- cgit v1.2.3