mu-wizard

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

commit 983083c3878574593f1399cd71ce62ec5405985a
parent 2db38016f153ea35c76a0869bfcfba4fd9163339
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 30 Mar 2021 09:09:20 +0300

mu-init: exit after first email match

Diffstat:
Mbin/muw | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/muw b/bin/muw @@ -791,7 +791,7 @@ main() { parse "$@"; set -- for account in "$accountdir/"*.el; do [ -f "$account" ] || continue - set -- "$@" "--my-address=$(sed -n 's|"[^"]*$||;/user-mail-address/s|^.*"||p' "$account")" + set -- "$@" "--my-address=$(sed -n 's|"[^"]*$||;/user-mail-address/{s|^.*"||p;q}' "$account")" done [ "$1" ] || die "No address could be found, did you add any accounts?" mu init -m "$MAILDIR" "$@"