Hi ,
From the requirements, the following is a outline of the items that will be done to complete the task
Monitor IMAP mailbox where I will use imaplib and (not sure which operating systems) but possible to use a task scheduler or run it as a service , with a predefined interval
Will need some clarity on what determines a valid email , but probably be some regular expression
Again will use a regular expression to extract the required data from the attachment
And simple to send mail out with python.
Will ensure all required items are configurable (Interval, IMAP , SMTP and Mail Template)