Re: head->get('Subject') adds "#012"
Joseph Brennan <[email protected]> Tue, 10 Oct 2017 10:19:47 -0400
| Newsgroups | gmane.mail.mimedefang |
|---|---|
| Message-ID | <CAMSGcLB=GdYVW0QGgFtDyBZAk-JSh7G8x6XsDdisL_ArzUEhSg@mail.gmail.com> |
On Mon, Oct 9, 2017 at 10:26 PM, Michael Fox <[email protected]> wrote: > I'm using the following to retrieve the message subject header: > > $subj = $entity->head->get('Subject'); > > First is there a better way? Yes, use the $Subject variable that Mimedefang gives you! > 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 "foo#012". > Why is this extra "#012" appearing? And, is there a way to get just the > subject? That is the actual subject-- it ends with a linefeed character, #012. Use chomp() to remove it. Joseph Brennan _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang