Pergunta

Eu estou usando o módulo IMAP da estrutura de Zend para interagir com o Gmail.

Mas eu preciso implementar para o comando xlist (http://code.google.com/intl/nl-nl/apis/gmail/imap/#xlist) para obter nomes de pastas.Mas eu não tenho nenhuma pista como fazer isso com Zend ...

Existe alguém que possa me ajudar?

Obrigado!

Foi útil?

Solução

Use the requestAndResponse method to send arbitrary IMAP commands (from the Zend_Mail_Protocol_Imap class, not from the Zend_Mail_Storage_Imap class).

$imap = new Zend_Mail_Protocol_Imap('imap.gmail.com', '993', true);
// ... login with OAuth etc.
$response = $imap->requestAndResponse('XLIST', $imap->escapeString('', '*'));

Outras dicas

I think Zend only supports the "list" command wich provides you with local and global folder names.

I have searched the lib for "xlist" and found nothing.

Zend Mail (Read mails and folders)

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top