From b31a0af1f4da941542e2639bb1ea2e4620d0a1db Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 14 May 2009 06:39:10 +0000 Subject: - fix uudecode (skip "begin XXX filename" header) --- program/lib/imap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/lib/imap.inc b/program/lib/imap.inc index 61ba22414..1502064a8 100644 --- a/program/lib/imap.inc +++ b/program/lib/imap.inc @@ -2418,7 +2418,7 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part='', $encoding=NULL, $ else $result .= quoted_printable_decode($line); } else if ($mode == 3) { - if ($line == 'end') + if ($line == 'end' || preg_match('/^begin\s+[0-7]+\s+.+$/', $line)) continue; if ($file) fwrite($file, convert_uudecode($line)); -- cgit v1.2.3