为项目创建邮件应用程序

发布于 2024-08-08 06:30:56 字数 183 浏览 1 评论 0原文

我目前正在为我的项目创建邮件应用程序,并且我目前正在尝试弄清楚,像 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

简单 2024-08-15 06:30:56

他们肯定会在收到电子邮件时对其进行过滤。他们会有某种触发器或挂钩来检查每封电子邮件的有效性。如果您的应用程序使用的邮件服务器/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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文