summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-24 07:12:11 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-24 07:12:11 +0900
commit1efeee62c4b8e085455154cb61bc8883f3e6dc7a (patch)
tree455a27d883eed9d355db19010257978df3895c25 /bin/mw
parent0d3565ae17a397cadc4bd7ca4ba517f20e89ac74 (diff)
modified bin/mw, modified mw.1
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw17
1 files changed, 9 insertions, 8 deletions
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
}