Fix issue where msgexport.sh printed the message to STDOUT instead of a file (#1489634)

pull/181/head
Aleksander Machniak 10 years ago
parent a16cbb204e
commit 6345f34565

@ -8,6 +8,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
--------------

@ -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);

Loading…
Cancel
Save