For bureaucratic reasons, a colleague of mine had to print, sign, scan and send by email a high number of pages. To save trees, ink, time, and to stick it...
Extract the PKCS#7 object:
$ openssl smime -verify -in file.msg -noverify -pk7out > file.pk7
Dump the certificates in that file
openssl pkcs7 -print_certs -in file.pk7 > file.pem
Open the file in your favorite text editor and seperate out each certificate individually in to it's own file and import:
For each CA certificate that you want to trust:
smime_keys add_root file.pem
Note: You do not need to trust all intermediate CAs. You can simply trust the end-user certificate.
For the subject certificate that you want to add:
smime_keys add_cert file.pem
S. Adafre, и M. de Rijke. Proceedings of the ACL Workshop on Feature Engineering for Machine Learning in Natural Language Processing, стр. 9--16. Stroudsburg, PA, USA, Association for Computational Linguistics, (2005)
E. Agirre, и A. Soroa. Proceedings of the Fourth International Workshop on Semantic Evaluations (SemEval-2007), стр. 7--12. Prague, Czech Republic, Association for Computational Linguistics, (июня 2007)
E. Alfonseca, K. Filippova, J. Delort, и G. Garrido. Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics: Short Papers - Volume 2, стр. 54--59. Stroudsburg, PA, USA, Association for Computational Linguistics, (2012)
J. Artiles, E. Amigó, и J. Gonzalo. Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing: Volume 2 - Volume 2, стр. 534--542. Stroudsburg, PA, USA, Association for Computational Linguistics, (2009)
M. Banko, M. Cafarella, S. Soderland, M. Broadhead, и O. Etzioni. Proceedings of the 20th International Joint Conference on Artifical Intelligence, стр. 2670--2676. San Francisco, CA, USA, Morgan Kaufmann Publishers Inc., (2007)