Android 上的 SMTP 代理守护进程
我需要为我的硕士论文开发一个 Android 应用程序,允许用户通过服务发送电子邮件,该服务在发送之前对邮件内容执行一些过滤和修改。
对于这个问题,我看到两种选择:要么在开源电子邮件客户端上实现此功能(例如 K- 9 Mail)或通过开发透明的SMTP代理服务。由于后者不需要对电子邮件客户端进行任何更改(除了配置),因此这将是首选解决方案。
由于我是Android开发的新手(我知道活动、服务等的原理,但除了“Hello World”教程之外没有真正的经验),我想问是否可以考虑在 Android 上开发一个类似 SMTP 代理守护进程的服务,我该怎么做,因为在这个主题上获得帮助非常困难。
提前表示感谢(并对我的英语蹩脚感到抱歉)。
I need to develop an Android Application for my Master Thesis that allows users to send emails through a service that performs some filtering and modifications to the mail content before sending it.
For this matter, I see two alternatives: either implementing this on top of an opensource email client (such as K-9 Mail) or by developing a transparent SMTP proxy service. Since no changes (besides configuration) in email clients would be required for the latter, this would be the preferred solution.
As I am a newbie to Android Development (I know the principles of Activities, Services, etc but no real experience apart from "Hello World" tutorials), I would like to ask if is it feasible to consider developing an SMTP proxy daemon-like service on Android, and how can I do it, since it has been very difficult to get help in this topic.
Thankful in advance (and sorry for my sloppy english).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第 1 步:查找开源 Java SMTP 代理服务器,例如此 或 这个。
步骤#2:尝试将源代码编译为 Android 项目的一部分,并修复您遇到的任何编译问题(例如,缺少类)。
这时候你就知道可不可以了。如果一切顺利,则:
步骤 #3:创建一个托管代理服务器的 Android
Service
。步骤#4:添加“对邮件内容进行一些过滤和修改”逻辑。
Step #1: Find an open source Java SMTP proxy server, such as this one or this one.
Step #2: Try compiling the source code as part of an Android project and fix any compilation problems you encounter (e.g., missing classes).
At this point, you will know whether or not it is possible. If things are going OK, then:
Step #3: Create an Android
Service
that hosts the proxy server.Step #4: Add in your "some filtering and modifications to the mail content" logic.