>Ken Jones wrote:
>
> > It also supports:
> > -with-htmllibdir={dir}    qmailadmin HTML library directory.
> > --enable-ezmlmidx=n|y     default is no, enable or disable ezmlm-idx
> > support
> > --enable-vpopmaildir=dir  Home directory of vpopmail.
>
>If I don't specify --with-htmllibdir option I'm getting errors at the
>end, like .../qmailadmin//html doesn't exist.
>
>Support for ezmlm-idx doesn't work for me, I'm getting "Document contain
>no data" when I click on ADD.
>
>It would we really nice if mailing lists can have separate html pages, I
>mean one for the ezmlm-idx mailing lists and one for plain ezmlm mailing
>lists so users doesn't have to ask themselves why all those features
>doesn't work, if there is no ezmlm-idx on the server.
>
>--
>
>Drazen Ferencic

same for me. owneremail has to be splitted into 2 args in the array. 
Also the needed NULL last array element for execv is missing. Try 
this patch

---------------- cut --------------------
--- qmailadmin-0.34.orig/mailinglist.c  Mon Jul 31 09:23:18 2000
+++ qmailadmin-0.34/mailinglist.c       Wed Aug  2 12:38:20 2000
@@ -307,8 +307,8 @@
         memset(loop_ch, 0, MAX_BUFF);
 
         GetValue(TmpCGI, list_owner, "5=", MAX_BUFF); // Get the listowner
-       strcat(owneremail, "-5 ");
-       strcat(owneremail, list_owner);
+       strcpy(owneremail, "-5");
+/*     strcat(owneremail, list_owner); */
  /*     strcat(options, " "); */
         for(loop = 0; loop < NUM_EZMLM_CHOICES; loop++)
         {
@@ -348,14 +348,34 @@
  #ifdef EZMLMIDX
                 arguments[0] = "ezmlm-make";
                 arguments[1] = strtok(options, " ");
+#if DEBUG
+        fprintf(actout, "arg%d=%s\n<br>",0,arguments[0]);
+        fprintf(actout, "arg%d=%s\n<br>",1,arguments[1]);
+
+#endif
+               i=2;
                 while((arguments[i]=strtok(NULL, " ")) != NULL) {
+#if DEBUG
+        fprintf(actout, "arg%d=%s\n<br>",i,arguments[i]);
+#endif
                 i++;
                 }
                 arguments[i]=owneremail;
-               arguments[i+1]=TmpBuf2;
-               arguments[i+2]=TmpBuf3;
-               arguments[i+3]=ActionUser;
-               arguments[i+4]=Domain;
+               arguments[i+1]=list_owner;
+               arguments[i+2]=TmpBuf2;
+               arguments[i+3]=TmpBuf3;
+               arguments[i+4]=ActionUser;
+               arguments[i+5]=Domain;
+               arguments[i+6]= NULL;
+#if DEBUG
+        fprintf(actout, "arg%d=%s\n<br>",i,arguments[i]);
+        fprintf(actout, "arg%d=%s\n<br>",i+1,arguments[i+1]);
+        fprintf(actout, "arg%d=%s\n<br>",i+2,arguments[i+2]);
+        fprintf(actout, "arg%d=%s\n<br>",i+3,arguments[i+3]);
+        fprintf(actout, "arg%d=%s\n<br>",i+4,arguments[i+4]);
+        fprintf(actout, "arg%d=%s\n<br>",i+5,arguments[i+5]);
+#endif
+
                 execv(TmpBuf1, arguments);
  #else
                 execl(TmpBuf1, "ezmlm-make", TmpBuf2, TmpBuf3, 
ActionUser, Domain , NULL);
------------ cut ----------------

regards
Roland

Roland Irle                           mail: [EMAIL PROTECTED]

Reply via email to