Author |
|
Axa Newbie
Joined: 08 November 2019
Online Status: Offline Posts: 5
|
Posted: 08 November 2019 at 12:27am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 08 November 2019 at 7:06am | IP Logged
|
|
|
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 |
|
|