]> git.donarmstrong.com Git - roundcube.git/blob - debian/patches/fix-too-old-php-mail-mime.patch
Merge commit 'debian/0.1.1-7' into debian
[roundcube.git] / debian / patches / fix-too-old-php-mail-mime.patch
1 This patch is not used any more with php-mail-mime (>= 1.5.0).
2 It is left here to help with backports. Add it back to series if needed.
3
4 --- roundcube/program/steps/mail/sendmail.inc   2008-03-07 09:52:40.000000000 +0100
5 +++ roundcube/program/steps/mail/sendmail.inc.new       2008-03-07 11:04:33.000000000 +0100
6 @@ -351,7 +351,11 @@
7    
8    // append message to sent box
9    if ($store_folder)
10 -    $saved = $IMAP->save_message($CONFIG[$store_target], $MAIL_MIME->getMessage());
11 +    {
12 +    $header_str = $MAIL_MIME->txtHeaders($headers);
13 +    $msg_body = $header_str."\r\n".$MAIL_MIME->get($message_param);
14 +    $saved = $IMAP->save_message($CONFIG[$store_target], $msg_body);
15 +    }
16  
17    // raise error if saving failed
18    if (!$saved)