I'm using the IMAP sensor to check that certain emails are received daily. Is there a way to delete the emails once they have been checked so the emails do not continue to build up in the email account?


Article Comments

Hi,
I'm afraid PRTG cannot delete emails from your account. This function was not implemented by intention as it might be a security risk. You might use your email providers functionality to archive the emails e.g. every night.
Best regards


Aug, 2013 - Permalink

You would need to setup a scheduled script or possibly a keyboard macro on a client or the mail server itself. If using gmail, this can be accomplished like this: http://www.johneday.com/422/time-based-gmail-filters-with-google-apps-script


Oct, 2013 - Permalink

Is there any chance of adding a new Imap/Email sensor type that would allow the retrieval, then deletion of a message from the monitored email account? Or anyone know of a custom sensor type that would do that?

This is critical - in order to properly monitor a email queue for backup job notification, sync notifications, or most any third party application that has email notification, one must check the latest message, process the information, and then delete (or even move to a folder) the message. Otherwise, there is no practical way to use the email notification sensor to monitor third party applications.


Jul, 2014 - Permalink

Hi,
I will bring this up at the next developer meeting but cannot guarantee anything.
Best regards


Jul, 2014 - Permalink