mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-25 07:33:50 +00:00
Upgraded MailKit and MimeKit to v5.0 (#1226)
This commit is contained in:
1 parent
d121ec3b47
commit
f6a4348820
15 files changed
+242
-85
No files matched your search
@@ -35,6 +35,19 @@ public static class MailHeaders
|
||||
return mailboxes;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the address of a mailbox, with an internationalized domain in Unicode, e.g. "müller.example"
|
||||
/// rather than "xn--mller-kva.example".
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// MimeKit decoded such a domain by itself up to version 4, and the index keeps every address in
|
||||
/// this form. The key of a mail depends on it, too, see MailContentKey: in another form, every mail
|
||||
/// from such a domain would be embedded anew.
|
||||
/// </remarks>
|
||||
/// <param name="mailbox">The mailbox, as parsed from a header.</param>
|
||||
/// <returns>The address.</returns>
|
||||
public static string ReadAddress(MailboxAddress mailbox) => mailbox.GetAddress(idnEncode: false);
|
||||
|
||||
/// <summary>
|
||||
/// Reads the Message-IDs of a header, without their angle brackets.
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user