Thomas Bruederli
2013-08-21 a6f5a68880aebe1311f38c15320d49b7d51d17d0
bin/msgexport.sh
@@ -34,7 +34,7 @@
   $IMAP->set_folder($mbox);
    $index = $IMAP->index($mbox, null, 'ASC');
    $count = $index->countMessages();
    $count = $index->count();
    $index = $index->get();
   vputs("Getting message list of {$mbox}...");
@@ -71,7 +71,8 @@
// get arguments
$args = get_opt(array('h' => 'host', 'u' => 'user', 'p' => 'pass', 'm' => 'mbox', 'f' => 'file')) + array('host' => 'localhost', 'mbox' => 'INBOX');
$opts = array('h' => 'host', 'u' => 'user', 'p' => 'pass', 'm' => 'mbox', 'f' => 'file');
$args = rcube_utils::get_opt($opts) + array('host' => 'localhost', 'mbox' => 'INBOX');
if ($_SERVER['argv'][1] == 'help')
{
@@ -93,7 +94,7 @@
}
// prompt for password
$args['pass'] = prompt_silent("Password: ");
$args['pass'] = rcube_utils::prompt_silent("Password: ");
// parse $host URL