ZeeGee Software

MIME::Parser::Redoer

This module is BETA code, which means that the interfaces are fairly stable BUT it has not been out in the community long enough to guarantee much testing. Use with caution! Please report any errors back to eryq@zeegee.com as soon as you can.


Top NAME

MIME::Parser::Redoer - auxilliary parser logic to re-parse files


Top DESCRIPTION

Sometimes, we might get files which proport to be one format, but which we'd like to treat as another; e.g.:

    Content-type: text/plain
    
    begin 644 Hello.gif
    M1TE&.#=A$P`3`*$``/___P```("`@,#`P"P`````$P`3```"1X2/F<'MSTQ0
    M%(@)YMB\;W%)@$<.(*:5W2F2@<=F8]>LH4P[7)P.T&NZI7Z,(&JF^@B121Y3
    4Y4SNEJ"J]8JZ:JTH(K$"/A0``#L`
    `
    end

These files may in fact be MIME-encoded themselves, but users might still want to detect/extract them. That's what the re-doer does. Every decoded file is visited at least once by every re-doer installed in the parser. If the re-doer sees something interesting, it can use the parser to tweak the parsed entity.


Top PUBLIC INTERFACE

Top redo INSTREAM, ENTITY, PARSER
Instance method. Re-do the given entity. Return false if there does not appear to be anything to [re]do. Return the replacement entity of something was actually done.


Generated Fri Sep 14 02:48:19 2001 by cvu_pod2html