File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,13 @@ function onBeforeInsert() {
194194 function onAfterInsert() {
195195 global $app, $conf;
196196
197+ $mlManager = $app->getconf->get_server_config($conf['server_id'], 'mail')['mailinglist_manager'];
198+ if($mlManager == 'mlmmj') {
199+ // The following update is usefull to set the prefix of the new mailinglist as the list name
200+ $sql = 'UPDATE mail_mailinglist SET subject_prefix = ? WHERE mailinglist_id = ?';
201+ $app->db->query($sql, '['.$this->dataRecord['listname'].']', $this->id);
202+ }
203+
197204 // make sure that the record belongs to the client group and not the admin group when a dmin inserts it
198205 // also make sure that the user can not delete domain created by a admin
199206 if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) {
You can’t perform that action at this time.
0 commit comments