Apply 20_qmail_to_mailman.debian.patch
authorMichael Spang <mspang@uwaterloo.ca>
Thu, 13 Sep 2007 00:32:52 +0000 (20:32 -0400)
committerMichael Spang <mspang@uwaterloo.ca>
Thu, 13 Sep 2007 00:32:52 +0000 (20:32 -0400)
contrib/qmail-to-mailman.py

index 3e4e19d..a4cb878 100644 (file)
@@ -28,12 +28,12 @@ MailmanOwner = "postmaster@localhost"; # Postmaster and abuse mail recepient.
 #
 # INSTALLATION:
 #
-# Install this file as ~mailman/qmail-to-mailman.py
+# Install this file as ~mailman/bin/qmail-to-mailman.py
 #
 # To configure a virtual domain to connect to mailman, create these files:
 #
 # ~mailman/.qmail-default
-# |preline @PYTHON@ @prefix@/mail-in.py
+# |preline /usr/bin/python /usr/lib/mailman/bin/mail-in.py
 #
 # /var/qmail/control/virtualdomains:
 # DOMAIN.COM:mailman
@@ -64,7 +64,7 @@ def main():
         sys.exit(100)
 
     local = string.lower(local)
-    local = re.sub("^mailman-","",local)
+    local = re.sub("^" + MailmanUser + "-","",local)
 
     names = ("root", "postmaster", "mailer-daemon", "mailman-owner", "owner",
              "abuse")