Closed dicode-nl closed 1 year ago
this is much needed , please merge it
This code works beautifully and fixed the issues we were having with duplicated html body, and attachments not being assigned properly. Thank you!
@Orgoth can't this be fixed in a single statement like the rest of the base types
if (is_scalar($item) && strtolower($item) == 'signed') {
$subType = 'SIGNED';
$section = 'parameters';
continue;
}
@Orgoth could you send me the json for fromBodyStructure so I can run it trough the parser?
Seems legit to me, pushed the changes to this PR.
@Orgoth how about this version, it is more in line with the original c-client parsing which is used by php_imap
@dicode-nl So far this is working as intended! Fixed a bunch of issues I was having. Great work!
Hi @dicode-nl ! I wanted to say hugely thank you for your work. I have already integrated your work into the next release. I'm doing some testing but I'm sure it will be official.
Please consider supporting the users of this project by obviously charging a fee for your valuable work. Not to me but directly to those who ask for help.
Thanks too @Orgoth for the support of the project
I've extended the BodyStructure.php to be able to parse more different message types and match output with imap_fetchstructure. Tested with over 2000+ messages