Official Content

Sets whether the messages to be received will only be the new ones or all of them. 

Syntax

&DataType.NewMessages = Values

Values

0 Calls to the Receive method will return all the messages in the folder. This is the default value. 
1 Calls to the Receive method will return only the unread messages in the current folder.

Description

MAPISession/OutlookSession: The value of this property will be effective as from the next call to the ChangeFolder method.
POP3Session: POP3 protocol does not provide information about whether an email has been read or not. Therefore, setting this value to 1 does not have any effect; the count of all messages will be returned.

Samples

&GXMailExchange.NewMessages=0

Scope

Extended Data Types: MAPISession, OutlookSession, POP3Session
Generators: .NET.NET Framework, Java

See Also

ChangeFolder Method
Login Method
Receive Method
Send Method
MAPISession Data Type
OutlookSession Data Type
POP3Session Data Type

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant