I'm trying to cobble together an app which will run in the background and periodically check an email account for an email from a specific address, which will contain an attachment. The idea is that it'll just save the attachment from that one email to a file where another application can pick it up and use it.
I'm having difficulty finding examples of how to a) find the correct email without trawling through every email in the account (is this even possible?) and b) extract the attachment from the email once I've found it. I have a base64 decoder routine which will handle that part, but I'm not sure how to proceed with the rest of it.
I'm having difficulty finding examples of how to a) find the correct email without trawling through every email in the account (is this even possible?) and b) extract the attachment from the email once I've found it. I have a base64 decoder routine which will handle that part, but I'm not sure how to proceed with the rest of it.