github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

rjbs / email-mime

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 5
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (17)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (17)
    • 1.903
    • 1.902
    • 1.901
    • 1.900
    • 1.863
    • 1.862
    • 1.860
    • 1.859
    • 1.858
    • 1.857
    • 1.856
    • 1.855
    • 1.854
    • 1.853
    • 1.852
    • 1.851
    • 1.85
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

perl library for parsing MIME messages — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

fix typo(?), thanks ambs 
rjbs (author)
Sat Dec 26 08:07:00 -0800 2009
commit  454193fcf855d25bcda94c4b1025d2a6ff0b0e46
tree    eeaa9309aff502fde85ef82eb0cf004c867da8e4
parent  8b1a52a536be289d0a41f70b0d5ecc534c35357a
email-mime /
name age
history
message
file Changes Wed Dec 23 06:13:06 -0800 2009 correct typo in body_set_str (RT #53004) (thank... [rjbs]
file LICENSE Mon Nov 20 06:44:48 -0800 2006 r28280@minion101: rjbs | 2006-11-20 07:25:54 ... [rjbs]
file MANIFEST.SKIP Tue Nov 03 12:43:16 -0800 2009 skip is better than not skip [rjbs]
file Makefile.PL Thu Nov 05 11:28:24 -0800 2009 fix a prereq [rjbs]
file README Loading commit data...
directory lib/
directory t/
README
NAME
    Email::MIME - Easy MIME message parsing.

SYNOPSIS
      use Email::MIME;
      my $parsed = Email::MIME->new($message);

      my Email::MIME @parts = $parsed->parts;
      my $decoded = $parsed->body;
      my $non_decoded = $parsed->body_raw;

      my $content_type = $parsed->content_type;

DESCRIPTION
    This is an extension of the Email::Simple module, to handle MIME encoded
    messages. It takes a message as a string, splits it up into its
    constituent parts, and allows you access to various parts of the
    message. Headers are decoded from MIME encoding.

NOTE
    This is an alpha release, designed to stimulate discussion on the API,
    which may change in future releases. Please send me comments about any
    features you think "Email::MIME" should have. Note that I expect most
    things to be driven by subclassing and mix-ins.

METHODS
    Please see Email::Simple for the base set of methods. It won't take very
    long. Added to that, you have:

  parts
    This returns a set of "Email::MIME" objects reflecting the parts of the
    message. If it's a single-part message, you get the original object
    back.

  body
    This decodes and returns the body of the object. For top-level objects
    in multi-part messages, this is highly likely to be something like "This
    is a multi-part message in MIME format."

  body_raw
    This returns the body of the object, but doesn't decode the transfer
    encoding.

  content_type
    This is a shortcut for access to the content type header.

  filename
    This provides the suggested filename for the attachment part. Normally
    it will return the filename from the headers, but if "filename" is
    passed a true parameter, it will generate an appropriate "stable"
    filename if one is not found in the MIME headers.

AUTHOR
    Casey West, "casey@geeknest.com"

    Simon Cozens, "simon@cpan.org" (retired)

    You may distribute this module under the terms of the Artistic or GPL
    licenses.

THANKS
    This module was generously sponsored by Best Practical
    (http://www.bestpractical.com/) and Pete Sergeant.

SEE ALSO
    Email::Simple.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server