Changeset 1551 in subversion


Ignore:
Timestamp:
Jun 16, 2008 4:06:53 AM (5 years ago)
Author:
alec
Message:
  • Fixed forwarding messages with one HTML attachment (#1484442)
  • Fixed encoding of message/rfc822 attachments and image/pjpeg handling (#1484914)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r1543 r1551  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42008/06/16 (alec) 
     5---------- 
     6- Fixed sending emoticons 
     7- Fixed forwarding messages with one HTML attachment (#1484442) 
     8- Fixed encoding of message/rfc822 attachments and image/pjpeg handling (#1484914) 
    39 
    4102008/06/15 (alec) 
  • trunk/roundcubemail/program/steps/mail/compose.inc

    r1493 r1551  
    523523  // add attachments 
    524524  if (!isset($_SESSION['compose']['forward_attachments']) && is_array($MESSAGE->mime_parts)) 
    525     rcmail_write_compose_attachments($MESSAGE); 
     525    rcmail_write_compose_attachments($MESSAGE, $bodyIsHtml); 
    526526     
    527527  return $prefix.$body; 
     
    540540      && is_array($MESSAGE->mime_parts) 
    541541      && count($MESSAGE->mime_parts) > 0) 
    542     rcmail_write_compose_attachments($MESSAGE); 
     542    rcmail_write_compose_attachments($MESSAGE, $bodyIsHtml); 
    543543 
    544544  return $body; 
     
    546546   
    547547   
    548 function rcmail_write_compose_attachments(&$message) 
     548function rcmail_write_compose_attachments(&$message, $bodyIsHtml) 
    549549{ 
    550550  global $RCMAIL, $IMAP; 
     
    557557  foreach ((array)$message->mime_parts as $pid => $part) 
    558558  { 
    559     if ($part->ctype_primary != 'message' && 
     559    if (($part->ctype_primary != 'message' || !$bodyIsHtml) && 
    560560        ($part->disposition=='attachment' || $part->disposition=='inline' || $part->headers['content-id'] || 
    561561         (empty($part->disposition) && $part->filename))) 
Note: See TracChangeset for help on using the changeset viewer.