mutt-wizard

fork of Luke Smiths mutt-wizard
git clone git://git.jakekoroman.com/mutt-wizard
Log | Files | Refs | README | LICENSE

commit 57e6d292a11600194abd5daea2fca09087624276
parent 48ac83c07f7f62475400dcec179c0695bd7aba3e
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Thu, 16 Feb 2023 14:12:40 -0500

Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard

Diffstat:
Mbin/mailsync | 2+-
Mbin/mw | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/mailsync b/bin/mailsync @@ -43,7 +43,7 @@ case "$(uname)" in displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)" [ -z "$displays" ] && [ -d /tmp/.X11-unix ] && displays=$(cd /tmp/.X11-unix && for x in X*; do echo ":${x#X}"; done) - notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do + notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-:0}; do export DISPLAY="$x" notify-send --app-name="mutt-wizard" "$1" "$2" done ;} diff --git a/bin/mw b/bin/mw @@ -217,7 +217,7 @@ togglecron() { cron="$(mktemp)" sed -ibu /mailsync/d "$cron"; rm -f "$cron"bu else echo "Adding automatic mailsync every ${cronmin:-10} minutes..." - echo "*/${cronmin:-10} * * * * $prefix/bin/mailsync -q" >> "$cron" + echo "*/${cronmin:-10} * * * * $prefix/bin/mailsync" >> "$cron" fi && crontab "$cron"; rm -f "$cron" ;}