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 parsing of Boundary #121

Closed
mikolamin opened this issue Apr 1, 2021 · 3 comments
Closed

Problem parsing of Boundary #121

mikolamin opened this issue Apr 1, 2021 · 3 comments
Labels
bug Something isn't working validated

Comments

@mikolamin
Copy link

mikolamin commented Apr 1, 2021

I have getting emails with header like this:

...
Content-type: multipart/mixed;
Boundary="0
_=4E55...._

And method find() of class Header cannot find preg_match_all() with $pattern "/boundary="?([^\"]*)"?/" because B letter is in upper case.

Could you help me to find the solution? It will be better to set these boundary pattern

@MouMoutMan
Copy link

Using find function ?
$boundary = $header->find("/Boundary="?([^\"]*)[";\s]/");
https://www.php-imap.com/api/header

I also have a problem with the pattern in the Header class...

@Webklex
Copy link
Owner

Webklex commented Jun 19, 2021

Hi @mikolamin ,
thanks for your report! :)

Best regards,

@Webklex
Copy link
Owner

Webklex commented Nov 4, 2021

Hi @mikolamin ,
please give v3.0.0-alpha a try. The default boundary regex used to detect the message parts in a multi-part message has been changed and can now also be modified via the config options.boundary parameter inside your configuration.

Best regards,

@Webklex Webklex closed this as completed Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validated
Projects
None yet
Development

No branches or pull requests

3 participants