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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux