diff options
author | thomascube <thomas@roundcube.net> | 2007-08-10 09:57:39 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2007-08-10 09:57:39 +0000 |
commit | b48bd06c0f0d0258777b3870f8b8f18aa8a48355 (patch) | |
tree | f9d4d6e97dbfc6ce20caeb59a9826af3bef09112 | |
parent | 31d9efd97d9da09605d4329457ee218cba48f82f (diff) |
Improve message import
-rwxr-xr-x | bin/msgimport | 9 |
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']) |