Questions tagged [mimekit]

A cross-platform .NET MIME creation and parser library with support for S/MIME, PGP, TNEF and Unix mbox spools.

A cross-platform .NET MIME creation and parser library with support for S/MIME, PGP, TNEF and Unix mbox spools.

MimeKit is a C# library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME), as defined by numerous IETF specifications.

303 questions
2
votes
1 answer

How to save all messages to a single .mbox file using Mailkit / MimeKit IMAP?

I have been looking for an example of how to save all messages to a single file like a .mbox file and have been unsuccessful. Here is some code that i have tried but is not currently working. var exportStream = new MemoryStream(); foreach (var uid…
AdamH409
  • 83
  • 1
  • 8
2
votes
0 answers

EWS not listing inline images among attachments

I'm using Microsoft.Exchange.WebServices.dll to read signed emails from an Exchange Server. Returned object's property Attachments contains either regular attachments or inline images from the email body. In case the email has both (regular…
2
votes
2 answers

Are there known mail client applications that built on top of MailKit library?

MailKit is a great library but I don't know any mail client that uses it. Is there a list of apps that are built on top of MailKit?
ekalchev
  • 762
  • 7
  • 24
2
votes
1 answer

Open a mail folder in MailKit when there are no folder namespaces

We were having a bit of a problem at a client when trying to open a mail folder and it couldn't be found so I created the below method to try my best to find the folder namespace that the mail folder was under. private FolderNamespace…
TheLethalCoder
  • 6,668
  • 6
  • 34
  • 69
2
votes
2 answers

How to get Message objects from Mail Raw headers in C#

We are using sendgrid services to sending and receive emails from customer and need to parse the mail raw headers objects (Message-ID,Date etc.) from customer mail response in Asp.Net Core WeB API C# application. Please find the example of Email Raw…
vijay
  • 701
  • 2
  • 12
  • 26
2
votes
1 answer

Using mimekit nuget package (via paket) in common project removes existing System.net.http.dll from other projects referencing common project

I had added a new reference of mimekit library (added mimekit and mailkit via paket) in common project used by several other projects. To use mimekit I used below code: using MimeKit; namespace Project.Common.Email.Interfaces { public interface…
2
votes
1 answer

MAILKIT how to Move Messages to folder a get the new UniqueID

MailKit.Net.Imap has MoveTo(...). But if we move the Messages the messages will get new UniqueID (since it's unique by folder). How do I get the new UniqueID of the Message?
Rui Caramalho
  • 455
  • 8
  • 16
2
votes
1 answer

XML file attached to an email contains wrong characters

I am downloading an email with a file "file.xml" attached to it. When I save the file, the file is incorrectly saved with "=" replaced with "3D=". Below is the example:
2
votes
1 answer

Need to change encryption algorithm to AES-256

I wrote a test program to read a users cert from the cert store, and encrypt some text. However, I realize that the encryption algorithm used is 3DES. I need to change this to AES-256. I read a similar post on here, but for me, i think my situation…
Kelvin L
  • 65
  • 1
  • 10
2
votes
1 answer

Using RSASSA-PSS and RSAES-OAEP with MailKit

I have to exchange encrypted & signed e-mails with some business partners. Specific algorithms are required, such as : for signature, RSASSA-PSS as the signature algorithm, for encryption, RSAES-OAEP for key encryption & AES-128 CBC for content…
Adrien
  • 23
  • 4
2
votes
1 answer

MimeKit Character Encoding/Decoding Issue

While using MimeKit to convert .eml files to .msg files, I'm running into an issue that appears to be related to encoding. With an EML file containing the following, for instance: --__NEXTPART_20160610_5EF5CF91_471687D Content-Type: text/plain;…
Michael Coles
  • 33
  • 1
  • 5
2
votes
1 answer

Setting the body of a mimemessage removes other details

Leading on from my previous question, if I set the body of a MimeMessage the attachments, bodyparts, from and all the details are removed. How can I get around this? foreach (MimeKit.MimeEntity bodyPart in tnefMessage.BodyParts) { if…
TheLethalCoder
  • 6,668
  • 6
  • 34
  • 69
2
votes
1 answer

Reading excel attachment data in C# from raw MIME message posted by SendGrid

I have SendGrid posting incoming emails as raw MIME messages to my C# API. Here is an example of the raw payload. I want to be able to open the excel attachments from the incoming MIME message and read the row and column data. Once the API…
Jacob Shanley
  • 893
  • 1
  • 8
  • 19
2
votes
3 answers

Gmail Draft (HTML with Attachment) with MimeKit, C# Winforms and Google API

I am attempting to generate a Gmail draft message in a winforms application using C#. The draft message needs to be in HTML format and able to contain an attachment. I was able to generate a draft with an attachment using AE.Net.Mail, but the draft…
joeschwa
  • 3,083
  • 1
  • 21
  • 41
2
votes
1 answer

Mailkit IMAP gmail - how to send ? online Doumentation does not show how to send in examples

How do you send and email using Imapclient() ? Using the examples on this page: Mimekit Documentation I can't seem to find the method used to send and email once logged into IMAP and created the message. Installed via Nuget and installed latest…
Dina
  • 25
  • 8