-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing data in the MessageDeliveryStatus.SatusGroup #253
Comments
There should not be a blank line. That's a bug in the sending software. You'll have to parse the |
Hello, I have one more question. It is a MessageDispositionNotification which does not contain data in the Fields property. There is no newline.
|
Yes, there should be a blank line after the last key/value pair, but there isn't. I've already worked around that particular bug in this commit: ff223fb |
Actually, reopening this since the first bug you reported is actually a bug, I got confused between message/delivery-status and message/disposition-notification. delivery status messages have multiple header groups. |
Befor commit ff223fb throws "Failed to parse headers." Now is empty Fields. |
Seems to work fine for me with your test message: using System;
using System.IO;
using System.Linq;
using System.Text;
using MimeKit;
namespace TestCase
{
class Program
{
static void Main (string[] args)
{
var message = MimeMessage.Load (args[0]);
var mdn = message.BodyParts.OfType<MessageDispositionNotification> ().FirstOrDefault ();
foreach (var header in mdn.Fields) {
Console.WriteLine ("{0}: {1}", header.Field, header.Value);
}
}
}
} output is:
Try with the latest commit. |
Thanks with current version of the master everything works. |
Awesome :) |
FWIW, I'll try to release a new version within the next few days. |
I have published a new version of MimeKit that fixes this issue to nuget |
Hello,
I processing MessageDeliveryStatus and I came across a problem that SatusGroup property not contain all data that are in the email.
What I discovered as missing data that is after blank line.
I send a sample email.
The text was updated successfully, but these errors were encountered: