diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-26 00:39:32 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-26 00:39:32 +0900 |
| commit | ace3ca6321db1faa1f8c43f83afab6e138933048 (patch) | |
| tree | c6e61711296ff03401a416b1214105868c1f4f55 /bin/mw | |
| parent | 4e44963cd8addcc5b81845abad697f5d98dd54e4 (diff) | |
modified bin/mw, modified share/mpop-temp, modified share/msmtp-temp
Diffstat (limited to 'bin/mw')
| -rwxr-xr-x | bin/mw | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -60,13 +60,13 @@ checkbasics() { command -V gpg >/dev/null 2>&1 && GPG="gpg" || GPG="gpg2" PASSWORD_STORE_DIR="${PASSWORD_STORE_DIR:-$HOME/.password-store}" [ -r "$PASSWORD_STORE_DIR/.gpg-id" ] || { - echo "First run \`pass init <yourgpgemail>\` to set up a password archive." + echo "First run \`pass init mail/mutt/<yourgpgemail>\` to set up a password archive." echo "(If you don't already have a GPG key pair, first run \`$GPG --full-generate-key\`.)" exit 1 } } -getaccounts() { accounts="$(find -L "$accdir" -type f 2>/dev/null | grep -o "\S*.muttrc" | sed "s|.*/\([0-9]-\)*||;s/\.muttrc$//" | nl)"; } +getaccounts() { accounts="$(find -L "$accdir" -type f 2>/dev/null | grep -o "\S*.muttrc" | sed "s|.*/\([0-9]-\)*||;s/\.muttrc$//" | nl -v 0)"; } list() { getaccounts && [ -n "$accounts" ] && echo "$accounts" || exit 1; } @@ -255,6 +255,7 @@ getboxes() { mailboxes="$(printf "%s" "$mailboxes" | sed '/^$/d')" fi [ "$type" = "pop" ] && mailboxes="INBOX" + idnum="-1" for x in $( sed -n "/^macro.* i[0-9] / s/\(^macro.* i\| .*\)//gp " "$muttrc" 2>/dev/null | sort -u echo 0 |
