~darklands/dotfiles

b74be928eb343d66bd2d5ce135601f186388cbf6 — Ben O'Neill 3 months ago 640919e
update mailsync to take arguments
1 files changed, 5 insertions(+), 1 deletions(-)

M .local/bin/mailsync
M .local/bin/mailsync => .local/bin/mailsync +5 -1
@@ 35,7 35,11 @@ syncandnotify() {
    fi
}

accounts="$(awk '/^Channel/ {print $2}' "$XDG_CONFIG_HOME"/isync/mbsyncrc)"
if [ ! -z "$@" ]; then
	accounts="$@"
else
	accounts="$(awk '/^Channel/ {print $2}' "$XDG_CONFIG_HOME"/isync/mbsyncrc)"
fi

# main loop
for account in $accounts