Re: base64 to quoted-printable
"Michael Fox" <[email protected]> Tue, 10 Oct 2017 15:24:54 -0700
| Newsgroups | gmane.mail.mimedefang |
|---|---|
| Message-ID | <[email protected]> |
> On Tue, 10 Oct 2017 16:11:07 -0400 > Joseph Brennan <[email protected]> wrote: > > > On Tue, Oct 10, 2017 at 1:48 PM, Michael Fox <[email protected]> wrote: > > > I need to convert base64 to something readable. > > > To be honest I can't think of a reason to do this. Nevertheless, I need to for an old client. So, back to my question: if ($bh = $entity->bodyhandle) ; $qp_body = encode_qp($bh->as_string) } It seems to work (I use md_syslog() to show the first 20 chars). Is that right? Or is there a better way? Then, I see an action_change_header(), but no action_change_body(). So, presume I need to build a new entity by copying headers from the old entity, replacing the Content-Transfer-Encoding header, and replacing the body. Then use replace_entire_message(). Does that sound about right? Michael _______________________________________________ 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