On 20 Nov 2003, at 12:24, Peter M. Nielsen wrote:
Hi Folks
I'm collecting junk in a separate folder on my qmail-system. This is done by
hand. The system is a vpopmail-qmail-system with maildirs. It is a bit
timeconsuming to submit around 10 to 15 mails a day going to the shell
prompt and type razor-report 10000615156451315afdas21a5fa.a65 or whatever.
Has anyone a script which submits each file in a maildir-folder?
This is a bit on the simple side but does the job:
---
#!/bin/sh
cd $HOME/"Maildir/.Razor Submissions"
lockfile .submitting.lock
cd new for i in *; do [ -e $i ] && mv $i ../cur/ done
cd ..
for i in cur/*; do [ -e $i ] && /usr/bin/spamassassin -r < $i && rm $i done
rm -f .submitting.lock
---
I use my mail client to move junk into the 'Razor Submissions' folder and the script runs from cron.
- Darrin
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Razor-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/razor-users