Init → Load Config + Connect Mailbox
then
Get Transaction Data → Fetch Emails → Add to Queue
then
Process Transaction → Download Attachment → Save → Update Web App/DB
then
Set Transaction Status → Success / Business Exception / Retry
I recommend using a linear process design for your scenario. Set the transaction number to 1 and place all your business logic within the Process section.
you can use integration services and have trigger when specific subject related emails comes in
also move the email to different folder can be done..or anyways if using integration service it will trigger only for the email current not for all and this repeats for any new email you get