From cd2ebe69c2a25f1653d5c9ed0ca938682f8fbfb0 Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 10 Aug 2007 09:57:39 +0000 Subject: Improve message import git-svn-id: https://svn.roundcube.net/trunk@670 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/bin/msgimport | 9 ++++++--- 1 file 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']) -- cgit v1.2.3