in my example program the call of GetMessage() set's always the seen-flag on message that is download. How can i avoid this?

oImap.GetMessage(oMessageInfo.UniqueId, srMsgMemStream)

I've already sent you the logfile per email.

asked 25 Mar '11, 14:06

martin's gravatar image

martin
745
accept rate: 0%


By default, Rebex IMAP marks messages as Seen (that's what read messages are called in IMAP) when you call GetMessage/GetMailMessage/GetMimeMessage, or GetMessageInfo/GetMessageList with ImapListFields.Body flag.

This behavior can be disabled using `UsePeekForGetMessage` option:

C#:

client.Options |= ImapOptions.UsePeekForGetMessage;

VB.NET:

client.Options = client.Options Or ImapOptions.UsePeekForGetMessage

(where "client" is an instance of "Imap" object)

link

answered 25 Mar '11, 14:46

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

edited 16 May '11, 15:17

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
90117

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×76
×17

Asked: 25 Mar '11, 14:06

Seen: 700 times

Last updated: 16 May '11, 15:17