Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Message importance #26

wants to merge 6 commits into from

Conversation

chucker
Copy link
Collaborator

@chucker chucker commented Oct 2, 2024

Implements #15.

I'm not implementing mail transfer priority here, because usage seems low.

@ricardoboss ricardoboss linked an issue Oct 2, 2024 that may be closed by this pull request
/// <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"/>
Copy link
Member

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.
Copy link
Member

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

@ricardoboss
Copy link
Member

Also in MailHeaderCollection in line 213: Switch from NonAddressHeaders to NonSpecificHandledHeaders

@@ -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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message priority
2 participants