8 messages in net.sourceforge.lists.courier-maildropRE: [maildropl] PATHs
FromSent OnAttachments
Chris MastersSep 26, 2003 6:04 am 
Rob HuttonSep 26, 2003 6:50 am 
Chris MastersSep 26, 2003 9:32 am 
Rob HuttonSep 26, 2003 1:12 pm 
Chris MastersSep 27, 2003 5:48 am 
Rob HuttonSep 28, 2003 10:13 am 
Chris MastersSep 28, 2003 10:39 am 
Hanno HeckerSep 29, 2003 5:28 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [maildropl] PATHsActions...
From:Chris Masters (roti@yahoo.com)
Date:Sep 26, 2003 9:32:50 am
List:net.sourceforge.lists.courier-maildrop

OK, I have the solution to my second problem - I can do:

to "${HOME}Maildir/"

if $HOME ends with a '/'.

Still got the relative path problem:

In courier mysql config there is a CONCAT function for the home directory of virtual users:

MYSQL_HOME_FIELD CONCAT('/export/home/vmail/virtual/',mailbox)

And in courier LDAP config there is an MAIL_ROOT dir:

# If homeDirectory is not an absolute path, define the root of the # relative paths in LDAP_MAILROOT # LDAP_MAILROOT /export/home/vmail/ LDAP_HOMEDIR mailbox

In postfix there is a parameter:

virtual_mailbox_base = /export/home/vmail/virtual

What is the equivalent for maildrop?

--- Rob Hutton <rob.@comcast.net> wrote:

Can you spell out what you are trying to do. I am confused because you have said what you are doing, not where you are trying to go. I have had the following configs working

HOME = "/" MAILDIR = fully qualified path

HOME = "/export/home/vmail" MAILDIR = domainname/username

HOME = "/export/maildropfilers/filter1" MAILDIR = /export/home/vmail/domainname/username

to throw in some of your examples.

Thanks, Rob

-----Original Message----- From: cour@lists.sourceforge.net

[mailto:cour@lists.sourceforge.net]On

Behalf Of Chris

Masters Sent: Friday, September 26, 2003 9:05 AM To: cour@lists.sourceforge.net Subject: [maildropl] PATHs

Sorry to go on about this.

I have a relative path stored in MySQL virtual user table:

mailbox | domain.com/jbloggs/ (note forward slash)

In my maildropmysql.config I have:

maildir_field mailbox (can I do this?) homedirectory_field mailbox

And in my maildroprc I want to have:

BASE="/export/home/vmail/"

if ( /^X-Spam-Status: YES */ ) { to "$BASE/$HOMEMaildir/.Spam/" } else { to "$BASE/$HOMEMaildir/" }

OK, the problem is that the maildropmysql.config says that homedirectory_field needs to be a 'full path' and that the config doesn't like $HOMEMaildir with '/'.

Can I use a relative path like this in maildroprc?

How can have $HOME (that ends with a '/') and Maildir together without error?

If I can't do any of this I'm going to have to patch the source - which I don't want to do.

Thanks to those who responded to my create maildir question. I might steal stuff from Erik's patch if I have to do other patches. Otherwise I'll do it in maildroprc.

Thanks for any additional help,

Chris

__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com

This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf

_______________________________________________ Courier-maildrop mailing list Cour@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/courier-maildrop