This can be implemented by creating an Outlook Addin which will be set for working on New Message received event. So, once this event raised it will open the message, parse the attachment, open the attachment, reading all PDF content and comparing the content using Regular Expression (regex) pattern, once found it will open WebClient connection, do login using the credential, update content, and done. This will process continously once an email received.