Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: uncorret size Mailbox Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Axa
Newbie
Newbie


Joined: 08 November 2019
Online Status: Offline
Posts: 5
Posted: 08 November 2019 at 12:27am | IP Logged Quote Axa

Hi,
i'm using Mailbee Object 9.1 ( activex components) and
the retrieve of the total size of IMAP4/POP3 mailbox is not correct       
( negative number) if the mailbox's dimension is larger then 2GB.
I used IMAP4.RetrieveTotalSize or POP3.PropGetTotalSize.
Has it ever happened to you?
Could it be an overflow?
Any suggestions to overcome it?

Thanks

Monica
Back to Top View Axa's Profile Search for other posts by Axa
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 08 November 2019 at 7:06am | IP Logged Quote Alex

Hi Monica,

Long data type max value is indeed 2GB.

You can use msgSizes=IMAP.RetrieveMessagesSize(1, -1, False)

and then go through the returned collection (with For or For Each) and summing all values into a separate variable which has higher capacity than Long type.

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