I'm using the latest dovecot IMAP server to successfully access my mail remotely with Thunderbird... and I've implemented system-wide spamassassin using a procmail in /etc/procmail - all this works fine.

--my /etc/procmailrc--
DEFAULT=$HOME/.maildir/
SHELL=/bin/sh
MAILDIR=$HOME/.maildir

:0fw
* < 256000
| /usr/bin/spamc -f
--

I hit problems when I try to tailor procmail for a specific user... I want to move all mails with a subject of "aardvark" into my existing Aardvark IMAP folder - so I tried this:

-- ~/.procmailrc --
DEFAULT=$HOME/.maildir/
SHELL=/bin/sh
MAILDIR=$HOME/.maildir

:0:
* ^Subject:.*aardvark
Aardvark
--

This creates a file called ~/.maildir/Aardvark which contains the text of the message - which isn't what I wanted at all... It is not recognised by dovecot - so doesn't arrive in my mail client. I noticed that the Aardvark IMAP folder was represented by a .Aardvark directory - but if I replace "Aardvark" with ".Aardvark" then all I get is a file "msg.8h3" in this directory - and this isn't recognised by dovecot either (not being with the other messages in new, tmp or cur.)
My procmailrc above looks similar to all the examples I've seen - I've never seen one specifying /new at the end or anything like that. Can anyone spot what I'm doing wrong?



-- [email protected] mailing list



Reply via email to