Skip to content

Commit c5f311f

Browse files
committed
Don't specify the password on the command line
https://www.netmeister.org/blog/passing-passwords.html has a decent overview of the security issues with that. Since this is interactive, getting curl to prompt for the password is probably the easiest alternative. From https://curl.se/docs/manpage.html#-u > If you simply specify the username, curl prompts for a password. I don't have an easy way to test the actual command in this doc, but the flag does seem to behave as documented at least: ``` $ curl --user [email protected] https://google.com Enter host password for user '[email protected]' ``` Fixes gitgitgadget/gitgitgadget#1843
1 parent 55522b9 commit c5f311f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reply-to-this.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ Simply copy the file to the `new` subfolder in your mailer's maildir folder.
1515
You can use the command-line tool `curl` (provided that your version has IMAP support):
1616

1717
```sh
18-
curl -g --user "<email>:<password>" --url "imaps://imap.gmail.com/INBOX" -T /path/to/raw.txt
18+
curl -g --user "<email>" --url "imaps://imap.gmail.com/INBOX" -T /path/to/raw.txt
1919
```

0 commit comments

Comments
 (0)