We have an old process (VBScript) that reads a shared mailbox and processes certain emails in a database.
The new rules contain all messages with attachments currently attached.
Now the process retrieves only one file (smime.p7m). Using a GUI-based viewer, I see embedded files and retrieve them without problems. However, I really need a command-line extractor that writes out embedded files (PDF files, DOC, XLS) - they are not encrypted, but simply signed. I tested this with a laptop that did not have certificates, and simply opened the smime.p7m file with the above view.
It seems that OpenSSL decrypts / extracts this, and someone managed to get the version compiled on Windows. However, many of the trial and trial versions of the executable were disappointing because I could not find the right combination of flags to just say "open the smime.p7m file and write out all the built-in files that you find." "openssl smime" always seems to want "cert.pem" after all the options, and I don't have one.
What am I missing? Thanks in advance.
David source
share