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

procmail & safecat problems

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

LOG="--- Logging ${LOGFILE} for ${LOGNAME} "

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

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

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

--- 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 redhat com"
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 redhat com 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!

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