The name property of the IncomingMailAttachment object should be
'A very very ... long filename.pdf', but instead is 'A very very ...'.
The part in filename1 is missing.
The filename is already truncated in der $params parameter of the
downloadAttachment() method.
Without further investigation, I think the cause could probably be in
line 1755 of src/PhpImap/Mailbox.php.
Environment (please complete the following information):
Describe the bug
Receiving email attachments with the following header creates incomplete filenames.
The name property of the IncomingMailAttachment object should be 'A very very ... long filename.pdf', but instead is 'A very very ...'. The part in filename1 is missing.
The filename is already truncated in der $params parameter of the downloadAttachment() method.
Without further investigation, I think the cause could probably be in line 1755 of src/PhpImap/Mailbox.php.
Receiving email attachments with this type of header works as expected: