Skip to content
Snippets Groups Projects
Commit d6970162 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #853 from greezybacon/issue/inline-body-with-disposition-params


email: Accept inline body with disposition params

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 5a94ac24 2b13adc5
No related branches found
No related tags found
No related merge requests found
......@@ -316,7 +316,11 @@ class MailFetcher {
$struct=@imap_fetchstructure($this->mbox, $mid);
//Match the mime type.
if($struct && !$struct->ifdparameters && strcasecmp($mimeType, $this->getMimeType($struct))==0) {
if($struct
&& strcasecmp($mimeType, $this->getMimeType($struct))==0
&& (!$struct->ifdparameters
|| !$this->findFilename($struct->dparameters))) {
$partNumber=$partNumber?$partNumber:1;
if(($text=imap_fetchbody($this->mbox, $mid, $partNumber))) {
if($struct->encoding==3 or $struct->encoding==4) //base64 and qp decode.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment