From a7d38a04a9ff89fd92f2fa3cf785fec49a4542b1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 12 Jan 2024 17:53:26 -0500 Subject: [PATCH] Added an ITextRfc822Headers interface --- MimeKit/ITextRfc822Headers.cs | 37 +++++++++++++++++++++++++++++++++++ MimeKit/TextRfc822Headers.cs | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 MimeKit/ITextRfc822Headers.cs diff --git a/MimeKit/ITextRfc822Headers.cs b/MimeKit/ITextRfc822Headers.cs new file mode 100644 index 0000000000..44c606619d --- /dev/null +++ b/MimeKit/ITextRfc822Headers.cs @@ -0,0 +1,37 @@ +// +// ITextRfc822Headers.cs +// +// Author: Jeffrey Stedfast +// +// Copyright (c) 2013-2023 .NET Foundation and Contributors +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// + +namespace MimeKit { + /// + /// An interface for a MIME part containing message headers as its content. + /// + /// + /// Represents MIME entities with a Content-Type of text/rfc822-headers. + /// + public interface ITextRfc822Headers : IMessagePart + { + } +} diff --git a/MimeKit/TextRfc822Headers.cs b/MimeKit/TextRfc822Headers.cs index e1ba5bf334..7bcea94250 100644 --- a/MimeKit/TextRfc822Headers.cs +++ b/MimeKit/TextRfc822Headers.cs @@ -33,7 +33,7 @@ namespace MimeKit { /// /// Represents MIME entities with a Content-Type of text/rfc822-headers. /// - public class TextRfc822Headers : MessagePart + public class TextRfc822Headers : MessagePart, ITextRfc822Headers { /// /// Initialize a new instance of the class.