Is it possible to parse incoming email Subject Headers?

Is it possible to parse incoming email Subject Headers?

Is it possible to parse incoming email Subject Headers, and then open or not-open tickets based on Header information. For eg, if the Subject Header contains a ticket number that already exists in the system but from an email ID that is not related to that ticket, then do not open a new ticket.

                  New to ADSelfService Plus?