Skip to content

Saving the original message stream in case of an exception #198

Description

@dieks

Hi,

I am evaluating MailKit as the base library for an adapter I'm building. The adapter will be part of a larger application integration framework.
So far Mailkit looks promising.

I have a question though. One of my requirements is the ability to save the original stream (whenever possible and for as much as possible) in case of an exception while parsing it.
The purpose of this would mainly be to record problematic emails either for manual processing (in case of exceptions in production environments we need a way to continue the workflow)
or to slap the developer on the server/other end in the face with.

In https://github.com/jstedfast/MailKit/blob/master/README.md you say:
"It [MailKit] also parses messages directly from the socket instead of downloading the message into a
large string buffer before parsing it (...)"
This leads me to believe it could be difficult to record the complete message stream.
I'd appreciate it if you could give me some advice on how to implement this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionA question about how to do something

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions