MsgKit icon indicating copy to clipboard operation
MsgKit copied to clipboard

Can you make a MsgKitLite based on MimeKitLite?

Open gmarbury opened this issue 1 year ago • 3 comments

Whenever I add MsgKit to my project it pulls in all the crypto stuff that I'm not wanting anyway. This also seems to mess up the .Net Native Compiler for UWP. I know Xamarin is going away ( basically dead) but being able to save MSG files based on MimeKitLite would be cool, and maybe even bring in MailKitLite so you can send them. As an alternative, can you give me quick c# function that only requires a reference to OpenMcdf and MimeKitLite to save a MsgFile given a complete MimeMessage ?

gmarbury avatar Apr 22 '24 02:04 gmarbury

Sure I can look into it... I did not even know there was a MimeKit lite :-)

Sicos1977 avatar Apr 24 '24 10:04 Sicos1977

I pulled the code down and saved a copy of MsgKit.csproj as MsgKitLite.csproj in the same folder changing only the nuget reference from MimeKit to MimeKitLite and everything just compiled as is.

gmarbury avatar Apr 24 '24 14:04 gmarbury

I'm probably going to make a separate package with the conversion class in it so that we get rid of the mimekit dependency in MsgKit.

Sicos1977 avatar Apr 29 '24 12:04 Sicos1977