]> andersk Git - moira.git/blobdiff - server/qsetup.pc
Revert incremental code until we actually have an incremental (not yet)
[moira.git] / server / qsetup.pc
index 24431f9fc7545e36cce648d3c3998d5a71a9aa9e..80f5535bfb8d43956b1fd44c29cf621e2183a7c2 100644 (file)
@@ -495,6 +495,21 @@ int setup_alis(struct query *q, char *argv[], client *cl)
            return MR_SERVICE;
        }
     }
+  else
+    {
+      /* Client too old to know about the mailman code.
+       * Use existing value of mailman boolean in the table.
+       */
+      EXEC SQL SELECT mailman INTO :mailman FROM list WHERE name = :name;
+      if (mailman)
+       {
+         EXEC SQL SELECT  COUNT(name) INTO :cnt FROM list
+           WHERE (name = :name || '-admin' OR name = :name || '-owner' OR
+                  name = :name || '-request');
+         if (cnt)
+           return MR_EXISTS;
+       }
+    }
 
   if ((mr_errcode = prefetch_value(q, argv, cl)) != MR_SUCCESS)
     return mr_errcode;
This page took 0.072663 seconds and 4 git commands to generate.