atom feed3 messages in net.sourceforge.lists.courier-usersRe: [courier-users] delivery to folders?
FromSent OnAttachments
msl...@magicaldesk.comAug 8, 2000 12:46 am 
Federico Sevilla IIIAug 8, 2000 3:38 am 
msl...@magicaldesk.comAug 9, 2000 12:13 am 
Subject:Re: [courier-users] delivery to folders?
From:Federico Sevilla III (ji@i-manila.com.ph)
Date:Aug 8, 2000 3:38:05 am
List:net.sourceforge.lists.courier-users

On Tue, 8 Aug 2000 at 00:47, msl@magicaldesk.com wrote:

using courier-imap, users are allowed to create folders under their inbox. i am thinking how delivering directly into these folders could be done (to implement user-defined mail filters). somehow, the folder information must be accessible to the delivery agent (maildrop, qmail-local...). is this the way to go?

I don't know what your problem is, so I'll try the "shotgun approach" at answering it.

1. When a user creates a folder using Courier IMAP a Maildir is made normally under $HOME/Maildir/ with the name of the folder prefixed with a dot.

2. As a valid Maildir all you have to tell an MDA like Maildrop to do is deliver mail that passes a specific filter to that Maildir. For example in my $HOME/.mailfilter I have (aside from DEFAULT=$HOME/Maildir):

if ( /^Sender: cour@lists.sourceforge.net/ ) to "Maildir/.linux
Courier"

3. I don't know if qmail-local has filtering capabilities. The $HOME/.qmail can be modified not to delivery to "./Maildir/", though. I suspect it can be edited to read "./Maildir/.linux Courier/". I'd go with making QMail use Maildrop as your MDA, though. That way you get to filter. :)

Good luck.

-- Federico Sevilla III Network Administrator

THE LEATHER COLLECTION, INC. #15 Don Mariano Lim Industrial Complex, Alabang-Zapote Road beside Toyota - Alabang, Las Pinas City 1740 PHILIPPINES

Ofc: +63.2.842.2261 Fax: +63.2.842.2204 Apt: +63.2.523.8251 to 64 (loc 601) Cel: +63.919.550.4216