Skip to content

Commit

Permalink
Use the rawValue field directly instead of the property getter
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Aug 21, 2019
1 parent bdb4d0d commit 0fbe02e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MimeKit/Header.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public byte[] RawValue {
public string Value {
get {
if (textValue == null)
textValue = Unfold (Rfc2047.DecodeText (Options, RawValue));
textValue = Unfold (Rfc2047.DecodeText (Options, rawValue));

return textValue;
}
Expand Down Expand Up @@ -434,7 +434,7 @@ public string GetValue (Encoding encoding)
var options = Options.Clone ();
options.CharsetEncoding = encoding;

return Unfold (Rfc2047.DecodeText (options, RawValue));
return Unfold (Rfc2047.DecodeText (options, rawValue));
}

/// <summary>
Expand Down Expand Up @@ -1027,7 +1027,7 @@ internal byte[] GetRawValue (FormatOptions format)
{
if (format.International) {
if (textValue == null)
textValue = Unfold (Rfc2047.DecodeText (Options, RawValue));
textValue = Unfold (Rfc2047.DecodeText (Options, rawValue));

// Note: if we're reformatting to be International, then charset doesn't matter.
return FormatRawValue (format, CharsetUtils.UTF8);
Expand Down

0 comments on commit 0fbe02e

Please sign in to comment.