svn.filsa.org wordpress_dev

Compare Revisions

Ignore whitespace Rev 25 → Rev 26

/tags/mail2wordpress-release-0.3/mail2wp.php
187,7 → 187,7
$this->log(' - Processing attachments.');
$attach_text .= "\n<div class='attachments'>\n";
foreach ($mail['Attachments'] as $attachment) {
if (! 'image' == $attachment['Type']) continue; //skip non-images for now
if ( 'image' != $attachment['Type']) continue; //skip non-images for now
$fname = $this->_get_safe_filename($attachment['FileName'], $attachment['SubType']);
if ($this->_save_file($fname, $attachment['Data'])) {
$mimetype = $attachment['Type'] . '/' . $attachment['SubType'];