mu-wizard

shell script to easily configure mu4e accounts on Emacs
git clone git://git.ckyln.com/mu-wizard
Log | Files | Refs | LICENSE

commit 662bdabdfb599682a7031d1e30153e744069f73a
parent adce4b298d0db28594d219d03f4804f8ba4b5827
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 23 Aug 2021 16:37:45 +0300

test_connection(): use a simpler sed/grep call. Fixes #11

Diffstat:
Mbin/muw | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/muw b/bin/muw @@ -487,10 +487,10 @@ test_connection() { while read -r dir; do mkdir -p "$MAILDIR/$title/${dir#/}"; done < /tmp/mbsync-boxes - drafts=$(sed -n '/[Dd][Rr][Aa][Ff][Tt][Ss]/{p;q}' /tmp/mbsync-boxes) - trash=$(sed -n '/[Tt][Rr][Aa][Ss][Hh]/{p;q}' /tmp/mbsync-boxes) - inbox=$(sed -n '/[Ii][Nn][Bb][Oo][Xx]/{p;q}' /tmp/mbsync-boxes) - sent=$(sed -n '/[Ss][Ee][Nn][Tt]/{p;q}' /tmp/mbsync-boxes) + drafts=$(grep -i drafts /tmp/mbsync-boxes | sed 1q) + trash=$(grep -i trash /tmp/mbsync-boxes | sed 1q) + inbox=$(grep -i inbox /tmp/mbsync-boxes | sed 1q) + sent=$(grep -i sent /tmp/mbsync-boxes | sed 1q) rm -f /tmp/mbsync-boxes }