Let’s say you’ve got a string like:

$ string="abc.Cat.def.1.zip.hij.Cut.klm.1.zip.Cat.no.2.zippqrs"

Out of this string, you want to pick out Cat*zip (Cat.def.1.zip and Cat.no.2.zip), “.*” works but is greedy so this grabs too much:

$ echo $string | grep -Eo "Cat.*zip"
Cat.def.1.zip.hij.Cut.klm.1.zip.Cat.no.2.zip

This does what we want:

$ echo $string | grep -Eo "Ca[t][^t]*.zip"
Cat.def.1.zip
Cat.no.2.zip

Previously, I had setup an Ubuntu Karmic box to install Boxee from the apt.boxee.tv APT repository. Since this repository appears to be unmaintained, I’m now reverting back to manual Boxee installs until an updated repository becomes available.

Read the rest of this entry…

I haven’t been getting any SPAM lately, so I thought I’d turn on catch-all to see what happens. Accepting mail for invalid recepients (e.g. anything @mydomain) caused about twice as much SPAM to be attempted, but still nothing got through to my Inbox:

------------------------------------
Stats for Feb 2010
------------------------------------
Ham	SpamC	SpamR	SpamM	HamC
192	126	1951	0	0
--------------------------------------------------------------
2269		Total messages
2077		Total Spam (Caught + Missed + Rejected)
91.53%		Spam as % of all mail
93.93%		% of Spam rejected by Postfix at SMTP time
0%		False positive rate (Ham misclassified as Spam)
0%		False negative rate (Spam misclassified as Ham)
100.00%		Spam catch rate (Spam filter accuracy)
--------------------------------------------------------------

As you can see, Postfix got most of it, then SpamAssasin got the rest. I heart Postfix and SpamAssassin. :-)