英寸×-GM-THRID"通过imap php [英] "X-GM-THRID" via imap php

查看:100
本文介绍了英寸×-GM-THRID"通过imap php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Vivek,你可以举一个例子HOWTO通过imap php抓取X-GM-THRID吗?

解决方案

与Zend的IMAP类。网页界面中的ID应该是Gmail希望通过IMAP获得的相同编号的HEX版本(http://www.limilabs.com/blog/tag/x-gm-thrid),但我仍然遇到了麻烦那些因为如果我从HEX转换他们数字是有点关闭。

$ $ p $ $ imap =新的Zend \Mail \Protocol \Imap('imap.gmail.com','993',true);
$ imap-> search(array('X-GM-THRID','1424628081834791276');


Vivek, could you give an example HOWTO grab "X-GM-THRID" via imap php?

解决方案

It's simple with Zend's IMAP class. The IDs in the web interface are supposed to be HEX versions of the same number Gmail expects through IMAP (http://www.limilabs.com/blog/tag/x-gm-thrid), tough I'm still having trouble using those because if I convert them from HEX the numbers are a bit off.

$imap = new Zend\Mail\Protocol\Imap('imap.gmail.com', '993', true);
$imap->search(array('X-GM-THRID', '1424628081834791276');

这篇关于英寸×-GM-THRID"通过imap php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆