http://www.dcs.qmul.ac.uk/~mb/local_scan/local_scan.c
Designed to be thin rather than Perfect. I don't write C that often, but
I've run it past the eyes of someone who does, and we think it won't blow
up too badly :) It's certainly working OK enough for us; having said that,
patches and/or abuse welcome--enjoy!
One thing I'd like to be able to grab is the message ID, so I can include
it in the added headers, but I didn't see it in the API.
One other thing perhaps for the longer-term wish list would be the ability
to write local_scan as a perl function in the embedded interpreter--could
be really useful for AMaViS and/or Vipul's Razor, though for my next trick
I'm going to attempt the latter using expand_string in local_scan.c.
Matt