Re: procmail & safecat problems

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

 



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

(snip)

# 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}/"

AFAIK, procmail doesn't need to use safecat - it can write safely to Maildir by itself. You can just use:

:0
* ^X-Span-Status: Yes.*
${SPAMDIR}/

...ensuring you have the trailing slash to tell procmail that it is a Maildir.

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

But your original problem seems to be here. Clearly one of your paths is wrong or non-existent.


--
Mark Knoop


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

  Powered by Linux