except:
raise Exception('method "%s" is not supported' % method)
+ def is_rpc_path_valid(self):
+ return True
def _dispatch(self, method, params):
- new_params = list(params)
return list_call_dispatcher(self._get_function(method), self.data[0], self.data[1], self.data[2], *params)
def do_POST(self):
if ( fqdn == PLATAL_DOMAIN ) or ( fqdn == PLATAL_DOMAIN2 ):
res = mysql_fetchone("""SELECT CONCAT(f.alias, '@%s'), a.full_name
FROM accounts AS a
- INNER JOIN aliases AS f ON (f.uid = a.uid AND f.type = 'a_vie')
+ INNER JOIN aliases AS f ON (f.uid = a.uid AND f.type = 'a_vie')
INNER JOIN aliases AS aa ON (aa.uid = a.uid AND aa.alias = '%s'
AND a.type != 'homonyme')
WHERE a.state = 'active'
return result
def unsubscribe(userdesc, perms, mlist):
- "" Unsubscribe from a list
+ """ Unsubscribe from a list
@mlist
@edit
"""
# avoid the "-1 mail to moderate" bug
mlist = MailList.MailList(name)
- mlist._UpdateRecords()
- mlist.Save()
+ try:
+ mlist._UpdateRecords()
+ mlist.Save()
+ finally:
+ mlist.Unlock()
return 1
def delete_list(userdesc, perms, mlist, del_archives=0):