jstedfast / MimeKit

A .NET MIME creation and parser library with support for S/MIME, PGP, DKIM, TNEF and Unix mbox spools.
http://www.mimekit.net
MIT License
1.79k stars 360 forks source link

PgpCore / MimeKit? #1033

Closed PrzemyslawKlys closed 2 months ago

PrzemyslawKlys commented 2 months ago

Is your feature request related to a problem? Please describe. So I am trying to add Pgp support to Mailozaurr, but I kind of fail to get it to work, but then I noticed that's maybe because I don't have pgp installed on my machine? Is your example requiring that?

I tried doing something: https://github.com/EvotecIT/Mailozaurr/compare/ReworkDLL...TryPgp but I ended up sending just pgp attachment ;D

Describe the solution you'd like I am using https://github.com/mattosaurus/PgpCore in most of my Pgp based (powershell/c#) projects as it's native to C#, without need for anything being installed. Would it be possible for you to show how one could use/implement it in Mimekit?

jstedfast commented 2 months ago

but then I noticed that's maybe because I don't have pgp installed on my machine?

You don't need pgp installed, that's what BouncyCastle is for :-)

but I ended up sending just pgp attachment ;D

It will look like a pgp attachment, so that is expected.

PrzemyslawKlys commented 2 months ago

Ok, so I'll try to use it again. I was using Copilot to help me build it with key path, keys and all that, but somehow it was failing to send with the example you have, but was able to get it to work with PgpCore, but I wasn't really sure it was supposed to look like that in Outlook.