Skip to content

Commit de6f098

Browse files
wesmclaude
andcommitted
fix: replace plaintext password example with secure piping guidance
The help text showed `echo "password" | msgvault add-imap ...` which exposes the password in shell history and process listings. Replace with `read -s` example that avoids this. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b7f2808 commit de6f098

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/msgvault/cmd/addimap.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ Use --starttls for STARTTLS upgrade on port 143.
6666
Use --no-tls for a plain unencrypted connection (not recommended).
6767
6868
You will be prompted to enter your password interactively.
69-
You can also pipe a password via stdin for scripting:
70-
echo "password" | msgvault add-imap --host ... --username ...
69+
For scripting, pipe the password via stdin to avoid exposing it in
70+
shell history or process listings:
71+
read -s PASS && echo "$PASS" | msgvault add-imap --host ... --username ...
7172
7273
Security note: Your password is stored on disk with restricted file
7374
permissions (0600). For stronger security, use an app-specific password

0 commit comments

Comments
 (0)