Skip to content

Commit 1b31b9e

Browse files
GetNextUID was not working for POP3SessionOpenPop. (#819)
(cherry picked from commit 852481b)
1 parent 9c3b1b3 commit 1b31b9e

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

dotnet/src/dotnetframework/GxMail/POP3SessionOpenPop.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public override void Login(GXPOP3Session sessionInfo)
3535
client.Authenticate(UserName, Password, OpenPop.Pop3.AuthenticationMethod.Auto);
3636
count = client.GetMessageCount();
3737
uIds = client.GetMessageUids();
38-
uIds.Insert(0, string.Empty);
3938
}
4039
catch (PopServerNotAvailableException e)
4140
{

dotnet/src/dotnetframework/GxMail/Pop3MailKit.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public override void Login(GXPOP3Session sessionInfo)
5858
BasicAuth(_sessionInfo, client);
5959
count = client.Count;
6060
uIds = (List<string>)client.GetMessageUids();
61-
/*uIds.Insert(0, string.Empty);*/
6261

6362
}
6463
catch (NotSupportedException e)

dotnet/src/dotnetframework/GxMail/Pop3SessionBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public virtual string GetNextUID(GXPOP3Session session)
5454
if (lastReadMessage == count)
5555
{
5656
LogDebug("No messages to receive", "No messages to receive", MailConstants.MAIL_NoMessages, log);
57-
return "";
57+
return string.Empty;
5858
}
5959
int nextMessage = lastReadMessage + 1;
6060
int zeroBasedIndexForNextMessage = nextMessage - 1;

0 commit comments

Comments
 (0)