mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28:50 -05:00
Extract preview of message text
This commit is contained in:
parent
fe7b88f7c2
commit
5e4743bf66
@ -1247,10 +1247,11 @@ public class LocalFolder extends Folder<LocalMessage> implements Serializable {
|
|||||||
parentId = threadInfo.parentId;
|
parentId = threadInfo.parentId;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: construct message preview
|
|
||||||
//TODO: get attachment count
|
//TODO: get attachment count
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
String preview = MessagePreviewExtractor.extractPreview(localStore.context, message);
|
||||||
|
|
||||||
long rootMessagePartId = saveMessageParts(db, message);
|
long rootMessagePartId = saveMessageParts(db, message);
|
||||||
|
|
||||||
ContentValues cv = new ContentValues();
|
ContentValues cv = new ContentValues();
|
||||||
@ -1270,7 +1271,7 @@ public class LocalFolder extends Folder<LocalMessage> implements Serializable {
|
|||||||
cv.put("to_list", Address.pack(message.getRecipients(RecipientType.TO)));
|
cv.put("to_list", Address.pack(message.getRecipients(RecipientType.TO)));
|
||||||
cv.put("cc_list", Address.pack(message.getRecipients(RecipientType.CC)));
|
cv.put("cc_list", Address.pack(message.getRecipients(RecipientType.CC)));
|
||||||
cv.put("bcc_list", Address.pack(message.getRecipients(RecipientType.BCC)));
|
cv.put("bcc_list", Address.pack(message.getRecipients(RecipientType.BCC)));
|
||||||
cv.put("preview", ""); //FIXME
|
cv.put("preview", preview);
|
||||||
cv.put("reply_to_list", Address.pack(message.getReplyTo()));
|
cv.put("reply_to_list", Address.pack(message.getReplyTo()));
|
||||||
cv.put("attachment_count", 0); //FIXME
|
cv.put("attachment_count", 0); //FIXME
|
||||||
cv.put("internal_date", message.getInternalDate() == null
|
cv.put("internal_date", message.getInternalDate() == null
|
||||||
|
Loading…
Reference in New Issue
Block a user