Use mautic to capture feedback via email response

I want to send a question on email and ask the person to “reply” via email itself.

This will drop the responded email in some inbox, this will have IMAP configured.

How do I achieve the following automation?

  1. Fetch via IMAP the index.
  2. Identify what emails are “reply to the campaign”
  3. Read the emails that are a reply to the campaing
  4. Take the body content
  5. Subtract the “reply lines” and keep only the “new text”
  6. Keep the “responded lines” by the user somewhere readable in Mautic manually like when the person responds a form, that I may click and read.
  7. Keep it machine-processable so if it contains a certain keyword I may add tags, start a funnel, etc. within an automation.