[Mimedefang] Opening body parts

David F. Skoll dfs at roaringpenguin.com
Wed Jun 11 12:45:01 EDT 2003


On Wed, 11 Jun 2003, Joseph Brennan wrote:

> I want the html part after decoding of base64 and qp.  I don't
> necessarily want to rewrite the part, just see what's in it.

Here's one way to do it:

if ($io = $entity->open("r")) {
    while (defined($_ = $io->getline)) {
        # Do something with the line $_
    }
    $io->close;
}

Regards,

David.



More information about the MIMEDefang mailing list