I've actually done that, though I no longer have access to the system where it sits...  You're right, it is easy.  Set up an alias in /etc/aliases:<br><br>   mail2xymon: "|/usr/local/bin/mail2xymon"<br><br>
then run "newaliases" to 'compile' the db file for sendmail.  The script can be any language you're comfortable with, including Cobol or Fortran if that's what floats your boat.  All you need to know is that when it starts up, the email appears on <stdin>.  You get headers first, in no particular order, probably including "From:", "To:", "Subject:" and "Date:".  For example:<br>
<br><pre>     Date: Thu, 19 Nov 2009 14:58:35 +0200<br>     From: "Nikesh Maharaj" <<a href="mailto:NMaharaj@tcta.co.za">NMaharaj@tcta.co.za</a>><br>     To: <<a href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</a>><br>
     Subject: [hobbit] Backup exec<br></pre><br>A blank line separates the headers from the body of the email, which can contain just about any form of text.<br><br>Ralph Mitchell<br><br><br><div class="gmail_quote">On Wed, Dec 16, 2009 at 4:24 PM, Matthew Moldvan <span dir="ltr"><<a href="mailto:mmoldvan@csc.com">mmoldvan@csc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><font face="sans-serif" size="2">If you're using Sendmail, you can setup
an alias to receive those messages and pipe them to a shell script.  Based
on your parsing of the mail message in that shell script, you can send
a subsequent status color to your Xymon server.  Sounds relatively
easy ...</font>
<br>
<br><font face="sans-serif" size="2">Matt Moldvan.</font>
<br>
<br><font face="sans-serif" size="2">Unix System Administrator<br>
Computer Science Corporation<br>
General Dynamics Land Systems<br>
38500 Mound Rd.<br>
Sterling Heights, MI.  48310<br>
Desk: (586) 825-8294<br>
Oracle IM: moldvanm<br>
<br>
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. <br>
NOTE: Regardless of content, this e-mail shall not operate to bind CSC
to any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.</font>
<br>
<br>
<br>
<table width="100%">
<tbody><tr>
<td><img src="">
</td><td width="100%">
<table width="100%">
<tbody><tr valign="top">
<td width="100%"><font face="sans-serif" size="2"><b>Re: [hobbit] Backup exec</b></font></td></tr></tbody></table>
<br>
<table width="100%">
<tbody><tr>
<td><font face="sans-serif" size="2" color="#e26200"><b>Josh Luthman </b></font>
</td><td><font face="sans-serif" size="2" color="#8f8f8f">to:</font>
</td><td><font face="sans-serif" size="2">hobbit</font>
</td><td>
<div align="right"><font face="sans-serif" size="1">11/19/2009 09:25 AM</font></div></td></tr></tbody></table>
<br>
<table width="100%">
<tbody><tr>
<td><font face="sans-serif" size="1"><b>Please respond to hobbit</b></font>
</td><td>
<div align="right"></div></td></tr></tbody></table>
<br></td></tr></tbody></table>
<br>
<br>
<hr><div><div></div><div class="h5">
<br>
<br>
<br><tt><font size="2">I didn't get a list, just empty search results.<br>
<br>
On 11/19/09, Asif Iqbal <<a href="mailto:vadud3@gmail.com" target="_blank">vadud3@gmail.com</a>> wrote:<br>
> On Thu, Nov 19, 2009 at 7:58 AM, Nikesh Maharaj <<a href="mailto:NMaharaj@tcta.co.za" target="_blank">NMaharaj@tcta.co.za</a>>
wrote:<br>
><br>
>>  Good afternoon all,<br>
>><br>
>><br>
>><br>
>> I am currently running BackupExec v12.5 . is there any way I can<br>
>> amalgamate<br>
>> the “successful emails” into Xymon?<br>
>><br>
>><br>
>><br>
><br>
><br>
> </font></tt><a href="http://www.deadcat.net/search.php?menuosfamily=0&menulicense=0&menusection=17&filtermdate=&filterdescription=backup+exec&menuNoPerPage=20&action=search&Filter=Filter" target="_blank"><tt><font size="2">http://www.deadcat.net/search.php?menuosfamily=0&menulicense=0&menusection=17&filtermdate=&filterdescription=backup+exec&menuNoPerPage=20&action=search&Filter=Filter<br>

><br>
><br>
><br>
>><br>
>> --<br>
>> This message has been scanned for viruses and<br>
>> dangerous content by *MailScanner* <</font></tt></a><a href="http://www.mailscanner.info/" target="_blank"><tt><font size="2">http://www.mailscanner.info/>,
and is<br>
>> believed to be clean.<br>
>><br>
><br>
><br>
><br>
> --<br>
> Asif Iqbal<br>
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu<br>
> A: Because it messes up the order in which people normally read text.<br>
> Q: Why is top-posting such a bad thing?<br>
><br>
<br>
<br>
-- <br>
Josh Luthman<br>
Office: 937-552-2340<br>
Direct: 937-552-2343<br>
1100 Wayne St<br>
Suite 1337<br>
Troy, OH 45373<br>
<br>
"The secret to creativity is knowing how to hide your sources."<br>
--- Albert Einstein<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
hobbit-unsubscribe@hswn.dk<br>
<br>
<br>
</font></tt></a>
<br></div></div></blockquote></div><br>