summaryrefslogtreecommitdiff
path: root/roundcubemail/bin
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-07 11:39:36 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-07 11:39:36 +0000
commit687e05e28997d48ccac02b98f81d71e9928fec16 (patch)
tree98fa24244d3c6ab7480f74bb89f42b423ae76937 /roundcubemail/bin
parentea3d91249609d60de8ea570b2f7694fc283a175c (diff)
- Deprecate $DB, $USER, $IMAP global variables, Use $RCMAIL instead
git-svn-id: https://svn.roundcube.net/trunk@5564 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/bin')
-rwxr-xr-xroundcubemail/bin/msgexport.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/bin/msgexport.sh b/roundcubemail/bin/msgexport.sh
index 0aa33b5a8..239d89363 100755
--- a/roundcubemail/bin/msgexport.sh
+++ b/roundcubemail/bin/msgexport.sh
@@ -30,12 +30,12 @@ function progress_update($pos, $max)
function export_mailbox($mbox, $filename)
{
global $IMAP;
-
+
$IMAP->set_mailbox($mbox);
-
+
vputs("Getting message list of {$mbox}...");
vputs($IMAP->messagecount()." messages\n");
-
+
if ($filename)
{
if (!($out = fopen($filename, 'w')))
@@ -47,7 +47,7 @@ function export_mailbox($mbox, $filename)
}
else
$out = STDOUT;
-
+
for ($count = $IMAP->messagecount(), $i=1; $i <= $count; $i++)
{
$headers = $IMAP->get_headers($i, null, false);