Yii Framework Forum: Eimap Extension Bug For Video Attachments - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Eimap Extension Bug For Video Attachments Rate Topic: -----

#1 User is offline   Nisanth thulasi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 68
  • Joined: 10-July 12
  • Location:Kochi

Posted 18 January 2013 - 05:05 AM

Hi

am using eimap extension to retrieve email from imap server but didn't get the video type attachments

changed the code as per notes added in the eimap extension ,


in Eimap.php function getAttachments()


$imgTypes = array(
			'gif',
			'jpg',
			'jpeg',
			'png',
			'pdf',
			'txt',
			'odt',
			'sql',
			'octet-stream',
			'xls',
			'xlsb',
			'ppt',
			'docx',
			'doc',
			'x-gzip',
			'zip',
			'gz',
			'rar',
			'mp3','mp4','swf','mpeg',
			
		);


and 
    $data = $this->decodeValue($body, $part->type);

    $data = $this->decodeValue($body, $part->encoding);


Thanks
Nisanth Thulasi
0

#2 User is offline   Nisanth thulasi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 68
  • Joined: 10-July 12
  • Location:Kochi

Posted 22 March 2013 - 05:26 AM

I have fixed issue with

Replace



if (($structure->ifdisposition && strtolower($part->disposition) == 'attachment' && $structure->ifdparameters) ||
				(in_array(strtolower($part->subtype),$imgTypes))


By

 if( property_exists($part, 'disposition') && strtolower($part->disposition)=='attachment')

Thanks
Nisanth Thulasi
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users