summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/msgimport9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/msgimport b/bin/msgimport
index f0ed3c046..0ed268f4f 100755
--- a/bin/msgimport
+++ b/bin/msgimport
@@ -45,9 +45,9 @@ function get_args($aliases=array())
function print_usage()
{
print "Usage: msgimport -h imap-host -u user-name -f message-file\n";
- print "-host IMAP host\n";
- print "-user IMAP user name\n";
- print "-file Message file to upload\n";
+ print "--host IMAP host\n";
+ print "--user IMAP user name\n";
+ print "--file Message file to upload\n";
}
@@ -83,6 +83,9 @@ if (empty($args['user']))
echo "Password: ";
$args['pass'] = trim(fgets(STDIN));
+// clear password input
+echo chr(8)."\rPassword: ".str_repeat("*", strlen($args['pass']))."\n";
+
// parse $host URL
$a_host = parse_url($args['host']);
if ($a_host['host'])