I am constantly getting emails of the form "Node status bad", "Node status ok", "Node status unknown" and I would like to know, for example, if an email of the form "Node 3 status bad" came in and then 20 minutes later "Node 3 status ok" came in, how to mark them both as 'read'.
I am pretty good at commandline scripting and was wondering where these files are located in my directory structure. I can easily write a script to parse the files and search for keywords, etc. - I'm not worried about that - I'm just wondering:
(1) what folder/directory are these emails stored in (on my local system)
(2) Is there a way to mark them as 'read' from commandline? That way I can script that command to these files automatically under certain conditions.