Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read/download emails from IMAP account
Message
From
17/03/2014 16:07:29
 
 
To
03/03/2014 09:58:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01595661
Message ID:
01596702
Views:
64
Likes (1)
>Does anyone know how to read/download emails from an IMAP inbox?
>
>I want to connect to the IMAP email account/server to pull down any new emails in the folder. Each email will have a single PDF attached), and then I need to delete the email from the server so it will not get processed a second time. I'm basically using the Inbox like in incoming queue where I need to save that PDF to a local folder, and blah, blah, blah.
>
>I need to use FoxPro to do this, as the subject line will contain a Job Number that I need to verify in the database, and that will tell me where I need to save the PDF.
>
>I supposed I could do all this in .Net and I could lookup of the Job Number from the FoxPro DBF using and ADO query. All I need to do do is very that it is a value JobNumber and from there I will know that it is good and where to save the PDF to.
>.


Well, as it turns out, I was able to use POP3 instead of IMAP, and I used a class named wwPOP3 from West Wind. It was a total FoxPro solution, no .Net involved.

It was simply a yummy piece of cake to make this work with this nice library and documentation.

Thanks West Wind!

.
Previous
Reply
Map
View

Click here to load this message in the networking platform