[Mimedefang] head->get('Subject') adds "#012"
mdlist-20140424 at billmail.scconsult.com
Mon Oct 9 23:03:26 EDT 2017
On 9 Oct 2017, at 22:26, Michael Fox wrote:
> I'm using the following to retrieve the message subject header:
> $subj = $entity->head->get('Subject');
> First is there a better way?
In your mimedefang-filter script? Yes. $Subject. See the 'GLOBAL
VARIABLES SET BY MIMEDEFANG.PL' section of the mimedefang-filter man
> Second, what I get back always has "#012" added to the end. For
> example, if
> the actual subject is "foo", then the above get() method returns
> Why is this extra "#012" appearing? And, is there a way to get just
The 'get' method always returns a string terminated with a newline
More information about the MIMEDefang