Message:
Auto-Submitted: =?UTF-8?Q?auto-replied (vacation)?=
->getHeader()->getRawValue() gives:
=?UTF-8?Q?auto-replied (vacation)?=
->getHeaderValue() gives:
->getDecodedValue() gives:
So the winners are getHeaderValue() or getDecodedValue()
But when the header doesn't contain the (unnecessary) encoding:
Auto-Submitted: auto-replied (vacation)
->getHeader()->getRawValue() gives:
->getHeaderValue() gives:
->getDecodedValue() gives:
So the winner is getRawValue()
Bottom line: Neither method fits in both situations. So what's the easiest way to get such a method (apart from inventing a new one)?
I think getDecodedValue could be changed to keep the part in parentheses ("comment").
Message:
->getHeader()->getRawValue()gives:->getHeaderValue()gives:->getDecodedValue()gives:So the winners are getHeaderValue() or getDecodedValue()
But when the header doesn't contain the (unnecessary) encoding:
->getHeader()->getRawValue()gives:->getHeaderValue()gives:->getDecodedValue()gives:So the winner is getRawValue()
Bottom line: Neither method fits in both situations. So what's the easiest way to get such a method (apart from inventing a new one)?
I think
getDecodedValuecould be changed to keep the part in parentheses ("comment").