procmail & safecat problems



I´m trying to get procmail to move an email it filters into an imap
folder of my choice.

.procmailrc
MAILDIR=/var/qmail/mailnames/****.com/info/Maildir
SPAMDIR=${MAILDIR}/.*SPAM*
DEFAULT=${MAILDIR}/
LOGFILE=${MAILDIR}/procmail.log
LOG="--- Logging ${LOGFILE} for ${LOGNAME} "
VERBOSE=yes


# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to the designated spam folder
:0
* ^X-Spam-Status: Yes.*
| /usr/bin/safecat "${MAILDIR}/tmp" "${SPAMDIR}/"

# *** SPAM *** in den *SPAM* Ordner legen
:0
* ^Subject:.*** SPAM ***
| /usr/bin/safecat "${MAILDIR}/tmp" "${SPAMDIR}/"


# Fedora List Newsletter in die Mailbox legen
:0
* ^TO_fedora-list@xxxxxxxxxx
| /usr/bin/safecat "${MAILDIR}/tmp" "${MAILDIR}/NEWSLETTERS.Fedora.list/"


procmail.log
--- Logging /var/qmail/mailnames/****.com/info/Maildir/procmail.log for popuser procmail: [3192] Fri Nov 30 15:31:08 2007
procmail: No match on "^X-Spam-Status: Yes.*"
procmail: No match on "^Subject:.*** SPAM ***"
procmail: Match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)fedora-list@xxxxxxxxxx"
procmail: Executing "/usr/bin/safecat,/var/qmail/mailnames/****.com/info/Maildir/tmp,/var/qmail/mailnames/****.com/info/Maildir/NEWSLETTERS.Fedora.list/"
safecat: fatal: could not stat directory: file does not exist
procmail: Error while writing to "/usr/bin/safecat"
procmail: Assigning "LASTFOLDER=/usr/bin/safecat /var/qmail/mailnames/****.com/info/Maildir/tmp /var/qmail/mailnames/****.com/info/Maildir/NEWSLETTERS.Fedora.list/"
procmail: Assigning "LASTFOLDER=/var/qmail/mailnames/****.com/info/Maildir/new/1196433068.3192_0.h1188542"
From fedora-list-bounces@xxxxxxxxxx Fri Nov 30 14:31:08 2007
Subject: Re: Fedora and Ubuntu
Folder: /var/qmail/mailnames/****.com/info/Maildir/new/119643306 5099


Now the filter seems to work but not the moving of the e-mail into the
right folder. Why?!?!

Thanks for the help!
Christian




--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Evolution
    ... move the messages to a folder named ... "Friends" or whatever. ... "friends" then submit what's left to a good Bayesian spam filter. ... Then I start inserting whitelist filters above that "catch-all" and direct them to move the message to a specific folder. ...
    (Ubuntu)
  • Re: Evolution
    ... move the messages to a folder named ... "Friends" or whatever. ... "friends" then submit what's left to a good Bayesian spam filter. ... I'm using Thunderbird and have tried setting up filters both ways. ...
    (Ubuntu)
  • Re: [SLE] maildir and spam
    ... > folder and then deletes the contents. ... designed to fool bayesian filters. ... |swamp baghdad pomade alteration aye abode abode phrasemake impertinent ... The spam message is contained in the link "ads.jpg". ...
    (SuSE)
  • Re: [SLE] maildir and spam
    ... I'm getting a kind of spam (it started a few ... aimed at rendering bayessian filters useless. ... Anything that gets thru spamassassin but IS spam I manually ... folder and then deletes the contents. ...
    (SuSE)
  • Firefox SPAM filtering (Observation)
    ... I have been using Thunderbird for several months, now, and its internal SPAM filters seem to be doing fairly well, but there is still uncaught SPAM at the end of the day. ... I set up a new folder and moved any uncaught SPAM into it. ... No boom today. ...
    (Debian-User)