If you use the standard imap client to pull out the email, you will receive an attachment. This will be one of the parts. Psuedo Code:
email = new->email_object();
remote_mailbox = new->imap_object_creator(username, password, ...)
while (email = remote_mailbox->download_next_email) {
foreach part_type (email->parts->next) {
if( part_type == 'attachment' ) {
}
}
}
When I did this, I wrote it in Perl, so I used the MIME :: Tools suite to store email and IMAP :: Client as my imap client. But any language should have common objects to represent IMAP and email connections.
source
share