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

Problem with attachment name in message/rfc822 #8418

Closed
mary-pe opened this issue Jan 25, 2022 · 11 comments
Closed

Problem with attachment name in message/rfc822 #8418

mary-pe opened this issue Jan 25, 2022 · 11 comments

Comments

@mary-pe
Copy link

mary-pe commented Jan 25, 2022

Hi,
I have a problem with the attached message.
The name of the attached pdf is split into two lines inside the header and RC 1.5.0 is not able to decode the real name, showing "Part 1.2.pdf".
Thanks

attachment_problem.eml.txt

@alecpl
Copy link
Member

alecpl commented Jan 25, 2022

The sample is malformed. I'd also suggest update to 1.5.2.

@mary-pe
Copy link
Author

mary-pe commented Jan 25, 2022

Thanks for the reply.
I downloaded the RC 1.5.2 and the problem still exists.
Furthermore why do you consider the sample malformed?
I parsed the message with Perl MIME::Parser and it didn't find any errors.
Thunderbird also opens the sample without errors.
Thanks!

@alecpl
Copy link
Member

alecpl commented Jan 25, 2022

It's a message inside a message where the structure is malformed. It does not import into Roundcube. But anyway, if I fix the structure, I see no problem with attachment name. I suspect an IMAP server bug. Enable imap_debug option and check the BODYSTRUCTURE response from the server.

@mary-pe
Copy link
Author

mary-pe commented Jan 26, 2022

I opened this sample with the same imap Server but using both RC 1.3.9 and RC 1.5.2, and only RC 1.5.2 shows the problem.
I'm using PHP 7.3
How do you suggest to proceed?
Could you please give me the fix you applied to the message?
Thanks

@alecpl
Copy link
Member

alecpl commented Jan 28, 2022

Enable imap_debug and provide the log from the moment you open the message.

@mary-pe
Copy link
Author

mary-pe commented Jan 28, 2022

imap_debug_rc.log

@alecpl
Copy link
Member

alecpl commented Jan 28, 2022

Hmmm... this part looks pretty match the same here. How about the response to FETCH for the attachment part headers?

@mary-pe
Copy link
Author

mary-pe commented Jan 28, 2022

imap_debug.log

@alecpl
Copy link
Member

alecpl commented Jan 28, 2022

Ok, this at least helped me to reproduce the issue. I'll investigate.

@mary-pe
Copy link
Author

mary-pe commented Jan 28, 2022

Ok, thank you.

@alecpl
Copy link
Member

alecpl commented Jan 29, 2022

Fixed.

@alecpl alecpl closed this as completed Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants