Skip to content

Commit

Permalink
GetNextUID was not working for POP3SessionOpenPop. (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiamurialdo authored May 25, 2023
1 parent 72f8f1a commit 852481b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion dotnet/src/dotnetframework/GxMail/POP3SessionOpenPop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public override void Login(GXPOP3Session sessionInfo)
client.Authenticate(UserName, Password, OpenPop.Pop3.AuthenticationMethod.Auto);
count = client.GetMessageCount();
uIds = client.GetMessageUids();
uIds.Insert(0, string.Empty);
}
catch (PopServerNotAvailableException e)
{
Expand Down
1 change: 0 additions & 1 deletion dotnet/src/dotnetframework/GxMail/Pop3MailKit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public override void Login(GXPOP3Session sessionInfo)
BasicAuth(_sessionInfo, client);
count = client.Count;
uIds = (List<string>)client.GetMessageUids();
/*uIds.Insert(0, string.Empty);*/

}
catch (NotSupportedException e)
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/dotnetframework/GxMail/Pop3SessionBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public virtual string GetNextUID(GXPOP3Session session)
if (lastReadMessage == count)
{
LogDebug("No messages to receive", "No messages to receive", MailConstants.MAIL_NoMessages, log);
return "";
return string.Empty;
}
int nextMessage = lastReadMessage + 1;
int zeroBasedIndexForNextMessage = nextMessage - 1;
Expand Down

0 comments on commit 852481b

Please sign in to comment.