So I have a client who needs something that would seem fairly easy but I cant seem to wrap my head around it.

The project idea is as stated:
-The server receives mail via "sendmail" .
-From what I hear sendmail allows you to pipe to a php
file on the server.
-Said PHP file then needs to parse through each message to determine where it came from and set conditions based on the subject line content....