PHP Classes

Mime type for signed message

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Mime type for signed message  >  (Un) Subscribe thread alerts  
Subject:Mime type for signed message
Summary:x-pkcs7-signature is missing in the detection algorithm
Messages:2
Author:Stephan Knauss
Date:2008-04-14 17:44:54
Update:2008-04-15 22:54:01
 

 


  1. Mime type for signed message   Reply   Report abuse  
Picture of Stephan Knauss Stephan Knauss - 2008-04-14 17:44:54
Analyze returned the following message when processing a Thunderbird (2.0.0.12) signed email:

MIME message analyse error: this multipart/signed message does not contain a signature


I checked RFC about MIME Types.

RFC 2311 states:

C.1 Early MIME Types
Some early implementations of S/MIME agents used the following MIME
types:

application/x-pkcs7-mime
application/x-pkcs7-signature
application/x-pkcs10

In each case, the "x-" subtypes correspond to the subtypes described
in this document without the "x-".


So I added x-pkcs7-signature to the switch/case section of your class and it works fine.

What about the other types? Shouldn't they be also added?

Stephan


  2. Re: Mime type for signed message   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-04-15 22:54:01 - In reply to message 1 from Stephan Knauss
The problem is that it is hard to know all past and future message MIME types.

Anyway, I just changed the class to tolerate unknown types of message signatures so it only issues a warning instead of failing in error.