Author |
|
talaattito Groupie
Joined: 05 October 2011 Location: Egypt
Online Status: Offline Posts: 44
|
Posted: 23 November 2012 at 3:49pm | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 23 November 2012 at 9:03pm | IP Logged
|
|
|
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 |
|
|
talaattito Groupie
Joined: 05 October 2011 Location: Egypt
Online Status: Offline Posts: 44
|
Posted: 24 November 2012 at 12:22am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 24 November 2012 at 1:11am | IP Logged
|
|
|
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 |
|
|
talaattito Groupie
Joined: 05 October 2011 Location: Egypt
Online Status: Offline Posts: 44
|
Posted: 24 November 2012 at 1:38am | IP Logged
|
|
|
sorry im try again it work but it take more times i whant know whats happen when i put -1?
thanks
|
Back to Top |
|
|
talaattito Groupie
Joined: 05 October 2011 Location: Egypt
Online Status: Offline Posts: 44
|
Posted: 24 November 2012 at 2:09am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 26 November 2012 at 1:07am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 23 July 2015 at 5:22am | IP Logged
|
|
|
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 |
|
|