From 1efeee62c4b8e085455154cb61bc8883f3e6dc7a Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Fri, 24 Jan 2025 07:12:11 +0900 Subject: modified bin/mw, modified mw.1 --- bin/mw | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'bin/mw') diff --git a/bin/mw b/bin/mw index 8f5d181..f54418f 100755 --- a/bin/mw +++ b/bin/mw @@ -206,15 +206,15 @@ askinfo() { [ -z "$passprefix" ] && passprefix="" hostname="${fulladdr#*@}" login="${login:-$fulladdr}" - if [ -n "${password+x}" ] && [ ! -f "$PASSWORD_STORE_DIR/$passprefix$fulladdr.gpg" ]; then + if [ -n "${password+x}" ] && [ ! -f "$PASSWORD_STORE_DIR/mutt-wizard/$passprefix$fulladdr.gpg" ]; then insertpass - elif [ ! -f "$PASSWORD_STORE_DIR/$passprefix$fulladdr.gpg" ]; then + elif [ ! -f "$PASSWORD_STORE_DIR/mutt-wizard/$passprefix$fulladdr.gpg" ]; then getpass fi } insertpass() { - printf "%s" "$password" | pass insert -fe "$PASSWORD_STORE_DIR/$passprefix$fulladdr" + printf "%s" "$password" | pass insert -fe "$PASSWORD_STORE_DIR/mutt-wizard/$passprefix$fulladdr" } errorexit() { @@ -321,23 +321,24 @@ Main actions: -u Show a registered email account information Options allowed with -a: - -f Assume typical English mailboxes without attempting log-on. + -f Assume typical English mailboxes without attempting log-on -i IMAP/POP server address -I IMAP/POP server port + -m Maximum number of emails to be kept offline (default=0: unlimited) -n "Real name" to be on the email account -N Account login name if not full address - -o Configure address, but keep mail online. - -p Add for a POP server instead of IMAP. + -o Configure address, but keep mail online + -p Add for a POP server instead of IMAP -P Pass Prefix (prefix of the file where password is stored) -s SMTP server address -S SMTP server port -x Password for account (recommended to be in double quotes) - -X Delete an account's local email too when deleting. + -X Delete an account's local email too when deleting NOTE: Once at least one account is added, you can run \`mbsync -a\` to begin downloading mail. -To change an account's password, run \`pass edit '$passprefix'your@email.com\`. +To change an account's password, run \`pass edit '(pass prefix with -P option)'your@email.com\`. EOF } -- cgit v1.2.3