Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: question about DownloadEnvelopes Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
grosquickkk
Newbie
Newbie


Joined: 26 March 2013
Location: France
Online Status: Offline
Posts: 8
Posted: 27 March 2013 at 1:04pm | IP Logged Quote grosquickkk

Hi, I use this

Code:
MailBee.ImapMail.EnvelopeCollection myMail = _Imap.DownloadEnvelopes (pCollection.ToString (), true, EnvelopeParts.MailBeeEnvelope | EnvelopeParts.MessagePreview   ,0);


to get some information about a collection of emails.
It's important to have the flag "seen" no updated while downloading the enleloppe, so I use
Code:
EnvelopeParts.MailBeeEnvelope | EnvelopeParts.MessagePreview


But I need to have BodyPlainText and attachments too, but with this, it allways return an empty string.

How to have those informations without downloading the email (important to not update the "seen" flag)
Back to Top View grosquickkk's Profile Search for other posts by grosquickkk
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 27 March 2013 at 11:23pm | IP Logged Quote Igor

Supplying 0 for bodyPreviewSize means you only download headers, body will not be downloaded in such case. To download message body, supply a number of bytes for message body to be downloaded. If you put some big value, e.g. 100000000, this will result in downloading messages entirely yet Seen flag isn't going to be set.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
grosquickkk
Newbie
Newbie


Joined: 26 March 2013
Location: France
Online Status: Offline
Posts: 8
Posted: 28 March 2013 at 1:06am | IP Logged Quote grosquickkk

Thank you, it work fine
Back to Top View grosquickkk's Profile Search for other posts by grosquickkk
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 23 July 2015 at 5:20am | IP Logged Quote Alex

Starting from 9.0, big value of "100000000" is not needed. Simply pass -2 (to avoid \Seen flag being set) or -1 (to have \Seen flag set) and this will download the entire message in both cases.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

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