[imp] Encrypted/Signed Smime not displayed

Michael J Rubinsky mrubinsk at horde.org
Sat Nov 25 15:26:40 UTC 2017


Quoting Philipp Faeustlin <philipp.faeustlin at uni-hohenheim.de>:

> Hi there,
>
> I have encrypted and signed smime mails out of a Groupwise Client  
> that are not displayed correctly. The signed message is only  
> displayed as attachment "smime.p7m" File.
>
> These mails have an encrypted outer section:
> ---
> Content-Type: application/x-pkcs7-mime; name=smime.p7m
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment;
> ---
> Within the encrypted part, there is a signed part with the message as:
> ---
> Content-Type: application/pkcs7-mime
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename="smime.p7m";
> ---
>
> I think the ASN1 decoding of the decrypted "smime.p7m" file probably  
> doesn't work correct.
>
> Because if the signed part is declared as
> "Content-Type: application/x-pkcs7-mime; name=smime.p7m;  
> smime-type=signed-data", with the smime-type field signed-data, the  
> message is displayed.
>
> I researched the code and found a one line hack/work-around to  
> display the messages correctly.
>
> I added to the [webdir]/imp/lib/Mime/Viewer/Smime.php the following  
> on line 234:
> $new_part->setContentTypeParameter('smime-type', 'signed-data');
>
> With this line added my problem is solved, but I'm not sure if this  
> is the right solution to this problem. Or the other way round, I  
> can't say what problem this line can cause.
> Any ideas of a better solution?\

What version of IMP are you using?

>
> Best regards
> -- 
> Philipp Fäustlin
>
> -- 
> imp mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9272 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/imp/attachments/20171125/97768c6d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 821 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/imp/attachments/20171125/97768c6d/attachment-0001.bin>


More information about the imp mailing list