Changeset 4236


Ignore:
Timestamp:
05/06/11 11:12:58 (13 years ago)
Author:
airton
Message:

Ticket #1844 - Corrigir o suporte a REFERRAL no servico de filtro sieve

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.2.0.2/expressoMail1_2/inc/class.SieveS.inc.php

    r3018 r4236  
    187187         
    188188                $said = $this->read(); 
     189                 
     190                // DEBUG: Para compatibilizar o sieve com o REFERRAL 
     191                //$tmp = array(); 
     192        /*if ( preg_match('|^BYE \(REFERRAL "(sieve://)?([^/"]+)"\)|', $said, $tmp) ){ 
     193                        // Redefine a configuracao do servidor sieve, baseado no referral 
     194                        $this->host = $tmp[2]; 
     195                        // Forca reiniciar a conexao, mas agora para o novo servidor 
     196                        $this->close (); 
     197                        unset ($this->socket); 
     198                        $this->start (); 
     199 
     200                        // Excuta novamente esta funcao (libscripts) para continuar a sequncia do codigo 
     201                        // Chama-la recursivamente nao funciona. A funcao fica em loop 
     202                        if(!is_resource($this->socket)){ 
     203                                $this->errstr = "listscripts: sem conexao para o servidor $this->host"; 
     204                                return false; 
     205                        } 
     206                        fputs($this->socket,"LISTSCRIPTS\r\n"); 
     207                        $said = $this->read(); 
     208        }*/ 
     209 
     210                 
    189211                while (is_resource($this->socket) && (!preg_match("/^OK/",$said) && !preg_match("/^NO/",$said))) {  
    190212         
Note: See TracChangeset for help on using the changeset viewer.