diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-08-10 09:57:39 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-08-10 09:57:39 +0000 |
| commit | cd2ebe69c2a25f1653d5c9ed0ca938682f8fbfb0 (patch) | |
| tree | fd0d1f54d3b144008c95528a25fdb610215ad81c | |
| parent | fd3813bf1aa69b7e4dac97f6e0c5bf875c2284db (diff) | |
Improve message import
git-svn-id: https://svn.roundcube.net/trunk@670 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rwxr-xr-x | roundcubemail/bin/msgimport | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/roundcubemail/bin/msgimport b/roundcubemail/bin/msgimport index f0ed3c046..0ed268f4f 100755 --- a/roundcubemail/bin/msgimport +++ b/roundcubemail/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']) |
