Skip to content

Commit

Permalink
Ajustado charset para UTF8 para criação de pastas
Browse files Browse the repository at this point in the history
Committer: wagner852 <[email protected]>
	modified:   PhpMailSync.class.php
  • Loading branch information
Wagner Silveira committed Mar 21, 2014
1 parent 8ff0c71 commit dfe6227
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions PhpMailSync.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,15 +422,14 @@ public function verificarPadraoMailbox($origem,$pastas){
*
* @param object $origem
* @param string $pastas As pastas devem ser as do servidor de origem
*
*
* @return string Status de execução
*/
public function criarMailboxInexistentes($origem,$pastas){
$pastas=$this->verificarPadraoMailbox($origem,$pastas);
if(!array_search($this->mbox.$pastas,$this->pastas)){
$pastas =imap_utf8($pastas);
if(imap_createmailbox($this->stream, imap_utf7_encode($this->mbox.$pastas))){
if(!@imap_subscribe($this->stream,$this->mbox.imap_utf7_encode($pastas))){
if(imap_createmailbox($this->stream,$this->mbox.imap_utf8($pastas))){
if(!@imap_subscribe($this->stream,$this->mbox.imap_utf8($pastas))){
return "Falha na inscricao da pasta: $pastas"."\n";
}
//Gera Estatistica -> numeroDePastasCriadas
Expand Down

0 comments on commit dfe6227

Please sign in to comment.