Author |
|
zbang.yaniv Newbie
Joined: 31 January 2012 Location: Israel
Online Status: Offline Posts: 6
|
Posted: 31 January 2012 at 3:06am | IP Logged
|
|
|
Hello,
I am reading a gmail account which has a message with a 3.4MB size attachment.
Its size is read by mailbee 7.0 as 4.8MB.
I recall that the documentation states that size is estimated, but this is a big difference. Could it be due to something else?
Thanks
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 31 January 2012 at 3:09am | IP Logged
|
|
|
Is my understanding correct that attachment is 3.4MB but the message itself is 4.8MB in total? If yes, that's a normal thing as attachments are encoded which makes messages grow in size substantially. This doesn't depend on mail server or client used.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
zbang.yaniv Newbie
Joined: 31 January 2012 Location: Israel
Online Status: Offline Posts: 6
|
Posted: 05 February 2012 at 2:07am | IP Logged
|
|
|
It is the size of the ImapBodyStructure part, so I think it's the attachment's size.
Please have a look at the screen shots:
https://picasaweb.google.com/111666017106644866075/Afterlogic
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 05 February 2012 at 2:12am | IP Logged
|
|
|
According to the documentation page, ImapBodyStructure.Size property returns size of MIME part in encoded state. Thus, looks like the behavior matches the expected one.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
zbang.yaniv Newbie
Joined: 31 January 2012 Location: Israel
Online Status: Offline Posts: 6
|
Posted: 06 February 2012 at 3:51am | IP Logged
|
|
|
So in this specific scenario, how exactly do I retrieve the attached file size?
Can I test if it's base64 and if so, divide it by 1.33 ?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 06 February 2012 at 4:04am | IP Logged
|
|
|
As long as this is about attachment size, Attachment.Size property should be used.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|