Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: body size Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
talaattito
Groupie
Groupie
Avatar

Joined: 05 October 2011
Location: Egypt
Online Status: Offline
Posts: 44
Posted: 23 November 2012 at 3:49pm | IP Logged Quote talaattito

please im used mailbee 7
im using DownloadEnvelopes Event Not DownloadEntireMessages
--------------------------------------------------------
envs = imp.DownloadEnvelopes("1", False, EnvelopeParts.MessagePreview, body size ???????)
---------------------------------------------------------------
there is any way to get the actual size value of the body of the specified message or i must be put approximately value for the body size

where i want to download complete body without attchments

please if there is any way give me example in vb.net
very thanks
Back to Top View talaattito's Profile Search for other posts by talaattito
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 23 November 2012 at 9:03pm | IP Logged Quote Igor

Try supplying either -1 or a large number which is guaranteed to exceed body size of any mail message you're going to process.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
talaattito
Groupie
Groupie
Avatar

Joined: 05 October 2011
Location: Egypt
Online Status: Offline
Posts: 44
Posted: 24 November 2012 at 12:22am | IP Logged Quote talaattito

when i put -1 the program crash
what the appropriate large number that can exceed body size of any mail message ?
thanks
Back to Top View talaattito's Profile Search for other posts by talaattito
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 24 November 2012 at 1:11am | IP Logged Quote Igor

Quote:
when i put -1 the program crash


How exactly does it crash? Do you get any error messages?

Quote:
what the appropriate large number that can exceed body size of any mail message ?


While we don't know what kind of messages you're dealing with, the value like 100000000 (rougly 100Mb) would probably be fine to cover any message you might get.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
talaattito
Groupie
Groupie
Avatar

Joined: 05 October 2011
Location: Egypt
Online Status: Offline
Posts: 44
Posted: 24 November 2012 at 1:38am | IP Logged Quote talaattito

sorry im try again it work but it take more times i whant know whats happen when i put -1?
thanks
Back to Top View talaattito's Profile Search for other posts by talaattito
 
talaattito
Groupie
Groupie
Avatar

Joined: 05 October 2011
Location: Egypt
Online Status: Offline
Posts: 44
Posted: 24 November 2012 at 2:09am | IP Logged Quote talaattito

when i put -1 it works fine with messges that not has attachments but if the message has attachments it take more times
i whant download the message body without any attamnets this is my problem
please any help?
very thanks
Back to Top View talaattito's Profile Search for other posts by talaattito
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 26 November 2012 at 1:07am | IP Logged Quote Igor

My mistake, sorry. If you supply -1 there, that means you download entire message with all the attachments. You need to supply a number of bytes which covers most email messages, 15000-20000 would probably be fine. Feel free to experiment with the value to find one which meets your requirements.

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

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

Starting from MailBee.NET Objects v9.0, big value of "100000000" is not needed. Instead of 100000000, 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