equal
deleted
inserted
replaced
411 if addresses: |
411 if addresses: |
412 addr = u'@'.join |
412 addr = u'@'.join |
413 _dom = self._name |
413 _dom = self._name |
414 relocated = [addr((address[0], _dom)) for address in addresses] |
414 relocated = [addr((address[0], _dom)) for address in addresses] |
415 return relocated |
415 return relocated |
|
416 |
|
417 def get_catchall(self): |
|
418 """Returns a list with all catchall e-mail addresses of the domain.""" |
|
419 self._chk_state() |
|
420 dbc = self._dbh.cursor() |
|
421 dbc.execute('SELECT DISTINCT destination FROM catchall WHERE gid = %s ORDER ' |
|
422 'BY destination', (self._gid,)) |
|
423 addresses = dbc.fetchall() |
|
424 dbc.close() |
|
425 return addresses |
416 |
426 |
417 def get_aliase_names(self): |
427 def get_aliase_names(self): |
418 """Returns a list with all alias domain names of the domain.""" |
428 """Returns a list with all alias domain names of the domain.""" |
419 self._chk_state() |
429 self._chk_state() |
420 dbc = self._dbh.cursor() |
430 dbc = self._dbh.cursor() |