Well I've tried out q-sorter, and I haven't had much luck; it seems it
always errors out when it tries to open an imap transaction in php.

But I have put some thought into it and wonder if someone could
correct/confirm my logical process here:

I have read that maildrop is actually compiled into courier-imap. I know
that courier also does server-side filtering, which at first glance would
seem the ideal way to handle my situation. However I am *guessing* that said
server-side filtering would have to take place inside an imap  transaction
(ie. send imap commands to sort the mail) and, since courier is not my local
delivery agent, would have the effect that I would be left with lots of
deleted mail in my inbox (because imap cannot move mail, only copy it to
another folder and delete the copy that was in the inbox, leaving a "snail
trail" of deleted mail that needs to be "purged"; another imap feature).

So, I now think that using an externally-compiled copy of the latest version
of maildrop as my local delivery agent can yield the best results for me, as
it is able to decide which folder to put mail into and it doesn't leave a
"snail trail" of deleted mail in my inbox. My mailfilter file for maildrop
simply imports my environment variables:

import EXT
import HOST
import SIZE
import RECIPIENT
import HOME

and then does something like:

exception {
        to "$VMAILDIR/.myfolder.mysubfolder"
}

to handle "sorted" mail delivery, or just:

exception {
        to "$VMAILDIR"
}

to handle a normal delivery. Can anyone tell me if I am going down the right
path here?

Thanks,

David.

> -----Original Message-----
> From: David [mailto:[EMAIL PROTECTED]
> Sent: Sunday, 25 September 2005 2:23 AM
> To: [email protected]
> Subject: RE: [toaster] Sorting mail
>
>
> Thanks all - that's a few really useful suggestions; I will try procmail &
> "q-sorter" (which I absolutely had not heard of before but looks very
> interesting) - and reply again with my success (if any :) )
>
> Regards,
>
> David.
>
> > -----Original Message-----
> > From: Aleksander Olsen [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, 24 September 2005 5:10 AM
> > To: [email protected]
> > Subject: Re: [toaster] Sorting mail
> >
> >
> > http://q-sorter.sourceforge.net
> >
> > On 9/23/05, Bill Shupp <[EMAIL PROTECTED]> wrote:
> > > David wrote:
> > > > Hi all,
> > > >
> > > > The Shupp toaster is an extremely neat package, and I have
> > been using it for
> > > > over 12 months now on several boxes.
> > > >
> > > > I have found IMAP to be extremely useful to handle a large
> > amount of e-mail,
> > > > including archived messages, accross several MUA's including webmail
> > > > (squirrelmail).
> > > >
> > > > But one feature I'm desperately lacking is the ability to
> > sort mail into
> > > > IMAP folders based on simple rules (eg. sender or subject). I
> > don't need
> > > > complex filtering, which various packages provide (eg.
> > procmail) but I *do*
> > > > need the ability to move mail into different folders based on filter
> > > > settings.
> > > >
> > > > Knowing that I will have to integrate this with qmail &
> > courier as well, I
> > > > thought I'd ask here first. Does anyone has anything going
> > like this? Does
> > > > anyone have any suggestions for what I should try?
> > > >
> > > > I have looked at procmail, sieve, and maildrop, but I haven't
> > figured out
> > > > any way of getting those programs to actually *move* my mail
> > into different
> > > > folders; they seem to be "accept or reject" only...
> > >
> > > maildrop is what you want.  www.courier-mta.org.
> > >
> > > Regards,
> > >
> > > Bill
> > >
> >
> >
> >
> >
>
>
>
> !DSPAM:43358480305875132648303!
>
>


Reply via email to