php-imap
php-imap copied to clipboard
Part content trimming breaks attachments
Hi, I have a problem with fetching fixed-width column CSV files as attachments. These files usualy have some empty spaces in the first column but https://github.com/Webklex/php-imap/blob/master/src/Part.php#L196 removes them, which breaks these files.
I could access the Part::$raw property, however the Attachment class does not provide acces to the underlying Part object.
Hi @michalriha , many thanks for your report.
If possible, please consider donating an anonymized (all private / confidential information removed) version of such an email so I or someone else can create a custom test case for this scenario and start taking a look at it.
Best regards & happy coding,