summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-12-07 11:39:36 +0000
committeralecpl <alec@alec.pl>2011-12-07 11:39:36 +0000
commita90ad2840f5a10576caf0219036ae26ed1090dcc (patch)
treecbe11643ece20d0ea1f3ac5f97c14c0c829ce757 /bin
parentb6da0b76afb5697685c35b8584631294cfc7b12f (diff)
- Deprecate $DB, $USER, $IMAP global variables, Use $RCMAIL instead
Diffstat (limited to 'bin')
-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);