jstedfast / MailKit

A cross-platform .NET library for IMAP, POP3, and SMTP.
http://www.mimekit.net
MIT License
6.04k stars 809 forks source link

MimeMessage.Subject == null throws off the MailVisitor. #1725

Closed DierkDroth closed 4 months ago

DierkDroth commented 4 months ago

@jstedfast a few years back when I started using your software I copied the MailVisitor.cs code and amended it for my requirements. Interestingly I just - for the first time - came across a mail where MimeMessage.Subject == null (I did not dig into the cause, but just accepted it as factual).

Anyway, processing that MimeMessage with MailVisitor throws it off at the (fixed) lines in the screenshot below.

I just wanted to let you know. Please ignore if you're already aware of that problem and already addressed it in a later version of MailVisitor.cs

image