You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 017f0f9
Browse filesBrowse the repository at this point in the historyBrowse files
/// <param name="message">The message to add the data</param>
139
+
/// <param name="compact">removes the original content string from mime parts. To get the string later, use <see cref="MimePart.DecodeOriginalContent()"/></param>
/// <param name="message">The message to add the data</param>
476
+
/// <param name="compact">removes the original content string from mime parts. To get the string later, use <see cref="MimePart.DecodeOriginalContent()"/></param>
@@ -791,15 +759,16 @@ public static Header ParseHeaderString(string data)
791
759
/// Parses the message.
792
760
/// </summary>
793
761
/// <param name="data">The data.</param>
762
+
/// <param name="compact">removes the original content string from mime parts. To get the string later, use <see cref="MimePart.DecodeOriginalContent()"/></param>
// Fill a new message object with the new information.
805
774
message.OriginalData=data;
@@ -861,8 +830,7 @@ public static Message ParseMessage(byte[] data)
861
830
}
862
831
catch(Exceptionex)
863
832
{
864
-
if(ErrorParsing!=null)
865
-
ErrorParsing(null,ex);
833
+
ErrorParsing?.Invoke(null,ex);
866
834
}
867
835
returnmessage;
868
836
@@ -872,6 +840,7 @@ public static Message ParseMessage(byte[] data)
872
840
/// Parses a MemoryStream's content to a Message object.
873
841
/// </summary>
874
842
/// <param name="inputStream">The MemoryStream containing the Header data to be parsed.</param>
843
+
/// <param name="compact">removes the original content string from mime parts. To get the string later, use <see cref="MimePart.DecodeOriginalContent()"/></param>
875
844
/// <returns>The parsed Header as a Message object.</returns>
876
845
/// <example>
877
846
/// <code>
@@ -894,20 +863,21 @@ public static Message ParseMessage(byte[] data)
/// Parses a Message from a string formatted accordingly to the RFC822.
909
878
/// </summary>
910
879
/// <param name="data">The string containing the message data to be parsed.</param>
880
+
/// <param name="compact">removes the original content string from mime parts. To get the string later, use <see cref="MimePart.DecodeOriginalContent()"/></param>
911
881
/// <returns>The parsed message as a Message object.</returns>
912
882
/// <example>
913
883
/// <code>
@@ -930,10 +900,10 @@ public static Message ParseMessage(MemoryStream inputStream)
@@ -943,6 +913,7 @@ public static Message ParseMessage(string data)
943
913
/// Parses a message from a file to a Message object.
944
914
/// </summary>
945
915
/// <param name="filePath">The path of the file to be parsed.</param>
916
+
/// <param name="compact">removes the original content string from mime parts. To get the string later, use <see cref="MimePart.DecodeOriginalContent()"/></param>
946
917
/// <returns>The parsed message as a Message object.</returns>
947
918
/// <example>
948
919
/// <code>
@@ -965,7 +936,7 @@ public static Message ParseMessage(string data)
0 commit comments