Here's my question -- what is the easiest way to just submit all of the emails in a folder in one big batch using razor-report? Do I need some fancy cat or ls pipe command? Like a shell script with a FOR loop that would run ls, cat each file individually to a razor-report pipe?

I was trying to submit a bunch of spam I have sorted through. But for some reason, razor-report cannot seem to read the files on my machine. I am using qmail's maildir, and so I have a directory of about 10,000 files which are all in RFC-822 format.

Strangely, I can do this:
#cat 1087940170.95275.smtp.mydomain.com,S=4020:2, | razor-report -home=/root/.razor


which happily submits *one* spam.  Cat can read the file!!

but when I do the same thing without cat, razor can't read the file!
# razor-report -d -home=/root/.razor 1087940170.95275.smtp.mydomain.com,S=4020:2,

When I try (here's one example) I get this error

Can't open 1087940170.95275.smtp.mydomain.com,S=4020:2,: No such file or directory

Here's the debug

Razor-Log: read_file: 15 items read from /root/.razor/razor-agent.conf
Jun 22 20:11:10.742969 report[98715]: [ 2] [bootup] Logging initiated LogDebugLevel=9 to stdout
Jun 22 20:11:10.749993 report[98715]: [ 5] computed razorhome=/root/.razor, conf=/root/.razor/razor-agent.conf, ident=/root/.razor/[EMAIL PROTECTED]
Jun 22 20:11:10.752004 report[98715]: [ 2] Razor-Agents v2.40 starting razor-report -d -home=/root/.razor 1087940170.95275.smtp.mydomain.com,S=4020:2,
Jun 22 20:11:10.764941 report[98715]: [ 9] uname -a: FreeBSD smtp.mydomain.com 4.7-RELEASE FreeBSD 4.7-RELEASE #2: Thu Feb 26 18:39:50 CST 2004 [EMAIL PROTECTED]:/usr/src/sys/compile/UNIFORCHANGE i386
Jun 22 20:11:10.770289 report[98715]: [ 5] read_file: 2 items read from /root/.razor/[EMAIL PROTECTED]
Jun 22 20:11:10.786303 report[98715]: [ 8] razor-report finished successfully.
Jun 22 20:11:10.800509 report[98717]: [ 1] razor-report error: Can't open 1087940170.95275.smtp.mydomain.com,S=4020:2,: No such file or directory
Can't open 1087940170.95275.smtp.mydomain.com,S=4020:2,: No such file or directory


I tried changing the permissions of a file, and renaming it, but nothing seems to work. I am logged in as root on FreeBSD 4.7.

Thanks,
Billy Newsom


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Razor-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/razor-users

Reply via email to