inbox

Android系统修改之Email自动回复功能分析

给你一囗甜甜゛ 提交于 2019-11-30 02:53:11
1. Email添加自动回复功能需要注意事项 Email可能存在多个账户, 因此自动回复功能应该添加在账户设置里面, 自动回复针对一个账户单独处理 在Email账户设置里面, 开启自动回复功能的时, 需要保存设置的时间(时间戳, 是否需要考虑时区等影响), 账户ID, 自动回复的内容(自动回复的内容, 由用户编辑, 内置默认回复), 开启状态 自动回复功能的设置数据, 通过Email账户的EmailAddress获取 2. Email自动回复功能注意事项 监听Email数据库中MESSAGE表的数据(邮件)变化 判断邮件的mailboxKey的类型是否是INBOX 判断邮件的accountKey是否是开启自动回复功能的账户 判断邮件的timeStamp是否晚于开启自动回复功能的时间 判断该邮件的接收者是否已经自动回复 通过 subject 判断是否有 Re:subject 数据. 如果有则说明已经自动回复, 如果没有则说明没有自动回复. 该种方式不可靠 在MESSAGE添加 replyMessageId 字段, INBOX 类型的邮件存储自动回复邮件的ID, 自动回复邮件存储被自动回复邮件的ID. 工作量比较大, 改动较多 如果INBOX数据有抄送(cc), 或者暗抄送(bcc), 自动回复数据是否添加? 自动回复数据是否携带引用(quote), 如果接收的邮件有附件怎么处理?

AKKA Inbox收件箱

三世轮回 提交于 2019-11-29 09:44:27
起因 得到ActorRef就可以给actor发送消息,但无法接收多回复,也不知道actor是否停止 Inbox收件箱出现就是解决这两个问题 示例 package akka.demo.actor import akka.actor.* import java.time.Duration /** ** created by tankx ** 2019/9/12 与actor 通信模式ask或tell 无法支持接收多回复和观察其它actor的生命周期,所以inbox应用而生 **/ fun main() { val system = ActorSystem.create("box-sys") val helloActor = system.actorOf(HelloActor.props("tom")) helloActor.tell("hi", ActorRef.noSender()) val box = Inbox.create(system) box.send(helloActor, "how are you!") box.watch(helloActor)//监控actor 的生命周期,当actor stop, receive会接收到Terminated消息 helloActor.tell(PoisonPill.getInstance(), ActorRef.noSender()

Explicitly saving new messages to inbox

邮差的信 提交于 2019-11-28 14:08:21
Question regarding content://sms/inbox : 1) Is it advisable to explicitly store incoming messages to inbox? 2) What if an android device has a native messaging app and my messaging app was installed to it, and then I explicitly store incoming messages to inbox, will the messages duplicate? 3) Does android automatically store new messages to inbox regardless if there is a messaging application? Thanks. Regarding SMS, details vary depending on the Android version. Prior to KitKat, the SMS API was undocumented. With KitKat, the concept of a default SMS app was introduced, and the SMS API became

Explicitly saving new messages to inbox

北城余情 提交于 2019-11-27 08:19:04
问题 Question regarding content://sms/inbox : 1) Is it advisable to explicitly store incoming messages to inbox? 2) What if an android device has a native messaging app and my messaging app was installed to it, and then I explicitly store incoming messages to inbox, will the messages duplicate? 3) Does android automatically store new messages to inbox regardless if there is a messaging application? Thanks. 回答1: Regarding SMS, details vary depending on the Android version. Prior to KitKat, the SMS

How can I read SMS messages from the device programmatically in Android?

一世执手 提交于 2019-11-25 22:59:09
问题 I want to retrieve the SMS messages from the device and display them? 回答1: Use Content Resolver ( "content://sms/inbox" ) to read SMS which are in inbox. // public static final String INBOX = "content://sms/inbox"; // public static final String SENT = "content://sms/sent"; // public static final String DRAFT = "content://sms/draft"; Cursor cursor = getContentResolver().query(Uri.parse("content://sms/inbox"), null, null, null, null); if (cursor.moveToFirst()) { // must check the result to