Permalink
Browse files

2.4.4 release, removing UID variants of Pop3Client.DeleteMessage whic…

…h didn't work.
1 parent 0d9798e commit 77961dd32f621ac64aa0cea0b1582c109418e513 @bertjohnson committed Feb 16, 2017
View
@@ -1,5 +1,8 @@
### Changelog ###
+2.4.4 - 2017-02-16
+ * Removed UID variants of `Pop3Client.DeleteMessage`, as deletion only works based on index.
+
2.4.3 - 2017-01-09
* Fixed bug when headers contained high-byte characters after the 78th index.
@@ -47,5 +47,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.4.3")]
-[assembly: AssemblyFileVersion("2.4.3")]
+[assembly: AssemblyVersion("2.4.4")]
+[assembly: AssemblyFileVersion("2.4.4")]
@@ -47,5 +47,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.4.3")]
-[assembly: AssemblyFileVersion("2.4.3")]
+[assembly: AssemblyVersion("2.4.4")]
+[assembly: AssemblyFileVersion("2.4.4")]
@@ -46,5 +46,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.4.3")]
-[assembly: AssemblyFileVersion("2.4.3")]
+[assembly: AssemblyVersion("2.4.4")]
+[assembly: AssemblyFileVersion("2.4.4")]
@@ -46,5 +46,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.4.3")]
-[assembly: AssemblyFileVersion("2.4.3")]
+[assembly: AssemblyVersion("2.4.4")]
+[assembly: AssemblyFileVersion("2.4.4")]
@@ -46,5 +46,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.4.3")]
-[assembly: AssemblyFileVersion("2.4.3")]
+[assembly: AssemblyVersion("2.4.4")]
+[assembly: AssemblyFileVersion("2.4.4")]
View
@@ -38,7 +38,7 @@ PROJECT_NAME = "OpaqueMail"
# could be handy for archiving the generated documentation or if some version
# control system is used.
-PROJECT_NUMBER = 2.4.3
+PROJECT_NUMBER = 2.4.4
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
@@ -300,15 +300,6 @@ public bool DeleteMessage(int index)
/// <summary>
/// Delete a message from the server based on its index.
/// </summary>
- /// <param name="uid">UID of the message to delete.</param>
- public bool DeleteMessageUid(string uid)
- {
- return Task.Run(() => DeleteMessageAsync(uid)).Result;
- }
-
- /// <summary>
- /// Delete a message from the server based on its index.
- /// </summary>
/// <param name="index">Index of the message to delete.</param>
public async Task<bool> DeleteMessageAsync(int index)
{
@@ -322,21 +313,6 @@ public bool DeleteMessageUid(string uid)
}
/// <summary>
- /// Delete a message from the server based on its UID.
- /// </summary>
- /// <param name="uid">UID of the message to delete.</param>
- public async Task<bool> DeleteMessageAsync(string uid)
- {
- // Protect against commands being called out of order.
- if (!IsAuthenticated)
- throw new Pop3Exception("Must be connected to the server and authenticated prior to calling the DELE command.");
-
- await SendCommandAsync("DELE " + uid + "\r\n");
- await ReadDataAsync();
- return LastCommandResult;
- }
-
- /// <summary>
/// Delete a series of messages from the server based on their indices.
/// </summary>
/// <param name="indices">Array of message indices to delete.</param>
@@ -367,36 +343,6 @@ public bool DeleteMessages(int[] indices)
}
/// <summary>
- /// Delete a series of messages from the server based on their UIDs.
- /// </summary>
- /// <param name="uids">Array of message UIDs to delete.</param>
- public bool DeleteMessages(string[] uids)
- {
- return Task.Run(() => DeleteMessagesAsync(uids)).Result;
- }
-
- /// <summary>
- /// Delete a series of messages from the server based on their UIDs.
- /// </summary>
- /// <param name="uids">Array of message UIDs to delete.</param>
- public async Task<bool> DeleteMessagesAsync(string[] uids)
- {
- // Protect against commands being called out of order.
- if (!IsAuthenticated)
- throw new Pop3Exception("Must be connected to the server and authenticated prior to calling the DELE command.");
-
- bool returnValue = true;
- foreach (string uid in uids)
- {
- await SendCommandAsync("DELE " + uid + "\r\n");
- await ReadDataAsync();
- returnValue &= LastCommandResult;
- }
-
- return returnValue;
- }
-
- /// <summary>
/// Sends a QUIT message to the POP3 server, gracefully ends the TCP connection, and releases all resources used by the current instances of the OpaqueMail.Pop3Client class.
/// </summary>
public void Dispose()
@@ -47,5 +47,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.4.3")]
-[assembly: AssemblyFileVersion("2.4.3")]
+[assembly: AssemblyVersion("2.4.4")]
+[assembly: AssemblyFileVersion("2.4.4")]

0 comments on commit 77961dd

Please sign in to comment.