1 Roundcube 0.7 doesn't properly recognize uuencoded attachments. Space
2 (0x20) is a valid character to be found in uuencoded paragraphs while
3 anything above backquote (0x60) is not valid.
6 http://en.wikipedia.org/wiki/Uuencoding#Formatting_Mechanism
8 Patch from Michał Mirosław.
10 --- a/program/include/rcube_message.php.orig 2012-01-17 08:50:40.000000000 +0100
11 +++ a/program/include/rcube_message.php 2012-09-06 19:54:54.000000000 +0200
13 $part->body = $this->imap->get_message_part($this->uid, $part->mime_id, $part);
16 - // FIXME: line length is max.65?
17 - $uu_regexp = '/begin [0-7]{3,4} ([^\n]+)\n(([\x21-\x7E]{0,65}\n)+)`\nend/s';
18 + $uu_regexp = '/begin [0-7]{3,4} ([^\n]+)\n(([\x20-\x60]{0,65}\n)+)`\nend/s';
20 if (preg_match_all($uu_regexp, $part->body, $matches, PREG_SET_ORDER)) {
21 // remove attachments bodies from the message body