Use BODY.PEEK instead of BODY in Imap object's GetMessage, GetsMessageInfo, GetMailMessage, GetMimeMessage, GetMessageList and Search methods. Unlike BODY, BODY.PEEK doesn't set the message's Seen flag.

Namespace:  Rebex.Net
Assembly:  Rebex.Imap (in Rebex.Imap.dll)

Syntax

Visual Basic
Public Property UsePeekForGetMessage As Boolean
	Get
	Set
C#
public bool UsePeekForGetMessage { get; set; }

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also