php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

Part content trimming breaks attachments

Open michalriha opened this issue 2 years ago • 1 comments

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.

michalriha avatar Apr 19 '23 08:04 michalriha

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,

Webklex avatar Jun 28 '23 02:06 Webklex