Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment name is undefined. Too long name or cyrillic? #45

Closed
myrzan opened this issue Nov 5, 2020 · 2 comments
Closed

Attachment name is undefined. Too long name or cyrillic? #45

myrzan opened this issue Nov 5, 2020 · 2 comments
Labels
bug Something isn't working validating

Comments

@myrzan
Copy link

myrzan commented Nov 5, 2020

Hi!
I'm using webklex/php-imap 2.2.0.
Protocol: imap.
I want to get attachments from letters, .zip files are being saved properly (e.g. Astronomia0091023-2020-11-05.zip),
but one letter has .xlsx file attached with name "Прокрастинация и другие методы избежать работу 2020-11-02.xlsx" and its saved like "undefined" without any extension (not even undefined.xslx).
I saw the issue #37, but it's not solving this problem. Can you help?

@myrzan
Copy link
Author

myrzan commented Nov 5, 2020

I've tested out that if I rename same file to latin characters like pricelist.xlsx, php-imap can define name correctly.
I think it's because of length of original filename, but don't know where to fix that.

@Webklex Webklex added bug Something isn't working validating labels Nov 6, 2020
@Webklex
Copy link
Owner

Webklex commented Nov 6, 2020

Hi @myrzan ,
thanks for your report. Please dump the raw body and post an anonymized version of the region around it.
You can dump the raw content by calling var_dump($message->getStructure()->raw). This will hopefully allow me or others to reproduce the problem and determine the problem.

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validating
Projects
None yet
Development

No branches or pull requests

2 participants