2008/5/27 Steve Fatula <[EMAIL PROTECTED]>:
>
> On May 27, 2008, at 9:16 AM, Maurizio Rottin wrote:
>
>> and indeed it is working.
>> but i don't understand why vpopmail is using the onchange mechanism,
>> while qmailadmin is not!
>>
>>
>
> Did you compile qmailadmin with the onchange patch?
>
> Steve
>
yes, but actually looking at the patch code, i can see only
modification for adding/deleting mailing lists (which anyway does not
call the onchange script)
cat qmailadmin-1.2.9-onchange.patch
diff -ruN qmailadmin-1.2.9-factory/mailinglist.c
qmailadmin-1.2.9-patched/mailinglist.c
--- qmailadmin-1.2.9-factory/mailinglist.c 2005-02-16
11:10:37.000000000 -0500
+++ qmailadmin-1.2.9-patched/mailinglist.c 2007-07-13
00:49:45.000000000 -0400
@@ -30,6 +30,7 @@
#include <dirent.h>
#include <errno.h>
+#include <vpopmail_config.h>
#include <vpopmail.h>
#include "cgi.h"
@@ -324,6 +325,11 @@
return;
}
+#ifdef ONCHANGE_SCRIPT
+ snprintf ( onchange_buf , MAX_BUFF , "[EMAIL PROTECTED]" , ActionUser ,
Domain ) ;
+ call_onchange ( "delmailinglist" ) ;
+#endif
+
/* make dotqmail name */
strcpy(dotqmail_name, ActionUser);
for(dotnum=0;dotqmail_name[dotnum]!='\0';dotnum++) {
@@ -628,6 +634,11 @@
ezmlm_make(1);
+#ifdef ONCHANGE_SCRIPT
+ snprintf ( onchange_buf , MAX_BUFF , "[EMAIL PROTECTED]" , ActionUser ,
Domain ) ;
+ call_onchange ( "addmailinglist" ) ;
+#endif
+
snprinth (StatusMessage, sizeof(StatusMessage), "%s [EMAIL PROTECTED]",
html_text[187],
ActionUser, Domain);
show_mailing_lists(Username, Domain, Mytime);
--
mr
!DSPAM:483c1c4532354777112751!