GetNextUID Method

Official Content
This documentation is valid for:
Returns the UID of the following message.  



Type Returned:

This parameter is Character, the UID of the following message in the present section.


The UID is a chain that identifies each message in a unique manner. It is useful when messages received are kept in a database and are not deleted from the POP3 server.  In these cases, the UID of each message can be obtained before receiving the message, and this UID will be kept with the corresponding message. If there is already a message with the UID obtained, it is possible to skip it with the Skip method, instead of receiving it again.  This mechanism is particularly useful when using a POP3 server that does not support the NewMessages property. 

Some servers cannot support this method. In these cases, error 30 is received. 

This method returns an error code, so there is the possibility of calling it as a function (I.E.: &Err = &POP3Session.GetNextUID()).


Extended Data Types: POP3Session
Languages: .NET, Java, Visual FoxPro (up to GeneXus X Evolution 3)

See Also

POP3Session Data Type