On Tue, 2005-03-29 at 19:11 +0100, Steve wrote: > 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?
What you are doing wrong is that you are not reading the procmail documentation :) To deliver to a maildir you need to add a / at the end of the directory name like: :0: * ^Subject:.*aardvark Aardvark/ Otherwise it does the standard deliver to mbox. > > > -- > gentoo-user@gentoo.org mailing list > -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list