Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: At What Point is An Email Considered Read Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
zedekiah
Groupie
Groupie


Joined: 24 June 2009
Location: United States
Online Status: Offline
Posts: 44
Posted: 30 June 2009 at 11:04am | IP Logged Quote zedekiah

is it after
imp.DownloadEnvelopes

or
after
imp.DownloadEntireMessage(env.Uid, true);

or none of the above?
Back to Top View zedekiah's Profile Search for other posts by zedekiah
 
zedekiah
Groupie
Groupie


Joined: 24 June 2009
Location: United States
Online Status: Offline
Posts: 44
Posted: 30 June 2009 at 11:08am | IP Logged Quote zedekiah

How do you get the Body from the Envelope?
Back to Top View zedekiah's Profile Search for other posts by zedekiah
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 01 July 2009 at 12:57am | IP Logged Quote Andrew

Quote:
At What Point is An Email Considered Read


Usually, IMAP servers mark a message as read when you completely download the message.

In order to download messages without marking them as read, fetch them via this overload of Imap.DownloadEnvelopes method:

The key is to use parts = EnvelopeParts.MessagePreview and bodyPreviewSize = -1. This will download entire messages within envelopes and should prevent setting SEEN flag. If setting bodyPreviewSize to -1 doesn't work for particular IMAP server you use (some IMAP servers have different behavior), try setting it to something way bigger than any message, say 999999999.

Quote:
How do you get the Body from the Envelope?


In the same way as attachments. I've described it to you in this topic. In you need bodies and attachments, it's preferable to use the second approach, i.e. download envelope with message preview.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide