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
1
vote
1 answer

How to exclude the signature and quoted parts from email message using MimeKit?

Is it possible to detect which parts of the email message are signature and previous messages quoted to this message for excluding those parts, using the MimeKit?
Rojan Gh.
  • 1,062
  • 1
  • 9
  • 32
1
vote
1 answer

Mailkit: fetch messages from specific folder

I´m trying to fetch all messages uids from specific folder to extract all posible information. If input is "INBOX" the output are all messages from all folders in emails. If the input is the folder I want to get uids, it returns "The requested…
ZiZaK
  • 11
  • 2
1
vote
1 answer

Using mailkit to retrieve email chains, returns only the first email of the conversation

I'm developing an email client using mailkit. I need to display emails as conversations like how it's getting displayed in webmail clients. When I try to fetch data using mailkit for a complete email thread, I'm able to retrieve only the first email…
nbsamurai
  • 346
  • 4
  • 13
1
vote
1 answer

Redemption file saving using wrong encoding (maybe)

My current project is an email decryption program using Redemption and MimeKit. It's been a long road but for the most part it is working for our client. However for one external companies messages, the resultant message is corrupted. The output…
DataMosh
  • 61
  • 8
1
vote
0 answers

How do I prevent System.Security.VerificationException for unsafe code on ASP.NET?

i'm developing an ASP.NET Web API 2.0 application based on .Net Framework 4.7 and i'm getting this error while i'm trying to send emails using MailKit. In local my apps runs fine, but when i publish in the hosting, based on Windows Server 2012, i…
1
vote
0 answers

Add attachment to mimekit mimemessage from memory stream in C#?

I want to add xml attachment to mimekit message. I already have a memory stream and content type. How can I construct attachment and add it to mime message? var message = new MimeMessage(); message.From.Add(new…
user12874509
1
vote
0 answers

MimeKit: 'RSACng' is currently not supported

I'm trying to create S/MIME email with MimeKit in the .NET Core App. It's working fine with local certificate like this: var signer = new CmsSigner("cert.pfx", "password"); message.Body = MultipartSigned.Create(ctx, signer, message.Body); To make…
Vlad
  • 852
  • 10
  • 23
1
vote
1 answer

MailKit log file is empty

I'm developing an application ASP.NET, using MailKit v.2.4.1, I'm trying to use ProtocolLogger, but the log file is always empty. This is the code I use: using (SmtpClient smtp = new SmtpClient(new…
PLV
  • 33
  • 6
1
vote
1 answer

Signing S/MIME with Mimekit (Certicate from store)

I want to sign a mime Body with an certificate which is in Windows certmanager store. Same cert works fine to sign Messages with some mailagents (e.g. Outlook, TBird). I'm loading the certificate into "store" X509Store store = new…
cbehh
  • 31
  • 5
1
vote
1 answer

MimeKit howto base64 encode attachment filenames

MimeKit defaults to generate attachment filenames using "encoded-words" "Testfile with æ ø og å.pdf" becomes name*=iso-8859-1''Testfile%20with%20%E6%20%F8%20og%20%E5.pdf I would like to…
Wolle
  • 33
  • 4
1
vote
1 answer

How to sign message body with RSASSA-PSS in mimekit?

I am using Mimekit with .NET Core 2.2. I am trying to sign a message with RSASSA-PSS and cannot find a way to set the signing algorithm for the RSASignaturePadding. Changing the DigestAlgorithm results in the wrong padding to be used. How can I fix…
QmailFan
  • 11
  • 1
1
vote
1 answer

Problems identifying mail attachments in MimeKit with no content-disposition

I have been trying to locate all attachments on an email that has inline attachments with no content-disposition. This is a snippet of the email ----boundary_4451_1ea18041-d01e-46e2-8f88-32770bfba1b7 Content-Type: application/octet-stream;…
S Rosam
  • 375
  • 1
  • 3
  • 16
1
vote
1 answer

Emails' rich characters are mistranslated when read from database using MimeKit

I have a windows service written in VB.Net that downloads emails into MimeMessage objects, removes their attachments, and then writes the remains of the email to a SQL Server database. A separate ASP.Net application (using VB.Net) reads the email…
1
vote
1 answer

Header encoding issues with Mailkit and Mimekit

When I use Mailkit to send emails, I noticed that it automatically decides to encode both the content as well as headers. Now, the content encoding is perfect however some email clients have difficulty decoding the headers which are like. Is there a…
1
vote
2 answers

How to set custom content transfer encoding using MimeKit/MailKit?

This question is about what I think is "breaking the standard" and I understand that it's possible MimeKit is setup to specifically not allow me to do the things I'm asking. These custom messages will be only used internally and not for regular…
Tom Bryant
  • 165
  • 1
  • 12