Eimap Extension Bug For Video Attachments

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);




[font="Arial, sans-serif"][size="2"][color="#222222"]I have fixed issue with [/color][/size][/font]

[font="Arial, sans-serif"][size="2"] [/size][/font]

[font="Arial, sans-serif"][size="2"][color="#222222"]Replace [/color][/size][/font]

[font="Arial, sans-serif"][size="2"] [/size][/font]

[font="Arial, sans-serif"][size="2"][color="#222222"]


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

				(in_array(strtolower($part->subtype),$imgTypes))

[size="2"]By [/size]

[size="2"]


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

[/size][/color][/size][/font]