procced mail

I’ve been meaning to do something about my spam situation, which rather sucks at the moment. Now that my email address appears occasionally on the linux kernel mailing list and elsewhere, I’ve not suprisingly got a signal-to-noise ratio of something like 200:1. I’ve had spam assassin in the loop for a while, but the Bayesian analysis always invokes the OOM killer on my memory poor firewall so it’s not running with full effectiveness. Thus I took a little time out to add a whitelist to the front end to make things go better: if you’re in the whitelist, it skips all the filters. Meanwhile SA will get the threshold cranked up to consider practically everything spam, and I’ll be more likely to insert one-off regexps that trash certain spams that I get over and over again.


To make the whitelist, I went to my existing mail folders (in mbox format, of course). This was easy enough:

#! /bin/sh

for i in `/bin/ls | grep -v junk`; do
formail -s formail -zx "From: " -zx "To: " < $i |
sed -e "s/^.*<(.*)>.*$/1/g" >> whitelist.uns
done
cat whitelist.uns | sort | uniq > whitelist
rm whitelist.uns

Then, it took a while to figure out how to make the proper procmail recipe to use it, but I eventually came up with this:

MAILDIR=Mail
FGREP=/bin/fgrep

:0:
* !^List-Id:.*
* ? formail -zx "From:" | ${FGREP} -F -v -i -w -f whitelist
{
:0fw
* <100000
| spamassassin 

:0:
* ^X-Spam-Status: Yes
junk

:0:
* ^Subject:.*Corel Draw.*
junk

:0:
* ^Subject: *[^ ]* new(s)?$
junk

:0D:
* ^Subject:.*(O|0)EM *
junk

:0D:
* ^Subject:.*[A-Z]+[a-z][a-z][a-z][A-Z]+
junk
}

:0Ecf
| formail -A"X-Whitelist-Passed: OK"

# kill html email
:0
* ^Content-type: text/html
{
:0bfw
| (echo "[html stripped]"; lynx -dump -force_html -stdin)

:0ahfw
| formail -i"Content-type: text/plain"
}

Shinedown

As soon as I discovered that it wasn’t Chris Cornell behind a certain song from the point of view of the overmedicated, I’ve been enjoying Shinedown. So next Monday night, AC and I are going to see if their stage show holds up to the CD. Also on the ticket is Trapt, whose song Still Frame was once played by my old band, and two bands with whom I’m unfamiliar. See you there at Ram’s Head Live in Baltimore, doors open at 7pm.

Awarded

Yesterday, Director’s awards were distributed here at work, and the powers that be were nice enough to honor myself and a couple of other programmers on our mad software skillz even though we are only contractors. Despite the fact that everyone pronounces “Director” in hushed tones as if they are Death Star peons discussing The Emporer, sure that their thoughts are being probed by some dark-side evildoings, we didn’t realize that the awards ceremony was An Affair, which is to say that suits were required. So I show up, along with my coworkers, in full-on business casual to a gathering of hundreds of ensuited Vic Mackeys. Like the jackasses that wear a T-shirt on picture day1, we ignored the occasional looks of disdain directed towards our section during the service. I say service, because it was practically a church affair, with a prayer at the beginning, a prayer at the end, and lots of boredom in between that mostly didn’t apply to me. The only difference was that instead of an organ, the pre-ceremony music was played by members of The President’s Own Marine Corps band. After an interminable wait, during which people who actually deserved awards were recognized, we eventually got called, walked across the stage, shook hands with Palpitane and the second-in-command at DOJ, then hid behind better dressed personnel for the group photo. So I guess what I am saying is, fear my awesome certificate, bitches!

[1] Usually me, in early grades at least, because my organizational skills are so slight, not because of any illusions of being too cool for school.

Stanley Jordan

I’ve been scanning the local venues and home pages of a few favored artists to find good shows to attend this summer. Who would have guessed that Stanley Jordan, two-handed tapping jazz guitarist extraordinaire, would be a full-on nerd? Of course, I mean that in the most complimentary sense. Watch as he schools usenet entities on his APL and C=64 FORTH hackery. Neat.

Projects afoot

I’m in something of a manic mode now that winter has fully departed. This weekend saw the embarkation on/completion of a few projects. I finished up all of the remaining niggling table-saw work required for my kitchen — the quarter round floor molding and the remaining decorative molding under the cabinets. Then I cleaned up my garage a bit; who knows, maybe in a month or two I’ll be able to get my car back in there. I also took the first steps in what I hope to be a less sucky landscape for my house: I mulched an area around my trees that tends to grow weeds like crazy, pulled up said weeds, removed a rotten and termite infested bench, and started a little indoor herb garden. I still had time to play a few rounds of The Ur-Quan Masters, until I remembered what an incredible time sink StarCon2 happened to be, at which point I resigned my post as intergalactic diplomat forever and went back to noodling on the guitar.

No Through Trucks

I suppose I should say a word or two about the latest Derek Trucks showing, and compare it to the other 6(?) times I’ve seen them, but what is there to say except that DTB was good as always and the 9:30 Club was really smokey. Kofi was probably super high as he was more animated than I’d ever seen him, standing up in the middle of a solo and banging out the bass chords with his fist, bellowing “I have a Wah-Wah pedal” during a particularly wokka-wokka keyboard part, and acting the preacher during their gospel number, testifying that “one man saved his life” — nope, not Jesus, but Derek Trucks! I picked up their new album Songlines which is interesting in that each song flows into the next, much like at their shows. On the whole it’s worth the $15 and it’s nice to hear Mattison on a studio release, but unfortunately it fails to live up to past glory like Soul Serenade when all the songs were brand new. There are definitely a lot more people at shows compared with
6 years ago so the word is getting out.

Busy

This weekend is shaping up to be a full one. Six points music festival is going on, but my money is going to the 9:30 Club to see DTB again. I hear they have a whole new setlist and a new CD, so that should be a good change of pace. On top of that: apartment shopping, batting practice, guitar lesson, baking, yardwork, etc. w00t.