Re: Encrypted/Signed Smime not displayed

Michael J Rubinsky <[email protected]> Sat, 25 Nov 2017 15:26:40 +0000
Newsgroups gmane.comp.horde.imp
Message-ID <20171125152640.Horde.tGE8VsFd1Tl5WoOrVoxWCGY@h4.theupstairsroom.com>
Quoting Philipp Faeustlin <[email protected]>:

> 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: [email protected]



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject

-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
(unnamed) (application/pgp-keys, 9.1 KB) - not displayed
signature.asc (application/pgp-signature, 821 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4

iQIcBAABAgAGBQJaGYuxAAoJEJGSgkbRsxbbZOcP/i3D+8XaTJcE1s8PtYAbM9o9
8Sdwwe7LofsB1pqD7+h9kKVHnjh/K+KT8U3fspR04z3UBeAIHe7OHAKmt5dXcCRJ
fS57tAYEPJrbNnckl0RuCHbSVCKdzY2CNb7OSfUKFzw7/bqttAnrJyJh0+7bncZP
wuG/3ph1bQ503Ac1jGv0g73R1wLh60BgZuTfAFKTFtK+yeYz7ouNTLhY4yZMDId2
xAsZui9qcfBZmZcgpq0HD/LIb0p20ApLVP8CnFqPtzUW7bdqnYRf1Cd7XGRWeg6F
dFskz/yiQXfltRhlxvP9S1B9thkZmZWnjJrx6aTWLp1Lwb6LIqUutBdMRP5qa4pl
l6qj3sS3/MvaDVt4+HiKLRhVJUT0eXKgVYvKiO8jbn7bsJOcLy3hBQa4zNK7GPhN
1FlIeZ87tqXeI6flowUYCeNyuGa12+XKRzXivD9ewWJu4Lp23Cy4iEeWILpjuprx
aJFBUxIBl4S9ewc5Tx+ODWRFUP1E9mfLWC2/3fmZPNGfuzjA1xd+rujbGsMsUiR7
bdr2hukzI+rmHDcJv9+YzJ99PVd9J1FpG4RUX276ZqqmBPCY9CIZUeiqC0ll4UG3
3vb9MBGutWPPS1yBc2K/TF2e7NO7VGqjS4GoxniKV+z7/e7Fm+891PzEsUJjZ/IH
1bjMw15s8ip9JX5gUrs1
=NO9z
-----END PGP SIGNATURE-----