我想将电子邮件和附件从Gmail(Google Apps)保存到另一个类似于CRM的功能的数据库中。但是,根据docs,“提取程序无法读取电子邮件附件”。我的问题:是否有可能以某种方式使用电子邮件中的某种标识符(例如EmailTimeExtractor)并使用它来使用IMAP提取附件?我对于上下文小工具还不是非常熟悉,只是想知道在潜水前我是否有可能尝试去做!使用gmail上下文小工具访问附件
5
A
回答
1
如果您使用标准的imap客户端将邮件拉下来,您将获得附件。这将是其中的一部分。伪代码:
email = new->email_object();
remote_mailbox = new->imap_object_creator(username, password, ...)
while (email = remote_mailbox->download_next_email) { // this downloads the next email
foreach part_type (email->parts->next) { // this iterates over the parts of the email
if(part_type == 'attachment') { // not sure if this is it exactly, but you'll find it in the mime-type
//hooray! you've found an attachment. do what you will with it
}
}
}
当我这样做,我写它在Perl,所以我使用的MIME ::工具套件来保存电子邮件和IMAP客户端::我的IMAP客户端。但是任何语言都应该有可用于表示IMAP连接和电子邮件的公共对象。
0
我相信Attachments.me完全是这样 - 这是否有帮助,或者您的需求仍未得到满足?
0
应该可以从提取器中获取电子邮件ID,然后使用google apps脚本GmailAttachment对象获取附件。
相关问题
- 1. 无法授予访问上下文Gmail邮件小工具
- 2. gmail上下文小工具未显示
- 3. 关闭gmail上下文小工具
- 4. 调试Gmail上下文小工具?
- 5. 从Gmail上下文小工具使用Google API?
- 6. 在Gmail上下文小工具中获取用户名
- 7. Gmail上下文小工具坏了(再次)
- 8. 开发没有Google App域的Gmail上下文小工具?
- 9. 无法让Gmail上下文小工具加载
- 10. gmail上下文小工具中的错误
- 11. Gmail上下文小工具和OpenID身份验证步骤
- 12. 从GMail小工具内访问当前用户Google Apps域
- 13. Gmail上下文小工具makeRequest的调用与内部服务器错误
- 14. Qt可访问小工具
- 15. 在GMAIL上使用IMAP获取附件的大小
- 16. 如何下载gmail附件?
- 17. 从php下载gmail附件
- 18. 使用sudo访问附加到文件
- 19. 如何在Gmail上下文小工具中实施SIGNED授权类型
- 20. 如何在Gmail上下文小工具中创建HTTP POST请求?
- 21. Gmail的联想小工具现在在Gmail邮件中显示
- 22. 如何访问outlook 2003中附件的上下文菜单?
- 23. 默认情况下在gmail上附加签名文件
- 24. 使用cfpop访问gmail
- 25. 访问用户上下文
- 26. 无法使用使用钥匙串访问工具钥匙扣访问工具
- 27. 使用gmail api访问委托邮件文件夹
- 28. 使用上下文访问Android服务
- 29. 是否可以使用常规gmail.com帐户测试和开发gmail上下文小工具
- 30. Gmail内容比较小工具域名
附件不是唯一受限制的东西。您还将只能使用gmail-contextual-gadget API获取邮件正文的前1000个字符 – JochenJung 2010-08-12 16:59:19