Changeset 3648 in subversion
- Timestamp:
- May 20, 2010 11:24:25 PM (3 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/lib/Mail/mime.php (modified) (1 diff)
-
program/steps/mail/sendmail.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r3644 r3648 2 2 =========================== 3 3 4 - Fix double-addition of e-mail domain to content ID in HTML images 4 5 - Read and send messages with format=flowed (#1484370), fixes word wrapping issues (#1486543) 5 6 - Fix duplicated attachments when forwarding a message (#1486487) -
trunk/roundcubemail/program/lib/Mail/mime.php
r3484 r3648 849 849 } 850 850 foreach ($this->_html_images as $i => $img) { 851 $this->_html_images[$i]['cid'] 852 = $this->_html_images[$i]['cid'] . $domainID; 851 $cid = $this->_html_images[$i]['cid']; 852 if (!preg_match('#'.preg_quote($domainID).'$#', $cid)) { 853 $this->_html_images[$i]['cid'] = $cid . $domainID; 854 } 853 855 } 854 856 } -
trunk/roundcubemail/program/steps/mail/sendmail.inc
r3647 r3648 96 96 /** 97 97 * go from this: 98 * <img src=" .../tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" />98 * <img src="http[s]://.../tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" /> 99 99 * 100 100 * to this: 101 101 * 102 * < IMG src="cid:smiley-cool.gif"/>102 * <img src="/path/on/server/.../tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" /> 103 103 * ... 104 * ------part...105 * Content-Type: image/gif106 * Content-Transfer-Encoding: base64107 * Content-ID: <smiley-cool.gif>108 104 */ 109 function rcmail_ attach_emoticons(&$mime_message)105 function rcmail_fix_emoticon_paths(&$mime_message) 110 106 { 111 107 global $CONFIG; … … 438 434 $MAIL_MIME->setTXTBody($plugin['body']); 439 435 440 // look for "emoticon" images from TinyMCE and copy into message as attachments 441 $message_body = rcmail_attach_emoticons($MAIL_MIME); 436 // look for "emoticon" images from TinyMCE and change their src paths to 437 // be file paths on the server instead of URL paths. 438 $message_body = rcmail_fix_emoticon_paths($MAIL_MIME); 442 439 } 443 440 else {
Note: See TracChangeset
for help on using the changeset viewer.
