summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-02-21 14:18:31 +0100
committerAleksander Machniak <alec@alec.pl>2014-02-21 14:18:31 +0100
commit17ae1307d6eaeca451e54c7a81780d0bceeaf5fd (patch)
treedfe556ca3401182edf096747e32361dd0eace6be
parent128fd9861a2fa755c4684c2700eb6197cb0be484 (diff)
Fix issue where msgexport.sh printed the message to STDOUT instead of a file (#1489634)
-rw-r--r--CHANGELOG1
-rwxr-xr-xbin/msgexport.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 3ea41edfa..b4026db69 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -9,6 +9,7 @@ CHANGELOG Roundcube Webmail
- Fix security issue in DomainFactory driver of Password plugin
- Fix invalid X-Draft-Info on forwarded message draft (#1489587)
- Fix regression in handling of 'attachments' result in message_compose hook (#1489627)
+- Fix issue where msgexport.sh printed the message to STDOUT instead of a file (#1489634)
RELEASE 1.0-rc
--------------
diff --git a/bin/msgexport.sh b/bin/msgexport.sh
index e98e5fee2..f68688b67 100755
--- a/bin/msgexport.sh
+++ b/bin/msgexport.sh
@@ -58,7 +58,7 @@ function export_mailbox($mbox, $filename)
$from = current(rcube_mime::decode_address_list($headers->from, 1, false));
fwrite($out, sprintf("From %s %s UID %d\n", $from['mailto'], $headers->date, $headers->uid));
- fwrite($out, $IMAP->print_raw_body($headers->uid));
+ $IMAP->get_raw_body($headers->uid, $out);
fwrite($out, "\n\n\n");
progress_update($i+1, $count);