Tom Collins, il 03/02/2004 alle 07:48, mi scrisse...
> I'm pretty sure that vdelivermail is assuming the second line is an 
> address and not a Maildir since it doesn't contains the string 
> "/Maildir/".  I'll look into updating vpopmail to do Maildir delivery 
> if the line starts with "." or "/".

this is a little patch for my 5.3.30 installation, it chech if is a
valid maildir name (start with a slash or a dot and end with a slash
too), I hope it could be applied to the 5.4.x revision (I try later)

Enjoy this patch:

--- vdelivermail.c.orig Mon Oct 20 20:59:57 2003
+++ vdelivermail.c      Wed Feb  4 09:44:43 2004
@@ -470,10 +470,11 @@
         return(0);
     }
 
-    /* Contains /Maildir/ ? Then it must be a full or relative
-     * path to a Maildir 
+    /* Contains a Maildir delivery? Then it must be a full or relative
+     * path to a Maildir (must start with a dot or a slash and end with a slash)
+     * Patched by Luca Morettoni 
      */ 
-    else if ( strstr(address, "/Maildir/") != NULL ) {
+    else if ((*address == '.' || *address == '/') && *(address+strlen(address)-1) == 
'/') {
 
         /* if the user has a quota set */
         if ( strncmp(quota, "NOQUOTA", 2) != 0 ) {


-- 
Luca Morettoni <[EMAIL PROTECTED]> - http://morettoni.net
GPG keys avaiable at: http://morettoni.net/key
Key fingerprint: D69411BB/C329AED4592319826F12 3036B51E664FD69411BB
Current system: FreeBSD 5.2-CURRENT, up 3 days, 17 hrs, 51 mins, 2 secs

Reply via email to