以编程方式搜索 GMail? [英] Programmatically searching GMail?

查看:39
本文介绍了以编程方式搜索 GMail?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法以编程方式搜索 GMail,最好使用 C#?

Is there any way to programmatically search GMail, preferably using C#?

例如,我想获取与搜索 label:MyLabel from:no_reply@foo.bar 匹配的所有电子邮件,以便我可以根据需要解析电子邮件正文.

For example, I'd like to get all email messages matching the search label:MyLabel from:no_reply@foo.bar, so that I can parse the email bodies as required.

我发现唯一可行的远程方法是 GMail APIJohnvey Hwang,虽然它看起来不支持搜索电子邮件,也没有更新多年后.

The only thing remotely feasible I've found is the GMail API by Johnvey Hwang, though it doesn't look like it supports searching email and also hasn't been updated in many years either.

无论如何,到目前为止,我连将它连接到我的帐户都没有多少运气,并且想知道这是否还有效?

In any case, I haven't had much luck in getting it to even connect to my account so far, and was wondering if this even works anymore?

推荐答案

最终,我决定使用 IMAPX,效果很好.尝试了一些其他 IMAP 库,但它们不是那么强大,而且看起来有点不稳定.

Eventually, I settled with using IMAPX, which works pretty well. Tried a few other IMAP libraries which weren't as powerful and seemed a bit flaky.

如果有人感兴趣,结果是 iDevice App Reporter,这是一个 WinForms 应用程序搜索 GMail(或任何其他 IMAP 邮箱)以获取 iTunes 应用收据并解析这些收据以返回从 Apple AppStore 下载/购买的应用列表.

If anyone's interested, the outcome of this is iDevice App Reporter, which is a WinForms app that searches GMail (or any other IMAP mailbox) for iTunes app receipts and parses these to return a list of downloaded/purchased apps from the Apple AppStore.

这篇关于以编程方式搜索 GMail?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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