Ignore:
Timestamp:
08/04/09 10:52:11 (15 years ago)
Author:
fpcorrea
Message:

Ticket #573 - Importação de mensagens é limitado pelo tamanho máximo de anexos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r1248 r1264  
    6060                // This error is returned from Postfix. 
    6161                elseif(strstr($error,'message file too big')) { 
    62                         return str_replace("%1",$_SESSION['phpgw_info']['user']['preferences']['expressoMail']['max_attachment_size']."M",$this->functions->getLang('The size of this message has exceeded  the limit (%1B).')); 
     62                        return str_replace("%1",$_SESSION['phpgw_info']['user']['preferences']['expressoMail']['max_attachment_size'],$this->functions->getLang('The size of this message has exceeded  the limit (%1B).')); 
    6363                } 
    6464                elseif(strstr($error,'virus')) { 
     
    18181818                { 
    18191819                        $total_uploaded_size = 0; 
    1820                         $upload_max_filesize = $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['max_attachment_size'];  
     1820                        $upload_max_filesize = str_replace("M","",$_SESSION['phpgw_info']['user']['preferences']['expressoMail']['max_attachment_size']) * 1024 * 1024; 
    18211821                        foreach ($attachments as $attach) 
    18221822                        { 
Note: See TracChangeset for help on using the changeset viewer.