Package: cyrus-imapd-2.2
Version: 2.2.13-14
Severity: normal
I am trying to use spamassassin in a Postfix + Cyrus environment, using
user preferences. I did a custom mail transport command written in PHP. It
calls "spamc" using
recipient's name and if "spamd" classifies input message as spam, my
script calls "cyrdeliver -m INBOX.spam <user>".
I think this is a better solution than Sieve, because users don't need
to learn Sieve and create a script in order do transfer unsolicited
messages to a "spam" folder.
But I don't know why "cyrdeliver" ignores the "-m" parameter and
always delivers unsolicited messages to INBOX. This behavior occurs
either with or without an existing "INBOX.spam" folder in user mailbox.
"cyrdeliver" man page says I could do it...
I successfully delivered to a submailbox on 2.2.13-17 like so:
~$ cat /tmp/email | /usr/sbin/cyrdeliver -m 'spam' dwhite
which placed the email into user.dwhite.spam.
I also had to set an ACL for 'anyone p', as discussed in the manpage.
specifying '-m INBOX.spam' appears to be treated as a typo, and places the
message into the user's INBOX (user.dwhite).
specifying '-m spam', but without having an ACL of 'anyone p' also
delivered the message to my INBOX rather than INBOX.spam.
This seems to be consistent with the existing man page for cyrdeliver.
--
Dan White
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org