Changeset 792 for trunk


Ignore:
Timestamp:
Apr 26, 2017, 10:44:14 PM (7 years ago)
Author:
autocommit@…
Message:

probamos cuando hay que suprimir una lista, de no tocar ldap... (no anda por ahora)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/alternc/patches/class/m_mail_egw.php

    r791 r792  
    44class m_mail_egw extends m_mail {
    55
    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     }
     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        }
    1515
    1616        function set_passwd($mail_id, $pass) {
     
    2525
    2626        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;
    3533        }
    3634
Note: See TracChangeset for help on using the changeset viewer.