Monthly Archives: November 2014


unix :: scan and email a ‘sent mail’ log

I have a few web servers…just a few. One of my web servers provides a reminder system in which it scans a classified every few minutes, and emails subscribers when the website changes and matches a users search criteria. It’s handy, but sometimes I wonder if people are getting their emails. To combat this, I added myself as a subscriber and I receive emails every day, however I still wanted to know how many of my subscribers are getting their emails. The only way was to troll through the mail log and check it.If you’ve ever seen a unix mail log, its messy, and ugly. Sure, you can get your information out, but its annoying. I’m not bad with grep and can whip up a quick statement to reformat the output of the log, but I wanted something better, so I wrote a little script.
read more »