procmail & safecat problems

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

 



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
  




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux