为项目创建邮件应用程序
我目前正在为我的项目创建邮件应用程序,并且我目前正在尝试弄清楚,像 gmail 这样的邮件应用程序如何将特定电子邮件地址的所有消息移动,每当标记为垃圾邮件时,我都会在运行时将其作为垃圾邮件单击到垃圾邮件文件夹中垃圾邮件地址再次发送邮件。他们做什么配置?我想在我的应用程序中启用此功能,我该怎么做?我正在使用 Javamail api 创建我的应用程序。
I'm currently creating mail application for my project, and I'm currently trying to figure out, how mail application like gmail, moves all the messages of particular email address, which I clicked as spam into the spam folder at runtime whenever that marked spam address send messages again. What configuration they do? I want to enable this functionality in my application, how can I do this? I'm creating my application using Javamail api.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
他们肯定会在收到电子邮件时对其进行过滤。他们会有某种触发器或挂钩来检查每封电子邮件的有效性。如果您的应用程序使用的邮件服务器/API 不提供此类功能,您可能需要定期轮询电子邮件收件箱,检查禁止邮件地址的黑名单。不过我不知道javamail,所以也许有人对此有更具体的了解。
They quite certainly filter E-Mails at the time they are received. They would have some kind of trigger or hook that checks each E-Mail for validity. If the mail server / API your application works with does not offer that kind of functionality, you will probably have to poll the E-Mail inbox on a regular basis, checking against a blacklist of banned mail addresses. I don't know javamail though, so maybe somebody has more specific for that.