You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the boundary has only one character boundary="-" the parts of the email are not properly extracted by \Webklex\PHPIMAP\Structure::detectParts
The email content
The value of the attachment in debugged
As we can see the Conte has been detected as a part of the attachment which is wrong
This was reproduced in the latest version
6.0.0
Describe the bug
When the boundary has only one character
boundary="-"
the parts of the email are not properly extracted by\Webklex\PHPIMAP\Structure::detectParts
The email content
![Image](https://private-user-images.githubusercontent.com/12513696/404354936-1f9d3db7-27d7-4b5e-9b67-02a305bb9a43.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODIwNDAsIm5iZiI6MTczOTI4MTc0MCwicGF0aCI6Ii8xMjUxMzY5Ni80MDQzNTQ5MzYtMWY5ZDNkYjctMjdkNy00YjVlLTliNjctMDJhMzA1YmI5YTQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDEzNDkwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3YTBhOTE5MzI5MWRlMDA3YThhYmU4ZTE2MDA4MmY3NTI3MzRkZGM4NDgwY2E2MzdlODBlMjNjMWFmMmIwMjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4NoSAxHyCg5fXlxsKg1ZYNDBtlhtvlwau4iKCUnJQfs)
The value of the attachment in debugged
![Image](https://private-user-images.githubusercontent.com/12513696/404354136-9fbe4a96-9e87-4fcc-bc95-3531cd79e0a1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODIwNDAsIm5iZiI6MTczOTI4MTc0MCwicGF0aCI6Ii8xMjUxMzY5Ni80MDQzNTQxMzYtOWZiZTRhOTYtOWU4Ny00ZmNjLWJjOTUtMzUzMWNkNzllMGExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDEzNDkwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNjY2VmODAzMmY5NzA4OTQ4YzhiOGUxNWUxZDIzMTQ3ZGY3NTM1NDBkNGJmZWYyNjc4Yjk0MDFjOWFmMjM5ZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0IA7QU2e5Jm-qkQ8h1XFQ8YrFuPHx_guimcE4JnDvHM)
As we can see the
Conte
has been detected as a part of the attachment which is wrongAdditional context
EML example with the problem
bad_boundary.eml.zip
Do you know if there is anything that can be done here?
The text was updated successfully, but these errors were encountered: