VirtualMailManager/domain.py
changeset 611 8e9b0046bc8f
parent 568 14abdd04ddf5
child 615 5882bfdf83e8
equal deleted inserted replaced
610:b6c4e77046b9 611:8e9b0046bc8f
   460 
   460 
   461     def get_catchall(self):
   461     def get_catchall(self):
   462         """Returns a list with all catchall e-mail addresses of the domain."""
   462         """Returns a list with all catchall e-mail addresses of the domain."""
   463         self._chk_state()
   463         self._chk_state()
   464         dbc = self._dbh.cursor()
   464         dbc = self._dbh.cursor()
   465         dbc.execute('SELECT DISTINCT destination FROM catchall WHERE gid = %s ORDER '
   465         dbc.execute('SELECT DISTINCT destination FROM catchall WHERE gid = %s '
   466                     'BY destination', (self._gid,))
   466                     'ORDER BY destination', (self._gid,))
   467         addresses = dbc.fetchall()
   467         addresses = dbc.fetchall()
   468         dbc.close()
   468         dbc.close()
   469         return addresses
   469         return addresses
   470 
   470 
   471     def get_aliase_names(self):
   471     def get_aliase_names(self):