Jump to content

help - how to download email attachments in 'stealth'


paritycheck

Recommended Posts

Hi guys I need some help here.

 

I 've built a simple email application that:

 

1. connects with an imap mail server and checks for new mail.

2. Downloads all new emails and attachments and inserts emails into local db and attachments into local folders

3. retrieves inbox information from db

so far its working fine but the thing is that at step 2 it takes a while to download attachments and of course unless all attachments are downloaded it won't proceed to step 3 and since we get loads of attachments this is quite a tedious wait.

 

Is there any way to download the attachments behind the scenes like so that all messages are downloaded but the attachments are put in a queue like process being downloaded while the user can access his emails - if lets say he opens an email that has an attachments that isn't downloaded - the email doesn't show an active attachment link to the downloaded file until its finished downloading - I guess theres gonna be ajax in use here.

 

Any idea guys I really need help on this ;D

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.