Pop3 attachments

I am trying to write a console app (Windows) that connects to a POP3 server, checks the email sender / subject and if it matches it then downloads the email. I then need to be able to check for an attachment and save the attachment to a folder for further processing.

I have the POP3 bit working but can see to get my head around how I get the attachments to save to a folder. I have checked the docs and they seem a bit sparse. Has anyone got any pointers on POP3 and attachments or is their a plugin I could use that might help?


Thanks Eli, but what happens if their are multiple attachments?