Thomas Landauer

Results 162 comments of Thomas Landauer

Here's the answer I was looking for: https://stackoverflow.com/a/194135/1668200

Two more points about the naming: * Just noticed that `$message->getHeaderValue('content-type')` only returns `text/plain` if the full header is `Content-Type: text/plain;charset=utf-8`. So I think you're using `getHeaderValue()` for something like...

> the 'value' is one thing, and the 'parameters' are another Well, another argument for "**getBody()**" :-) > I think most people ... What I definitely can say is that...

Yeah, sure "getBody" is uncommon. But what's your suggestion?? IMO `getValue` is ruined now, since you sometimes use it indifferently (just give me whatever is in there), and sometimes you...

> (unless the header doesn't require any processing of course) This is exactly the problem! To me, a header is a header. I don't know which headers need processing... >...

> Yup, I can set it up for you if you want to undertake that OK, please!

> I think most people expect the comments to be removed in the value Some data I've just stumbled upon: For the `Auto-Submitted` header ([RFC 3834](https://tools.ietf.org/html/rfc3834#section-5)), adding a comment seems...

The only idea I'm having is: * Add `public array $parsingErrors` to `DatePart` (and all other parts) * In `AbstractHeader`, where all header parts are collected (probably in `setParseHeaderValue()`), add...

```php if (null === $message->getTextPart()->getHeaderParameter('content-type', 'charset')) { $message->getTextPart()->setCharsetOverride('utf-8'); } ```

Thanks to @pascalwacker I found a way: https://stackoverflow.com/q/74448824/1668200