diff options
Diffstat (limited to 'bin/mw')
| -rwxr-xr-x | bin/mw | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 } |
