From 17ae1307d6eaeca451e54c7a81780d0bceeaf5fd Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 21 Feb 2014 14:18:31 +0100 Subject: Fix issue where msgexport.sh printed the message to STDOUT instead of a file (#1489634) --- bin/msgexport.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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); -- cgit v1.2.3