-
Notifications
You must be signed in to change notification settings - Fork 0
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
Message importance #26
base: main
Are you sure you want to change the base?
Conversation
TRENZ.Lib.RazorMail.SystemNet/Extensions/SystemNetMailMessageExtensions.cs
Show resolved
Hide resolved
5f2bc94
to
2298da0
Compare
/// <summary> | ||
/// The keys for the mail addresses in the collection. | ||
/// </summary> | ||
public static readonly string[] AddressKeys = [ToKey, CcKey, BccKey, ReplyToKey, FromKey]; | ||
|
||
/// <summary> | ||
/// Keys for headers that the <see cref="BaseSmtpMailClient"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either fully qualify the cref oder add a using statement
.ExceptBy(AddressKeys, x => x.Key) | ||
.ToDictionary(x => x.Key, x => x.Value); | ||
|
||
/// <summary> | ||
/// Gets the headers that the <see cref="BaseSmtpMailClient"/> implementation should just iterate over. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here, fully qualify or using
Also in MailHeaderCollection in line 213: Switch from |
@@ -185,7 +185,7 @@ public void AddBlindCarbonCopy(IEnumerable<MailAddress> addresses) => | |||
/// Gets the headers that are not mail addresses and therefore have no getter/setter. | |||
/// </summary> | |||
[Obsolete("This will be removed in a future version.")] | |||
public IReadOnlyDictionary<string, object> NonAddressHeaders => this | |||
private IReadOnlyDictionary<string, object> NonAddressHeaders => this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well... if we change the API, it is a breaking change. I'd have favoured a minor release (since it is already marked obsolete). If we make this change, we can outright just remove the property.
Implements #15.
I'm not implementing mail transfer priority here, because usage seems low.