I am needing a script or program to download attachments from an IMAP SSL account on my mail server.
1. The script / program must run on Linux and you must provide source code. I prefer PHP or Perl.
2. The IMAP account must be accessed with SSL
3. The script must be run from CLI, no HTML please. I need to run the script daily from a scheduled task (cron).
4. Attachments must be saved in a directory I designate.
5. Attachments will be large, 7+ MB.
6. After all attachemnt are downloaded I need all email to be deleted from mail server.
You will not have access to our Linux server, you will have to provide your own testing environment. I will provide the mail account that the script will be pulling attachments from.
Please be confident that you can complete this project in a timely manor and that you have dealt with email in the past.
I have already had 2 other programers work on this and still don't have a program that I am confident that it works properly.