[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian and spam



On Sat, 2004-11-13 at 23:04, Carl Fink wrote:
> On Sat, Nov 13, 2004 at 12:15:00PM -0800, Paul Johnson wrote:
> 
> > I tend to prefer real email management over fake email address hacks.
> > Keeps everything simpler, makes the spam easier to report, etc.
> 
> Who are you reporting spam to, anyway?  I'd like to contribute but I'm
> woefully out-of-touch.

OK, this looks like a Good Idea. So I got hold of the adcomplain Perl
script from http://www.rdrop.com/users/billmc/adcomplain.html. I pipe a
spam message to it
	cat spam-file | perl adcomplain.pl
and if finds the originator, generates the complaint message and prompts
before sending. Excellent.

Good so far, but my spam is kept in mbox format (for teaching
Spamassassin and reporting to Razor). I can convert the mbox file into
maildir files with mb2md (from Testing). The files are in a subdirectory
called cur with names like these:
	1100447087.000000.mbox:2,S 
	1100447087.000001.mbox:2,S 
	1100447087.000002.mbox:2,S

I can do
	cat 1100447087.000000.mbox:2,S | perl adcomplain.pl
When finished with the first message I can up-arrow, change the final 0
to a 1 and repeat.

Is there a simple way to automate this with a bash script? I imagine
something looking in the subdirectory, piping the first file to
adcomplain.pl, then piping the next file when adcomplain.pl has
finished. And so un until all files in the subdirectory have been
processed.

Any ideas?

Chris.
-- 
Chris Lale <chrislale@untrammelled.co.uk>



Reply to: