summaryrefslogtreecommitdiff
path: root/bin/msgexport.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/msgexport.sh')
-rwxr-xr-xbin/msgexport.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/msgexport.sh b/bin/msgexport.sh
index 0aa33b5a8..239d89363 100755
--- a/bin/msgexport.sh
+++ b/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);