Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Email::MIME::XPath 0.005

    Download button

    No screenshots available
    Downloads: 391  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Very Good (4.0/5)
    1 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Hans Dieter Pearcey | More programs
    Perl Artistic License / FREE
    March 11th, 2008, 21:55 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Email::MIME::XPath description

    A Perl module that allows you to access MIME documents via XPath queries

    Email::MIME::XPath is a Perl module that allows you to access MIME documents via XPath queries.

    SYNOPSIS

    use Email::MIME;
    use Email::MIME::XPath;

    my $email = Email::MIME->new($data);

    # find just the first text/plain node, no matter how many there are
    my ($part) = $email->xpath_findnodes('//plain');

    # find the only text/html node, and die if there is more than one
    $part = $email->xpath_findnode('//html');

    # look for a png by filename
    $part = $email->xpath_findnode('//png[@filename="image.png"]');

    # retrieve a part by previously-stored address
    my $address = $part->xpath_address;
    # ... later ...
    $part = $email->xpath_findnode(qq{//*[@address="$address"]});


    Dealing with MIME messages can be complicated. Frequently you want to display certain parts of a message, while alluding to (linking, summarizing, whatever) other parts in a way that makes them easy to get to later. Sometimes this can go several levels deep, if you're dealing with forwarded messages, bounces, or reports of some kind.

    It is especially referring back to sub-parts of an arbitrarily deep MIME message that is tedious and that this module attempts to make easier.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    MIME documents | XPath queries | Perl module | MIME | documents | XPath

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM