6.0.0-beta1
7/26/25

[#837] S/MIME support
Summary S/MIME support
Queue IMP
Queue Version HEAD
Type Bug
State Not A Bug
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester dbondtmp1 (at) datanaut (dot) com
Created 11/17/2004 (7556 days ago)
Due
Updated 11/20/2004 (7553 days ago)
Assigned 11/19/2004 (7554 days ago)
Resolved 11/20/2004 (7553 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/20/2004 10:49:11 PM Michael Slusarz Comment #4
State ⇒ Not A Bug
Reply to this comment
This really has nothing to do with composition of messages, but rather 
viewing.  I am revamping the S/MIME code to more closely resemble the 
PGP code so this will be taken care of with those changes.
11/19/2004 05:07:24 PM Jan Schneider Comment #3 Reply to this comment
Can you please create a unified diff and add that as an attachment to 
the ticket?
11/19/2004 05:04:25 PM Chuck Hagenbuch Assigned to Michael Slusarz
State ⇒ Assigned
 
11/19/2004 05:01:53 PM ctnpublic-horde (at) yahoo (dot) com Comment #2 Reply to this comment
I ran into the same/similar problem.  Diagnosis and suggested fix follow.



There is an assumption in imp/lib/MIME/Viewer/pkcs7.php that the MIME 
Content-Type header is in the message body.



Both Microsoft Outlook and IMP generate an S/MIME message with the 
Content-Type header in the message header.



This fix picks up the header from the mime_part object, when necessary.



Also add support for (Outlook's) application/pkcs7* content-types.



And added a couple of (missing?) requires.



RCS file: /repository/imp/lib/MIME/Viewer/pkcs7.php,v

retrieving revision 1.49

diff -r1.49 pkcs7.php

108a109
             case 'application/pkcs7-signature':
112a114
             case 'application/pkcs7-mime':
251a254
             require_once IMP_BASE . '/lib/MIME/Headers.php';
253c256,260

<             $headers->addHeader('Content-Type', 
$this->_headers['content-type']);

---
             if (isset($this->_headers['Content-Type'])) {
                 $headers->addHeader('Content-Type', 
$this->_headers['Content-Type']);
             } else if (isset($this->_headers['content-type'])) {
                 $headers->addHeader('Content-Type', 
$this->_headers['content-type']);
             }
316c323,326

<                 $this->_headers = 
&MIME_Structure::parseMIMEHeaders($text, true, true);

---
                 require_once 'Horde/MIME/Structure.php';
                 if (!($this->_headers = 
&MIME_Structure::parseMIMEHeaders($text, true, true))) {
                     $this->_headers = $this->mime_part->header();
                 }
11/17/2004 03:18:41 PM dbondtmp1 (at) datanaut (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ S/MIME support
Queue ⇒ IMP
Reply to this comment
S/MIME encryption does not work. When I send S/MIME encrypted message 
from IMP the recipient is getting an empty email message.

Saved Queries