I have a bunch of emails come in with the subject in a format like this:
18949 > New
18950 > New
18951 > New
18949 > Deleted
18952 > New
18940 > Deleted
And so on. If it matters, this is a report of classified ads being posted, edited, and deleted from my site, so that I can keep an eye out for duplicate ads, etc. I have roughly 3,000 of these come in each day.
Here's the question. Is there a way for me to read when an email comes in with "Deleted" in the subject, find the number in the subject, then move the corresponding New ad to another folder?
This is my own custom website script, so I can make the subject anything if there's a way to make them find one another.