Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Mime\Message: createFromString: really ignore unknown headers #4931

Closed
wants to merge 1 commit into from

Conversation

denis-sokolov
Copy link
Contributor

It is confusing that createFromString throws an exception that can't be ignored on such a small detail as an unknown header, especially given that unknown headers can be quite popular. For example, an X-Attachment-Id header.

It is more confusing that the exception claims to ignore the unknown header, while, of course, it's an exception.
So it doesn't ignore it.

@ghost ghost assigned weierophinney Aug 19, 2013
weierophinney added a commit that referenced this pull request Aug 19, 2013
Mime\Message: createFromString: really ignore unknown headers
weierophinney added a commit that referenced this pull request Aug 19, 2013
- indentation
weierophinney added a commit that referenced this pull request Aug 19, 2013
@weierophinney
Copy link
Member

Merged to develop for release with 2.3.0.

weierophinney added a commit to zendframework/zend-mime that referenced this pull request May 15, 2015
Mime\Message: createFromString: really ignore unknown headers
weierophinney added a commit to zendframework/zend-mime that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-mime that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants