@@ -109,10 +109,9 @@ function insert($event_name, $data) {
109109 // WARNING: Edit this section if default DB values will be modified!
110110 touch ("$ listDir/control/nodigestsub " );
111111 touch ("$ listDir/control/noarchive " );
112-
113- // Saving ML base data
114112 file_put_contents ("$ listDir/control/owner " , $ owner );
115113 file_put_contents ("$ listDir/control/listaddress " , "$ listName@ $ listDomain " );
114+ file_put_contents ("$ listDir/control/prefix " , $ listName );
116115
117116 // Copying language translations
118117 if (!is_dir ("/usr/share/mlmmj/text.skel/ $ lang " )) $ lang = 'en ' ;
@@ -130,12 +129,6 @@ function insert($event_name, $data) {
130129
131130 // Creating virtual entry
132131 $ this ->addMapEntry ("$ listName@ $ listDomain $ listDomain-- $ listName@localhost.mlmmj " , self ::ML_VIRTUAL );
133-
134- $ mlmmjmaintd ='/usr/bin/mlmmj-maintd ' ;
135- // CRONENTRY="0 */2 * * * \"$MLMMJMAINTD -F -L $SPOOLDIR/$FQDN/$LISTNAME/\""
136-
137- // /usr/sbin/postfix reload
138- $ app ->db ->query ("UPDATE mail_mailinglist SET password = '' WHERE mailinglist_id = " .$ app ->db ->quote ($ rec ['mailinglist_id ' ]));
139132 }
140133 }
141134
@@ -151,8 +144,7 @@ function update($event_name, $data) {
151144
152145 $ controlDir = "{$ mlConf ['spool_dir ' ]}/ {$ rec ['domain ' ]}/ {$ rec ['listname ' ]}/control " ;
153146
154-
155- // Does'nt matter if list is open or close, members can ALWAYS unsubscribe
147+ // Doesn't matter if the list is open or close, members can ALWAYS unsubscribe
156148 if ($ rec ['list_type ' ] == 'open ' ) {
157149 switch ($ rec ['subscribe_policy ' ]) {
158150 case 'disabled ' :
@@ -210,6 +202,9 @@ function update($event_name, $data) {
210202 @unlink ("$ controlDir/digestmaxmails " );
211203 }
212204
205+ if ($ rec ['subject_prefix ' ])
206+ file_put_contents ("$ controlDir/prefix " , $ rec ['subject_prefix ' ]);
207+
213208 $ this ->changeOwnership ("$ controlDir/* " );
214209 }
215210 }
0 commit comments