6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/27/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#837] S/MIME support
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..__..__..__ .__. |\/|| || |[ __| | | ||__\|__|[_./|__\
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(); > >> } > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers