Changeset 4619 for contrib/z-push


Ignore:
Timestamp:
06/16/11 15:40:01 (13 years ago)
Author:
emersonfaria
Message:

Ticket #2016 - Corpo texto muito grandes sao truncados pelo Z-Push antes de irem para o celular

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/z-push/backend/imap.php

    r4618 r4619  
    979979 
    980980                $this->getBodyRecursive($message, "plain", $body); 
     981                if($trunc == true and isset($body) and strlen($body) > 102400) {  
     982                        $body = substr($body, 0, 102400); 
     983                        $body .= "\n\n\n A MENSAGEM FOI TRUNCADA NO CELULAR(MENSAGEM MUITO GRANDE)."; 
     984                } 
    981985 
    982986                if(!isset($body) or $body === '') { 
Note: See TracChangeset for help on using the changeset viewer.