Changeset 792 for trunk/alternc/patches/class/m_mail_egw.php
- Timestamp:
- Apr 26, 2017, 10:44:14 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/alternc/patches/class/m_mail_egw.php
r791 r792 4 4 class m_mail_egw extends m_mail { 5 5 6 7 8 9 10 11 12 13 14 6 # override mail create function to add an alias 7 function create($dom_id, $mail, $type = "", $dontcheck = false) { 8 $status = TRUE; 9 if ($type != 'mailman') { 10 # check if egw worked 11 $status = $this->_add_egw_account($dom_id, $mail, $type, $dontcheck); 12 } 13 return parent::create($dom_id,$mail,$type,$dontcheck); 14 } 15 15 16 16 function set_passwd($mail_id, $pass) { … … 25 25 26 26 function delete($mail_id) { 27 28 if ($this->_del_egw_account($mail_id) ) 29 if (parent::delete($mail_id)) 30 return true; 31 else 32 return false; 33 else 34 return false; 27 $status = TRUE; 28 if ($type != 'mailman') { 29 # check if egw worked 30 $status = $this->_del_egw_account($mail_id); 31 } 32 return parent::delete($mail_id) && $status; 35 33 } 36 34
Note: See TracChangeset
for help on using the changeset viewer.