Feature Requests: Browse | Submit New | Admin

[#1051] S/MIME parsing of application/pkcs7-mime message data.

Date:
2004-11-15 06:05
Priority:
3
Submitted By:
Matt Armstrong (matta)
Assigned To:
Matt Armstrong (matta)
Category:
None
State:
Open
Summary:
S/MIME parsing of application/pkcs7-mime message data.

Detailed description
From: merlin hughes <>
Subject: RubyMail compliments + suggestions
To: matt@lickey.com
Date: Sun Feb 15 14:03:16 2004 -0800

[1. text/plain]

Hi Matt,

I just wanted to compliment you on RubyMail. I've long wanted to write a
plaintext mail viewer for mh, but to date never found a suitable streaming
parser. I ran across RubyMail last week, and it does exactly what I want.

The viewer itself is at http://merlin.org/ruby/ .. I don't claim that
it is any good; it merely satisfies my particular needs. Plus, I am a
complete Ruby neophyte - I only started using it in response to finding
RubyMail - so it is not an elegant program.

However, in order to handle signed and embedded MIME messages, I ran
across a few issues; I don't know if you would want to address them in
RubyMail itself:

1. Forced MIME parsing
----------------------

The content of an encapsulated S/MIME message (application/pkcs7-mime)
is a MIME part, but it may not include a MIME-Version header; it can
just look like this:

  --8<--
  Content-Type: multipart/alternative;
          boundary="--=_NextPart_STJ_44733632.104408079"


  ----=_NextPart_STJ_44733632.104408079
  ...
  ----=_NextPart_STJ_44733632.104408079--
  -->8--

RubyMail won't parse this correctly because it doesn't know that it
is MIME. Would you consider adding a parse_mime method to parser.rb
that forces MIME parsing?

    def parse_mime              # :nodoc:
      input = RMail::Parser::PushbackReader.new(@input)
      input.chunk_size = @chunk_size if @chunk_size
      parse_low(input, 1)
      return nil
    end

I can obviously (and do) mix this in myself, but it seems like it could
be generally useful.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
178.email.eml An example S/MIME message. Download
203.email.eml An example S/MIME message. Download

Changes:

Field Old Value Date By
File Added103: 203.email.eml2004-11-15 06:23matta
File Added102: 178.email.eml2004-11-15 06:23matta
File Deleted101: 2004-11-15 06:22matta
File Added101: 178.email.eml2004-11-15 06:22matta
assigned_tonone2004-11-15 06:05matta