Try to determine the MIME part that carries an object matching based on the message headers.
public static matchMimePartToHeaderType ( Horde_Mime_Part $structure, Horde_Mime_Headers $headers ) : string | boolean | ||
$structure | Horde_Mime_Part | A structural representation of the mime message. |
$headers | Horde_Mime_Headers | The message headers. |
return | string | boolean | The MIME ID of the message part carrying an object matching the message headers or false if such a part was not identified within the message. |