<<< Date Index >>>     <<< Thread Index >>>

Processing Contents of an Email [recomendations please] ?



G'Day people,

I often get daily "report emails" for various services. For example, "Exchange
Backups Success or Failure". However, these emails contain a stack of
information about servers I do not manage (bec they are managed in a different
state) and I am only interested in my servers that I manage.

My question: Is it (or how is it) possible to have "a process" sift through the
             contents of these emails and only let them slip into my INBOX if
             and only if they contain the servers that I manage ?

             Is this a job for procmail ?

An example.

Below is the contents of an email. I don't care about any of the
hosts in this email except for those that start with ^STL. I would like to
get rid of the other crap and just see lines that start with ^STL.

     FMBEX512-SG1-MS2 ERROR finding last backup time
     FMBEX512-SG1-MS3 ERROR finding last backup time
     FMBEX512-SG1-MS4 ERROR finding last backup time
     FMBEX512-SG2-MS2 ERROR finding last backup time
     FMBEX512-SG2-MS3 ERROR finding last backup time
     FMBEX512-SG2-MS4 ERROR finding last backup time
     FMBEX511-SG1-MS2 ERROR finding last backup time
     FMBEX511-SG1-MS3 ERROR finding last backup time
     FMBEX511-SG1-MS4 ERROR finding last backup time
     PMTEX510-SG1-MS2 Last Backed Up : 19/10/2007 8:00:18 PM
     STDEX510-SG1-MS1 Last Backed Up : 18/10/2007 8:30:11 PM CHECK
     STLEX510-SG1-MS1 Last Backed Up : 20/10/2007 6:25:50 AM
     FHPEX510-SG1-MS2 Last Backed Up : 19/10/2007 8:24:20 PM
     STLEX510-SG1-MS2 Last Backed Up : 20/10/2007 6:25:50 AM
     EDNEX510-SG1-MS1 Last Backed Up : 19/10/2007 8:01:06 PM
     EDNEX520-SG1-MS1 Last Backed Up : 19/10/2007 8:01:06 PM
     EDNEXDEV-SG1-MS1 Last Backed Up : 19/10/2007 8:01:08 PM
     EDNEXDEV-SG2-MS1 Last Backed Up : 19/10/2007 8:01:18 PM
     FMBEXDEV-SG3-MS1 ERROR finding last backup time
     EDNEX514-SG1-MS1 Last Backed Up : 19/10/2007 8:01:29 PM
     FMBEX511-SG2-MS1 ERROR finding last backup time
     FMBEX511-SG2-MS2 ERROR finding last backup time
     FMBEX511-SG2-MS3 ERROR finding last backup time
     FMBEX511-SG2-MS4 ERROR finding last backup time
     FBNEX510-SG1-MS1 Last Backed Up : 19/10/2007 9:09:00 PM
     FBNEX510-SG1-MS2 Last Backed Up : 19/10/2007 9:09:00 PM
     FBNEX510-SG1-MS3 Last Backed Up : 19/10/2007 9:09:00 PM
     FBNEX510-SG1-MS4 Last Backed Up : 19/10/2007 9:09:00 PM


 -aW

IMPORTANT: This email remains the property of the Australian Defence 
Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 
1914.  If you have received this email in error, you are requested to contact 
the sender and delete the email.