Attachments not downloading entirely