forked from extern/egroupware
* eMail: match cid to filename if the attempt to match the cid failed -> extending the fetch attempt even for non cid attachments, when nothing is found within the previous loops
This commit is contained in:
parent
72a015bf06
commit
9f714dd88b
@ -1300,6 +1300,19 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($partID == false)
|
||||||
|
{
|
||||||
|
foreach($attachments as $attachment)
|
||||||
|
{
|
||||||
|
// if the former did not match try matching the cid to the name of the attachment, AND there is no mathing attachment with cid
|
||||||
|
if(isset($attachment['name']) && (strpos($attachment['name'], $_cid) !== false || strpos($_cid, $attachment['name']) !== false))
|
||||||
|
{
|
||||||
|
$partID = $attachment['partID'];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//error_log( "Cid:$_cid PARTID:$partID<bR>"); #exit;
|
//error_log( "Cid:$_cid PARTID:$partID<bR>"); #exit;
|
||||||
|
|
||||||
if($partID == false) {
|
if($partID == false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user