Android Question POP Download never completes

goldmagnet

Member
Licensed User
Longtime User
Hi

I am having an issue with downloading messages with large attachments. Basically my code works for all emails except those that contain multiple large attachments. I don't get any errors its just that the completed event never fires. The same emails download in less than a minute via the mail app on the same device.

My code is identical to the tutorial example.

Is there a limitation in the library ?

Thanks

Huw
 

goldmagnet

Member
Licensed User
Longtime User
Hi again

As part of troubleshooting i changed download to downloadtop and the code works and the completed event fires, the same email never completes with the original download statement.

The email had 5 attachments and a total size of 8 meg.

Huw
 
Upvote 0

goldmagnet

Member
Licensed User
Longtime User
OK any idea how I can download an email with 5 attachments using POP, I take it the library is not suitable ? It does work on some emails but others never complete.

I put logging in around the code (this is Erels example code) and it just fails inside the pop library, no messages, just never returns.

The same email loads on everything I try it on (except B4A POP) and all images are valid, I am using 5 images from the default Windows 7 media folder..

Huw
 
Last edited:
Upvote 0

goldmagnet

Member
Licensed User
Longtime User
Yes I have, nothing shows in the logs at all, it just never returns. It works perfectly for single files of 8 meg, just will fail when there are multiple files adding up to 8 meg. Is there any way to monitor the status of the pop download process ?
 
Upvote 0

goldmagnet

Member
Licensed User
Longtime User
No I have logging in and it never returns from the download call, its before the parser as the download completed event never fires.

I guess I can set a flag and a timer when I call download, and then check the flag after a timeout period and if the flag is still set I can use POP.closenow to force the connections to close. At least this means it can have another go at downloading it. This is a shame as I was 90% through this project, but without being able to reliably download files/monitor download status I am uncomfortable releasing it....

Huw
 
Upvote 0
Top