Skip to content

Commit 2c8fca1

Browse files
committedSep 14, 2021
Add support for a MailKitLite package
1 parent a2835b2 commit 2c8fca1

File tree

5 files changed

+442
-0
lines changed

5 files changed

+442
-0
lines changed
 

‎MailKit/MailKitLite.csproj

+275
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,275 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<Description>An Open Source cross-platform .NET mail-client library that is based on MimeKit and optimized for mobile devices.</Description>
5+
<AssemblyTitle>MailKit</AssemblyTitle>
6+
<VersionPrefix>2.15.0</VersionPrefix>
7+
<Authors>Jeffrey Stedfast</Authors>
8+
<TargetFrameworks>netstandard2.0;netstandard2.1;net45;net46;net47;net48;net50</TargetFrameworks>
9+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
10+
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
11+
<AssemblyName>MailKitLite</AssemblyName>
12+
<PackageId>MailKitLite</PackageId>
13+
<PackageTags>smtp;pop3;imap;mime;security;dkim;smime;s/mime;openpgp;pgp;mbox;mail;email;parser;tnef;net45;net46;net47;net48;net50;netstandard;netstandard2.0</PackageTags>
14+
<PackageProjectUrl>https://github.com/jstedfast/MailKit</PackageProjectUrl>
15+
<PackageLicenseUrl>https://github.com/jstedfast/MailKit/blob/master/License.md</PackageLicenseUrl>
16+
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
17+
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
18+
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
19+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
20+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
21+
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
22+
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
23+
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
24+
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
25+
<RootNamespace>MailKit</RootNamespace>
26+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
27+
<AssemblyOriginatorKeyFile>mailkit.snk</AssemblyOriginatorKeyFile>
28+
<DefineConstants>$(DefineConstants);MAILKIT_LITE</DefineConstants>
29+
<SignAssembly>true</SignAssembly>
30+
<DebugSymbols>true</DebugSymbols>
31+
</PropertyGroup>
32+
33+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
34+
<DebugType>full</DebugType>
35+
</PropertyGroup>
36+
37+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
38+
<DebugType>portable</DebugType>
39+
</PropertyGroup>
40+
41+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' And $(TargetFramework.StartsWith('net4')) ">
42+
<DebugType>full</DebugType>
43+
</PropertyGroup>
44+
45+
<PropertyGroup Condition=" $(TargetFramework.StartsWith('net4')) Or $(TargetFramework.StartsWith('net5')) ">
46+
<DefineConstants>$(DefineConstants);SERIALIZABLE</DefineConstants>
47+
</PropertyGroup>
48+
49+
<!--ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) ">
50+
<Reference Include="System.Net" />
51+
</ItemGroup-->
52+
53+
<ItemGroup>
54+
<ProjectReference Include="..\submodules\MimeKit\MimeKit\MimeKitLite.csproj" />
55+
</ItemGroup>
56+
57+
<ItemGroup>
58+
<Compile Remove="Net\SelectMode.cs;Security\KeyedHashAlgorithm.cs;Security\RandomNumberGenerator.cs" />
59+
</ItemGroup>
60+
61+
<ItemGroup>
62+
<Compile Include="Net\Imap\AsyncImapClient.cs" />
63+
<Compile Include="Net\Imap\IImapClient.cs" />
64+
<Compile Include="Net\Imap\IImapFolder.cs" />
65+
<Compile Include="Net\Imap\ImapAuthenticationSecretDetector.cs" />
66+
<Compile Include="Net\Imap\ImapCallbacks.cs" />
67+
<Compile Include="Net\Imap\ImapCapabilities.cs" />
68+
<Compile Include="Net\Imap\ImapClient.cs" />
69+
<Compile Include="Net\Imap\ImapCommand.cs" />
70+
<Compile Include="Net\Imap\ImapCommandException.cs" />
71+
<Compile Include="Net\Imap\ImapCommandResponse.cs" />
72+
<Compile Include="Net\Imap\ImapEncoding.cs" />
73+
<Compile Include="Net\Imap\ImapEngine.cs" />
74+
<Compile Include="Net\Imap\ImapEventGroup.cs" />
75+
<Compile Include="Net\Imap\ImapFolder.cs" />
76+
<Compile Include="Net\Imap\ImapFolderAnnotations.cs" />
77+
<Compile Include="Net\Imap\ImapFolderConstructorArgs.cs" />
78+
<Compile Include="Net\Imap\ImapFolderFetch.cs" />
79+
<Compile Include="Net\Imap\ImapFolderFlags.cs" />
80+
<Compile Include="Net\Imap\ImapFolderSearch.cs" />
81+
<Compile Include="Net\Imap\ImapImplementation.cs" />
82+
<Compile Include="Net\Imap\ImapProtocolException.cs" />
83+
<Compile Include="Net\Imap\ImapResponseCode.cs" />
84+
<Compile Include="Net\Imap\ImapSearchQueryOptimizer.cs" />
85+
<Compile Include="Net\Imap\ImapStream.cs" />
86+
<Compile Include="Net\Imap\ImapToken.cs" />
87+
<Compile Include="Net\Imap\ImapUtils.cs" />
88+
<Compile Include="Net\Pop3\AsyncPop3Client.cs" />
89+
<Compile Include="Net\Pop3\IPop3Client.cs" />
90+
<Compile Include="Net\Pop3\Pop3AuthenticationSecretDetector.cs" />
91+
<Compile Include="Net\Pop3\Pop3Capabilities.cs" />
92+
<Compile Include="Net\Pop3\Pop3Client.cs" />
93+
<Compile Include="Net\Pop3\Pop3Command.cs" />
94+
<Compile Include="Net\Pop3\Pop3CommandException.cs" />
95+
<Compile Include="Net\Pop3\Pop3Engine.cs" />
96+
<Compile Include="Net\Pop3\Pop3Language.cs" />
97+
<Compile Include="Net\Pop3\Pop3ProtocolException.cs" />
98+
<Compile Include="Net\Pop3\Pop3Stream.cs" />
99+
<Compile Include="Net\Proxy\HttpProxyClient.cs" />
100+
<Compile Include="Net\Proxy\HttpsProxyClient.cs" />
101+
<Compile Include="Net\Proxy\IProxyClient.cs" />
102+
<Compile Include="Net\Proxy\ProxyClient.cs" />
103+
<Compile Include="Net\Proxy\ProxyProtocolException.cs" />
104+
<Compile Include="Net\Proxy\Socks4aClient.cs" />
105+
<Compile Include="Net\Proxy\Socks4Client.cs" />
106+
<Compile Include="Net\Proxy\Socks5Client.cs" />
107+
<Compile Include="Net\Proxy\SocksClient.cs" />
108+
<Compile Include="Net\Smtp\AsyncSmtpClient.cs" />
109+
<Compile Include="Net\Smtp\ISmtpClient.cs" />
110+
<Compile Include="Net\Smtp\SmtpAuthenticationSecretDetector.cs" />
111+
<Compile Include="Net\Smtp\SmtpCapabilities.cs" />
112+
<Compile Include="Net\Smtp\SmtpClient.cs" />
113+
<Compile Include="Net\Smtp\SmtpCommandException.cs" />
114+
<Compile Include="Net\Smtp\SmtpDataFilter.cs" />
115+
<Compile Include="Net\Smtp\SmtpProtocolException.cs" />
116+
<Compile Include="Net\Smtp\SmtpResponse.cs" />
117+
<Compile Include="Net\Smtp\SmtpStatusCode.cs" />
118+
<Compile Include="Net\Smtp\SmtpStream.cs" />
119+
<Compile Include="Net\IChannelBindingContext.cs" />
120+
<Compile Include="Net\NetworkStream.cs" />
121+
<Compile Include="Net\SocketUtils.cs" />
122+
<Compile Include="Net\SslStream.cs" />
123+
<Compile Include="Properties\AssemblyInfo.cs" />
124+
<Compile Include="Search\AnnotationSearchQuery.cs" />
125+
<Compile Include="Search\BinarySearchQuery.cs" />
126+
<Compile Include="Search\DateSearchQuery.cs" />
127+
<Compile Include="Search\FilterSearchQuery.cs" />
128+
<Compile Include="Search\HeaderSearchQuery.cs" />
129+
<Compile Include="Search\ISearchQueryOptimizer.cs" />
130+
<Compile Include="Search\NumericSearchQuery.cs" />
131+
<Compile Include="Search\OrderBy.cs" />
132+
<Compile Include="Search\OrderByAnnotation.cs" />
133+
<Compile Include="Search\OrderByType.cs" />
134+
<Compile Include="Search\SearchOptions.cs" />
135+
<Compile Include="Search\SearchQuery.cs" />
136+
<Compile Include="Search\SearchResults.cs" />
137+
<Compile Include="Search\SearchTerm.cs" />
138+
<Compile Include="Search\SortOrder.cs" />
139+
<Compile Include="Search\TextSearchQuery.cs" />
140+
<Compile Include="Search\UidSearchQuery.cs" />
141+
<Compile Include="Search\UnarySearchQuery.cs" />
142+
<Compile Include="Security\Ntlm\BitConverterLE.cs" />
143+
<Compile Include="Security\Ntlm\DES.cs" Condition=" $(TargetFramework.StartsWith('netstandard1.')) " />
144+
<Compile Include="Security\Ntlm\HMACMD5.cs" Condition=" $(TargetFramework.StartsWith('netstandard1.')) " />
145+
<Compile Include="Security\Ntlm\MD4.cs" />
146+
<Compile Include="Security\Ntlm\NtlmAttribute.cs" />
147+
<Compile Include="Security\Ntlm\NtlmAttributeValuePair.cs" />
148+
<Compile Include="Security\Ntlm\NtlmFlags.cs" />
149+
<Compile Include="Security\Ntlm\NtlmMessageBase.cs" />
150+
<Compile Include="Security\Ntlm\NtlmSingleHostData.cs" />
151+
<Compile Include="Security\Ntlm\NtlmTargetInfo.cs" />
152+
<Compile Include="Security\Ntlm\NtlmUtils.cs" />
153+
<Compile Include="Security\Ntlm\RC4.cs" />
154+
<Compile Include="Security\Ntlm\Type1Message.cs" />
155+
<Compile Include="Security\Ntlm\Type2Message.cs" />
156+
<Compile Include="Security\Ntlm\Type3Message.cs" />
157+
<Compile Include="Security\AuthenticationException.cs" />
158+
<Compile Include="Security\SaslException.cs" />
159+
<Compile Include="Security\SaslMechanism.cs" />
160+
<Compile Include="Security\SaslMechanismAnonymous.cs" />
161+
<Compile Include="Security\SaslMechanismCramMd5.cs" />
162+
<Compile Include="Security\SaslMechanismDigestMd5.cs" />
163+
<Compile Include="Security\SaslMechanismLogin.cs" />
164+
<Compile Include="Security\SaslMechanismNtlm.cs" />
165+
<Compile Include="Security\SaslMechanismOAuth2.cs" />
166+
<Compile Include="Security\SaslMechanismOAuthBearer.cs" />
167+
<Compile Include="Security\SaslMechanismPlain.cs" />
168+
<Compile Include="Security\SaslMechanismScramBase.cs" />
169+
<Compile Include="Security\SaslMechanismScramSha1.cs" />
170+
<Compile Include="Security\SaslMechanismScramSha256.cs" />
171+
<Compile Include="Security\SaslMechanismScramSha512.cs" />
172+
<Compile Include="Security\SecureSocketOptions.cs" />
173+
<Compile Include="Security\SslHandshakeException.cs" />
174+
<Compile Include="AccessControl.cs" />
175+
<Compile Include="AccessControlList.cs" />
176+
<Compile Include="AccessRight.cs" />
177+
<Compile Include="AccessRights.cs" />
178+
<Compile Include="AlertEventArgs.cs" />
179+
<Compile Include="Annotation.cs" />
180+
<Compile Include="AnnotationAccess.cs" />
181+
<Compile Include="AnnotationAttribute.cs" />
182+
<Compile Include="AnnotationEntry.cs" />
183+
<Compile Include="AnnotationsChangedEventArgs.cs" />
184+
<Compile Include="AnnotationScope.cs" />
185+
<Compile Include="AppendRequest.cs" />
186+
<Compile Include="AuthenticatedEventArgs.cs" />
187+
<Compile Include="BodyPart.cs" />
188+
<Compile Include="BodyPartBasic.cs" />
189+
<Compile Include="BodyPartCollection.cs" />
190+
<Compile Include="BodyPartMessage.cs" />
191+
<Compile Include="BodyPartMultipart.cs" />
192+
<Compile Include="BodyPartText.cs" />
193+
<Compile Include="BodyPartVisitor.cs" />
194+
<Compile Include="CommandException.cs" />
195+
<Compile Include="ConnectedEventArgs.cs" />
196+
<Compile Include="DeliveryStatusNotification.cs" />
197+
<Compile Include="DeliveryStatusNotificationType.cs" />
198+
<Compile Include="DisconnectedEventArgs.cs" />
199+
<Compile Include="Envelope.cs" />
200+
<Compile Include="FetchRequest.cs" />
201+
<Compile Include="FolderAccess.cs" />
202+
<Compile Include="FolderAttributes.cs" />
203+
<Compile Include="FolderCreatedEventArgs.cs" />
204+
<Compile Include="FolderFeature.cs" />
205+
<Compile Include="FolderNamespace.cs" />
206+
<Compile Include="FolderNamespaceCollection.cs" />
207+
<Compile Include="FolderNotFoundException.cs" />
208+
<Compile Include="FolderNotOpenException.cs" />
209+
<Compile Include="FolderQuota.cs" />
210+
<Compile Include="FolderRenamedEventArgs.cs" />
211+
<Compile Include="HeaderSet.cs" />
212+
<Compile Include="IAuthenticationSecretDetector.cs" />
213+
<Compile Include="IAppendRequest.cs" />
214+
<Compile Include="IFetchRequest.cs" />
215+
<Compile Include="IMailFolder.cs" />
216+
<Compile Include="IMailFolderAppendExtensions.cs" />
217+
<Compile Include="IMailFolderFetchExtensions.cs" />
218+
<Compile Include="IMailFolderStoreExtensions.cs" />
219+
<Compile Include="IMailService.cs" />
220+
<Compile Include="IMailSpool.cs" />
221+
<Compile Include="IMailStore.cs" />
222+
<Compile Include="IMailTransport.cs" />
223+
<Compile Include="IMessageSummary.cs" />
224+
<Compile Include="IProtocolLogger.cs" />
225+
<Compile Include="IReplaceRequest.cs" />
226+
<Compile Include="IStoreFlagsRequest.cs" />
227+
<Compile Include="IStoreLabelsRequest.cs" />
228+
<Compile Include="IStoreRequest.cs" />
229+
<Compile Include="ITransferProgress.cs" />
230+
<Compile Include="MailFolder.cs" />
231+
<Compile Include="MailService.cs" />
232+
<Compile Include="MailSpool.cs" />
233+
<Compile Include="MailStore.cs" />
234+
<Compile Include="MailTransport.cs" />
235+
<Compile Include="MessageEventArgs.cs" />
236+
<Compile Include="MessageFlags.cs" />
237+
<Compile Include="MessageFlagsChangedEventArgs.cs" />
238+
<Compile Include="MessageLabelsChangedEventArgs.cs" />
239+
<Compile Include="MessageNotFoundException.cs" />
240+
<Compile Include="MessageSentEventArgs.cs" />
241+
<Compile Include="MessageSorter.cs" />
242+
<Compile Include="MessageSummary.cs" />
243+
<Compile Include="MessageSummaryFetchedEventArgs.cs" />
244+
<Compile Include="MessageSummaryItems.cs" />
245+
<Compile Include="MessagesVanishedEventArgs.cs" />
246+
<Compile Include="MessageThread.cs" />
247+
<Compile Include="MessageThreader.cs" />
248+
<Compile Include="Metadata.cs" />
249+
<Compile Include="MetadataChangedEventArgs.cs" />
250+
<Compile Include="MetadataCollection.cs" />
251+
<Compile Include="MetadataOptions.cs" />
252+
<Compile Include="MetadataTag.cs" />
253+
<Compile Include="ModSeqChangedEventArgs.cs" />
254+
<Compile Include="NullProtocolLogger.cs" />
255+
<Compile Include="ProgressStream.cs" />
256+
<Compile Include="ProtocolException.cs" />
257+
<Compile Include="ProtocolLogger.cs" />
258+
<Compile Include="ReplaceRequest.cs" />
259+
<Compile Include="ServiceNotAuthenticatedException.cs" />
260+
<Compile Include="ServiceNotConnectedException.cs" />
261+
<Compile Include="SpecialFolder.cs" />
262+
<Compile Include="StatusItems.cs" />
263+
<Compile Include="StoreAction.cs" />
264+
<Compile Include="StoreFlagsRequest.cs" />
265+
<Compile Include="StoreLabelsRequest.cs" />
266+
<Compile Include="ThreadingAlgorithm.cs" />
267+
<Compile Include="UniqueId.cs" />
268+
<Compile Include="UniqueIdMap.cs" />
269+
<Compile Include="UniqueIdRange.cs" />
270+
<Compile Include="UniqueIdSet.cs" />
271+
<Compile Include="UriExtensions.cs" />
272+
<Compile Include="WebAlertEventArgs.cs" />
273+
</ItemGroup>
274+
275+
</Project>

‎MailKit/Net/Imap/ImapClient.cs

+5
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ async Task CompressAsync (bool doAsync, CancellationToken cancellationToken)
289289
if (engine.State >= ImapEngineState.Selected)
290290
throw new InvalidOperationException ("Compression must be enabled before selecting a folder.");
291291

292+
#if MAILKIT_LITE
293+
await Task.Delay (0).ConfigureAwait (false);
294+
throw new NotSupportedException ("MailKitLite does not support the COMPRESS extension.");
295+
#else
292296
int capabilitiesVersion = engine.CapabilitiesVersion;
293297
var ic = engine.QueueCommand (cancellationToken, null, "COMPRESS DEFLATE\r\n");
294298

@@ -304,6 +308,7 @@ async Task CompressAsync (bool doAsync, CancellationToken cancellationToken)
304308
}
305309

306310
engine.Stream.Stream = new CompressedStream (engine.Stream.Stream);
311+
#endif
307312
}
308313

309314
/// <summary>

‎MailKit/Net/NetworkStream.cs

+2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,10 @@ public override void SetLength (long value)
261261

262262
public static NetworkStream Get (Stream stream)
263263
{
264+
#if !MAILKIT_LITE
264265
if (stream is CompressedStream compressed)
265266
stream = compressed.InnerStream;
267+
#endif
266268

267269
if (stream is SslStream ssl)
268270
stream = ssl.InnerStream;

‎MailKitLite.sln

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30114.105
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D5001AA9-4C61-475F-8EA3-4C15949D849F}"
7+
ProjectSection(SolutionItems) = preProject
8+
.editorconfig = .editorconfig
9+
EndProjectSection
10+
EndProject
11+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MimeKitLite", "submodules\MimeKit\MimeKit\MimeKitLite.csproj", "{23F999AF-CF50-42FF-A011-D56D68E60FB9}"
12+
EndProject
13+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MailKitLite", "MailKit\MailKitLite.csproj", "{D6EBFBF3-5806-43A0-B3B3-02EF25C47A9C}"
14+
EndProject
15+
Global
16+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
17+
Debug|Any CPU = Debug|Any CPU
18+
Release|Any CPU = Release|Any CPU
19+
EndGlobalSection
20+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
21+
{23F999AF-CF50-42FF-A011-D56D68E60FB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
22+
{23F999AF-CF50-42FF-A011-D56D68E60FB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
23+
{23F999AF-CF50-42FF-A011-D56D68E60FB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
24+
{23F999AF-CF50-42FF-A011-D56D68E60FB9}.Release|Any CPU.Build.0 = Release|Any CPU
25+
{D6EBFBF3-5806-43A0-B3B3-02EF25C47A9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26+
{D6EBFBF3-5806-43A0-B3B3-02EF25C47A9C}.Debug|Any CPU.Build.0 = Debug|Any CPU
27+
{D6EBFBF3-5806-43A0-B3B3-02EF25C47A9C}.Release|Any CPU.ActiveCfg = Release|Any CPU
28+
{D6EBFBF3-5806-43A0-B3B3-02EF25C47A9C}.Release|Any CPU.Build.0 = Release|Any CPU
29+
EndGlobalSection
30+
GlobalSection(SolutionProperties) = preSolution
31+
HideSolutionNode = FALSE
32+
EndGlobalSection
33+
GlobalSection(ExtensibilityGlobals) = postSolution
34+
SolutionGuid = {80311676-045A-4523-8BD6-AEAD1F21474C}
35+
EndGlobalSection
36+
EndGlobal

‎nuget/MailKitLite.nuspec

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata minClientVersion="2.12">
4+
<id>MailKitLite</id>
5+
<version>2.15.0</version>
6+
<title>MailKit</title>
7+
<authors>Jeffrey Stedfast</authors>
8+
<owners>Jeffrey Stedfast</owners>
9+
<license type="expression">MIT</license>
10+
<projectUrl>http://www.mimekit.net</projectUrl>
11+
<repository type="git" url="https://github.com/jstedfast/MailKit" />
12+
<icon>icons\mailkit-50.png</icon>
13+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
14+
<description>MailKit is an Open Source cross-platform .NET mail-client library that is based on MimeKit and optimized for mobile devices.
15+
16+
Features include:
17+
* HTTP, Socks4, Socks4a and Socks5 proxy support.
18+
* SASL Authentication via CRAM-MD5, DIGEST-MD5, LOGIN, NTLM, OAUTHBEARER, PLAIN, SCRAM-SHA-1, SCRAM-SHA-256, SCRAM-SHA-512 and XOAUTH2.
19+
* A fully-cancellable SmtpClient with support for STARTTLS, 8BITMIME, BINARYMIME, ENHANCEDSTATUSCODES, SIZE, DSN, PIPELINING and SMTPUTF8.
20+
* A fully-cancellable Pop3Client with support for STLS, UIDL, APOP, PIPELINING, UTF8, and LANG.
21+
* A fully-cancellable ImapClient with support for ACL, QUOTA, LITERAL+, IDLE, NAMESPACE, ID, CHILDREN, LOGINDISABLED, STARTTLS, MULTIAPPEND, UNSELECT, UIDPLUS, CONDSTORE, ESEARCH, SASL-IR, COMPRESS, WITHIN, ENABLE, QRESYNC, SORT, THREAD, ANNOTATE, LIST-EXTENDED, ESORT, METADATA / METADATA-SERVER, NOTIFY, FILTERS, LIST-STATUS, SORT=DISPLAY, SPECIAL-USE / CREATE-SPECIAL-USE, SEARCH=FUZZY, MOVE, UTF8=ACCEPT / UTF8=ONLY, LITERAL-, APPENDLIMIT, STATUS=SIZE, OBJECTID, REPLACE, SAVEDATE, XLIST, and X-GM-EXT1.
22+
* Client-side sorting and threading of messages (the Ordinal Subject and the Jamie Zawinski threading algorithms are supported).
23+
* Asynchronous versions of all methods that hit the network.
24+
* S/MIME, OpenPGP, DKIM and ARC support via MimeKit.
25+
* Microsoft TNEF support via MimeKit.
26+
</description>
27+
<summary>An Open Source .NET mail-client library for Windows, Mac, Linux, and mobile platforms such as iOS and Android.</summary>
28+
<releaseNotes>
29+
* Use DebugType=full for .NET Framework v4.x. (issue [#1239](https://github.com/jstedfast/MailKit/issues/1239))
30+
* Updated GMail SSL certificate serial numbers and fingerprints.
31+
* Small NTLM code improvements.
32+
33+
API Changes Since 2.0.x:
34+
35+
* Obsoleted SearchQuery.HasCustomFlags() and SearchQuery.DoesNotHaveCustomFlags(). These are now SearchQuery.HasKeywords() and SearchQuery.NotKeywords(), respectively.
36+
* Obsoleted SearchQuery.DoesNotHaveFlags() in favor of SearchQuery.NotFlags().
37+
* Obsoleted the IMessageSummary.UserFlags property in favor of IMessageSummary.Keywords.
38+
* Obsoleted the MessageFlagsChangedEventArgs.UserFlags property in favor of MessageFlagsChangedEventArgs.Keywords.
39+
* All IMailFolder.Fetch and IMailFolder.FetchAsync methods that took a HashSet&lt;string&gt; userFlags argument now take an IEnumerable&lt;string&gt; keywords argument. Note: this only affects you if your code used named method parameters (e.g. userFlags: myUserFlags).
40+
41+
Note to users upgrading from MailKit 1.x:
42+
43+
In order to authenticate using the XOAUTH2 SASL mechanism, you must now use the following approach:
44+
45+
client.Authenticate (new SaslMechanismOAuth2 (username, auth_token));
46+
</releaseNotes>
47+
<copyright>.NET Foundation and Contributors</copyright>
48+
<language>en-US</language>
49+
<tags>smtp pop3 imap mime security arc dkim smime s/mime openpgp pgp mbox mail email parser tnef net45 net46 net47 net48 net50 netstandard netstandard2.0</tags>
50+
<frameworkAssemblies>
51+
<frameworkAssembly assemblyName="System" targetFramework=".NETFramework4.5" />
52+
<frameworkAssembly assemblyName="System.Core" targetFramework=".NETFramework4.5" />
53+
<frameworkAssembly assemblyName="System.Data" targetFramework=".NETFramework4.5" />
54+
<frameworkAssembly assemblyName="System.Net.Http" targetFramework=".NETFramework4.5" />
55+
<frameworkAssembly assemblyName="System" targetFramework=".NETFramework4.6" />
56+
<frameworkAssembly assemblyName="System.Core" targetFramework=".NETFramework4.6" />
57+
<frameworkAssembly assemblyName="System.Data" targetFramework=".NETFramework4.6" />
58+
<frameworkAssembly assemblyName="System.Net.Http" targetFramework=".NETFramework4.6" />
59+
<frameworkAssembly assemblyName="System" targetFramework=".NETFramework4.7" />
60+
<frameworkAssembly assemblyName="System.Core" targetFramework=".NETFramework4.7" />
61+
<frameworkAssembly assemblyName="System.Data" targetFramework=".NETFramework4.7" />
62+
<frameworkAssembly assemblyName="System.Net.Http" targetFramework=".NETFramework4.7" />
63+
<frameworkAssembly assemblyName="System" targetFramework=".NETFramework4.8" />
64+
<frameworkAssembly assemblyName="System.Core" targetFramework=".NETFramework4.8" />
65+
<frameworkAssembly assemblyName="System.Data" targetFramework=".NETFramework4.8" />
66+
<frameworkAssembly assemblyName="System.Net.Http" targetFramework=".NETFramework4.8" />
67+
<frameworkAssembly assemblyName="System" targetFramework="monoandroid" />
68+
<frameworkAssembly assemblyName="System.Core" targetFramework="monoandroid" />
69+
<frameworkAssembly assemblyName="System.Data" targetFramework="monoandroid" />
70+
<frameworkAssembly assemblyName="System.Net.Http" targetFramework="monoandroid" />
71+
<frameworkAssembly assemblyName="System" targetFramework="xamarinios" />
72+
<frameworkAssembly assemblyName="System.Core" targetFramework="xamarinios" />
73+
<frameworkAssembly assemblyName="System.Data" targetFramework="xamarinios" />
74+
<frameworkAssembly assemblyName="System.Net.Http" targetFramework="xamarinios" />
75+
</frameworkAssemblies>
76+
<dependencies>
77+
<group targetFramework="net45">
78+
<dependency id="MimeKit" version="2.15.0" />
79+
</group>
80+
<group targetFramework="net46">
81+
<dependency id="MimeKit" version="2.15.0" />
82+
</group>
83+
<group targetFramework="net47">
84+
<dependency id="MimeKit" version="2.15.0" />
85+
</group>
86+
<group targetFramework="net48">
87+
<dependency id="MimeKit" version="2.15.0" />
88+
</group>
89+
<group targetFramework="net50">
90+
<dependency id="MimeKit" version="2.15.0" />
91+
</group>
92+
<group targetFramework="netstandard2.0">
93+
<dependency id="MimeKit" version="2.15.0" />
94+
</group>
95+
<group targetFramework="netstandard2.1">
96+
<dependency id="MimeKit" version="2.15.0" />
97+
</group>
98+
</dependencies>
99+
</metadata>
100+
<files>
101+
<file src="..\MailKit\bin\Release\netstandard2.0\MailKit.dll" target="lib\netstandard2.0\MailKit.dll" />
102+
<file src="..\MailKit\bin\Release\netstandard2.0\MailKit.pdb" target="lib\netstandard2.0\MailKit.pdb" />
103+
<file src="..\MailKit\bin\Release\netstandard2.0\MailKit.xml" target="lib\netstandard2.0\MailKit.xml" />
104+
<file src="..\MailKit\bin\Release\netstandard2.1\MailKit.dll" target="lib\netstandard2.1\MailKit.dll" />
105+
<file src="..\MailKit\bin\Release\netstandard2.1\MailKit.pdb" target="lib\netstandard2.1\MailKit.pdb" />
106+
<file src="..\MailKit\bin\Release\netstandard2.1\MailKit.xml" target="lib\netstandard2.1\MailKit.xml" />
107+
<file src="..\MailKit\bin\Release\net45\MailKit.dll" target="lib\net45\MailKit.dll" />
108+
<file src="..\MailKit\bin\Release\net45\MailKit.pdb" target="lib\net45\MailKit.pdb" />
109+
<file src="..\MailKit\bin\Release\net45\MailKit.xml" target="lib\net45\MailKit.xml" />
110+
<file src="..\MailKit\bin\Release\net46\MailKit.dll" target="lib\net46\MailKit.dll" />
111+
<file src="..\MailKit\bin\Release\net46\MailKit.pdb" target="lib\net46\MailKit.pdb" />
112+
<file src="..\MailKit\bin\Release\net46\MailKit.xml" target="lib\net46\MailKit.xml" />
113+
<file src="..\MailKit\bin\Release\net47\MailKit.dll" target="lib\net47\MailKit.dll" />
114+
<file src="..\MailKit\bin\Release\net47\MailKit.pdb" target="lib\net47\MailKit.pdb" />
115+
<file src="..\MailKit\bin\Release\net47\MailKit.xml" target="lib\net47\MailKit.xml" />
116+
<file src="..\MailKit\bin\Release\net48\MailKit.dll" target="lib\net48\MailKit.dll" />
117+
<file src="..\MailKit\bin\Release\net48\MailKit.pdb" target="lib\net48\MailKit.pdb" />
118+
<file src="..\MailKit\bin\Release\net48\MailKit.xml" target="lib\net48\MailKit.xml" />
119+
<file src="..\MailKit\bin\Release\net50\MailKit.dll" target="lib\net50\MailKit.dll" />
120+
<file src="..\MailKit\bin\Release\net50\MailKit.pdb" target="lib\net50\MailKit.pdb" />
121+
<file src="..\MailKit\bin\Release\net50\MailKit.xml" target="lib\net50\MailKit.xml" />
122+
<file src="mailkit-50.png" target="icons\mailkit-50.png" />
123+
</files>
124+
</package>

0 commit comments

Comments
 (0)
Please sign in to comment.