summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-08-10 09:57:39 +0000
committerthomascube <thomas@roundcube.net>2007-08-10 09:57:39 +0000
commitb48bd06c0f0d0258777b3870f8b8f18aa8a48355 (patch)
treef9d4d6e97dbfc6ce20caeb59a9826af3bef09112
parent31d9efd97d9da09605d4329457ee218cba48f82f (diff)
Improve message import
-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'])