Changeset 11522 for trunk

Show
Ignore:
Timestamp:
10/20/08 16:13:37 (3 months ago)
Author:
javier.amor.garcia@…
Message:

Bugfix: MDSize attribute should not be restored in sytems with MDSize feature disabled

Location:
trunk/client/mail
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/client/mail/ChangeLog

    r11514 r11522  
    110.12.100 
    2         + EBox::MailUserLdap::userAccount and  EBox::MailUserLdap::getUserLdapValue  dont longer assumme that the user exists 
     2        + EBox::MailUserLdap::userAccount and 
     3        EBox::MailUserLdap::getUserLdapValue  dont longer assumme that the 
     4        user exists 
     5        + Bugfix: MDSize attribute should not be restored in sytems with 
     6        MDSize feature disabled 
    370.12.99 
    48        + Add support for reporting 
  • trunk/client/mail/src/EBox/Mail/ImportFromLdif.pm

    r10988 r11522  
    6868 
    6969    my $mailMod = EBox::Global->modInstance('mail'); 
     70    $mailMod->mdQuotaAvailable() or 
     71        return; 
     72 
     73 
    7074    my $mailUserLdap = $mailMod->_ldapModImplementation(); 
    7175    $mailUserLdap->setMDSize($mdsize); 
     
    9397    my $vdomainsLdap = EBox::MailVDomainsLdap->new(); 
    9498     
    95     # we add it to LDAP because until we have changed users to useg gconf things 
     99    # we add it to LDAP because until we have changed users to use gconf, things 
    96100    # may became inconsistent with mail accounts 
    97101    $vdomainsLdap->addVDomain($vdomain); 
     
    125129    my $vdomain = $entry->get_value('dc'); 
    126130 
     131 
     132 
     133    # quota sutff 
     134 
    127135    my $dftmdsize = $entry->get_value('vddftMaildirSize'); 
    128136 
    129     $dftmdsize or return; 
     137    $dftmdsize or  
     138        return; 
     139 
     140    my $mailMod = EBox::Global->modInstance('mail'); 
     141    $mailMod->mdQuotaAvailable() or 
     142        return; 
     143 
    130144 
    131145    my $vdomainsLdap = EBox::MailVDomainsLdap->new(); 
    132     $vdomainsLdap->_addVDomainWiithMdQuota($vdomain, $dftmdsize); 
     146    $vdomainsLdap->_addVDomainWithMdQuota($vdomain, $dftmdsize); 
    133147} 
    134148