Hi,
I had this script instead of regular qmail-queue:

spamassassin | /var/qmail/bin/qmail-queue-real

This worked almost perfectly.
I tried this script qmail-queue:

        spamassassin > /tmp/mail_file.txt
        cat /tmp/mail_file.txt | /var/qmail/bin/qmail-queue-real

Why the first case forks and the second does not? I think, these scripts are the same.

Someone helped me (thanks to everybody) and I rewrite it as follows:

        spamassassin > /tmp/mail_file.txt
        cat /tmp/mail_file.txt | /var/qmail/bin/qmail-inject

I want to make a script, that would DELETE all mail marked as spam - we need it. I think it should work with "spamassassin -e", because it will return the value if the mail is/is not spam. I imagine for example this script:

        if [ spamassassin -e > /tmp/mail_file.$$]; then
        RETVAL = $?
        if [ $RETVAL -eq 0 ]; then
                cat /tmp/mail_file | /var/qmail/bin/qmail-queue
                rm /tmp/mail_file.$$
        fi

I would set the score parameter to 100 for example and the user would have set in the database what is spam and what is not. Can you PLEASE help me to do such a script to work as I mentioned? Is it possible? I think it could help to everybody...

THANK YOU VERY MUCH

Maca


-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to