Ticket #1169: emailadmin_flexible_max_folders.patch

File emailadmin_flexible_max_folders.patch, 4.5 KB (added by amuller, 14 years ago)

Patch

  • expresso/emailadmin/templates/default/

    old new  
    273273                                        <input type="checkbox" name="imapsettings[2][imapoldcclient]" {selected_imapoldcclient} value="yes"> 
    274274                                </td> 
    275275                        </tr> 
     276 
     277                        <tr class="row_off"> 
     278                                <td class="td_left">{lang_imap_max_folders}:</td> 
     279                                <td class="td_right"> 
     280                                        <input name="imapsettings[2][imapMaxFolders]" maxlength="5" size="5" value="{value_imapMaxFolders}"> 
     281                                </td> 
     282                        </tr> 
     283 
    276284                </table> 
    277285        </div> 
    278286         
     
    332340                                        <input type="checkbox" name="imapsettings[3][imapoldcclient]" {selected_imapoldcclient} value="yes"> 
    333341                                </td> 
    334342                        </tr> 
     343 
     344                        <tr class="row_off"> 
     345                                <td class="td_left">{lang_imap_max_folders}:</td> 
     346                                <td class="td_right"> 
     347                                        <input name="imapsettings[3][imapMaxFolders]" maxlength="5" size="5" value="{value_imapMaxFolders}"> 
     348                                </td> 
     349                        </tr> 
     350 
    335351                </table> 
    336352                <table> 
    337353                        <tr> 
  • expresso/emailadmin/setup/tables_current.

    old new  
    4545                                'userDefinedAccounts' => array('type' => 'varchar','precision' => '3'), 
    4646                                'imapCreateSpamFolder' => array('type' => 'varchar','precision' => '3'), 
    4747                                'imapCyrusUserPostSpam' => array('type' => 'varchar','precision' => '30'), 
    48                                 'imapoldcclient' => array('type' => 'varchar','precision' => '3') 
     48                                'imapoldcclient' => array('type' => 'varchar','precision' => '3'), 
     49                                'imapMaxFolders' => array('type' => 'varchar','precision' => '5') 
    4950                        ), 
    5051                        'pk' => array('profileID'), 
    5152                        'fk' => array(), 
  • expresso/emailadmin/setup/tables_update.

    old new  
    109109      $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.2.000'; 
    110110      return $GLOBALS['setup_info']['emailadmin']['currentver']; 
    111111   } 
     112   $test[] = '2.2.000'; 
     113   function emailadmin_upgrade2_2000() 
     114        { 
     115      $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_emailadmin','imapmaxfolders', array('type' => 'varchar', 'precision' => 5)); 
     116      $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.2.001'; 
     117      return $GLOBALS['setup_info']['emailadmin']['currentver']; 
     118   } 
    112119?> 
     120 No newline at end of file 
  • expresso/emailadmin/setup/setup.

    old new  
    1313 
    1414        $setup_info['emailadmin']['name']      = 'emailadmin'; 
    1515        $setup_info['emailadmin']['title']     = 'EMailAdmin'; 
    16         $setup_info['emailadmin']['version']   = '2.2.000'; 
     16        $setup_info['emailadmin']['version']   = '2.2.001'; 
    1717        $setup_info['emailadmin']['app_order'] = 10; 
    1818        $setup_info['emailadmin']['enable']    = 2; 
    1919 
  • expresso/emailadmin/setup/

    old new  
    2828imap admin password     admin   pt-br   Senha do administrador IMAP 
    2929imap admin user admin   pt-br   Usuário administrador do IMAP 
    3030imap c-client version < 2001    emailadmin      pt-br   IMAP C-Cliente Versão < 2001 
     31imap max folders        emailadmin      pt-br   Exibição máxima de pastas IMAP 
    3132imap/pop3 server name   emailadmin      pt-br   Nome do servidor IMAP/POP3 
    3233imap server hostname or ip address      emailadmin      pt-br   Nome ou IP do servidor IMAP 
    3334imap server logintyp    emailadmin      pt-br   Tipo de login do servidor IMAP 
  • expresso/expressoMail1_2/inc/class.imap_functions.

    old new  
    2727        var $imap_sentfolder; 
    2828 
    2929        function imap_functions (){ 
    30                 $this->foldersLimit = 200; //Limit of folders (mailboxes) user can see 
     30                $this->foldersLimit = $_SESSION['phpgw_info']['expressomail']['email_server']['imapMaxFolders'] ? $_SESSION['phpgw_info']['expressomail']['email_server']['imapMaxFolders'] : 200 ; 
    3131                $this->username           = $_SESSION['phpgw_info']['expressomail']['user']['userid']; 
    3232                $this->password           = $_SESSION['phpgw_info']['expressomail']['user']['passwd']; 
    3333                $this->imap_server        = $_SESSION['phpgw_info']['expressomail']['email_server']['imapServer'];