Trying to set up a job to check an email account for a particular subject line message, retrieve an attachment and save the file to a known destination. It seems the imap functionality for retrieving email file attachments is available in trigger functionality, but not as a task.
I'm having difficulty with VC's handling of attachments in the email trigger and have a few questions:
1.) In an email trigger if I select "save attachments always" and specify a directory where the file should be saved then, upon retrieving the attachment, VisualCron makes a new sub directory (named 1, 2, 3 etc) for each email it processes. The filenames of every attachment are already unique. Why does VisualCron do this and how are subsequent tasks supposed to do further processing on the saved attachments (e.g. unzip etc) if the exact location of the files are not known. In addition, this creates a maintenance headache as the unnecessary proliferation of sub directories need to be emptied and pruned. A nice to have feature would be to archive the email on the email server. It seems the iMap trigger allows this -- I don't understand the thinking behind the architecture of VisualCron well enough to understand why this imap functionality is not available in a task. I am inclined to view triggers as condition checkers (e.g. see if an email has arrived) and tasks as operations that perform work such as downloading and saving attachments, archiving emails on the imap email server etc.
2.) I'd like the email account checked for a particular email, but not until a certain time of day. It would be very helpful to have a paragraph or two or a few screenshots as to how to set up a time trigger that starts an email checker -- I don't want to poll the email server all day, just after a certain time of day.
I'd appreciate any suggestions.
Warm regards,
Andrew