summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/mutt/defaults.muttrc2
-rwxr-xr-x.local/bin/fetch_mail.sh2
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 <Tab> complete-query
macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook -C $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
-macro index O "<shell-escape>killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc -a<enter>" "run mbsync to sync all mail"
+macro index O "<shell-escape>fetch_mail.sh<enter>" "run mbsync to sync all mail"
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>printf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms<enter><limit>~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' \`\"<enter>" "show only messages matching a notmuch pattern"
macro index A "<limit>all\n" "show all messages (undo limit)"
macro compose Y "<first-entry>\
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)
}&