Hi,

I'm seeking a bit of advice regarding folder naming. Let me explain the situation...

I run qpsmtpd / qmail / vpopmail and use maildrop to deliver the mail so I can spam 
filter it using bogofilter and auto-filter my mailing lists. It's the auto-filtering I 
need some help with.

I have a series of pattern matches in mmy maildrop filter that identifies any traffic 
from mailing lists and puts it into the appropriate folder. Something like this:


        if ( /^List-Post: <mailto:[EMAIL PROTECTED]>/ \
                || /^Delivered-To: mailing list [EMAIL PROTECTED]/ \
                || /^X-Mailing-List:[:space:[EMAIL PROTECTED]/ \
                || /^Return-Path: <[EMAIL PROTECTED]>/ )
        {
                exception {
                        if (${LOGGING_ENABLED})
                        {
                                log "Matched mailing list ${MATCH2}"
                        }
                        to "${VMAILDIR}/${LISTS}.${MATCH2}/"
                }
        }

So for example, for this list, the "List-Post: <mailto:[EMAIL PROTECTED]>" header 
would be matched and the message stored in the folder Lists.binc.

This has worked fine for many months. However, now I have got two mailing lists with 
the same name at different domains. So, I've decided to use the whole of the list 
address as the folder name, e.g [EMAIL PROTECTED] instead of just Lists.binc. The 
problem I've just run into is that the period in the domain name is the IMAP separater 
character so my mail clients see a lists folder, with a [EMAIL PROTECTED] inside, then 
another folder "org" inside the [EMAIL PROTECTED] folder.

Is there an easy way to fix this without munging the list names, e.g. [EMAIL 
PROTECTED] or similar?

Thanks,

R.
-- 
http://robinbowes.com

Reply via email to