mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-31 07:10:14 -05:00
First rouind of extracting the "load messages from the db" column list
This commit is contained in:
parent
1ea96796d6
commit
9796cb6487
@ -561,6 +561,16 @@ public class LocalStore extends Store implements Serializable
|
|||||||
private String prefId = null;
|
private String prefId = null;
|
||||||
private String mPushState = null;
|
private String mPushState = null;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* a String containing the columns getMessages expects to work with
|
||||||
|
* in the correct order.
|
||||||
|
*/
|
||||||
|
private String GET_MESSAGES_COLS =
|
||||||
|
|
||||||
|
"subject, sender_list, date, uid, flags, id, to_list, cc_list, "
|
||||||
|
+ "bcc_list, reply_to_list, attachment_count, internal_date, message_id ";
|
||||||
|
|
||||||
|
|
||||||
public LocalFolder(String name)
|
public LocalFolder(String name)
|
||||||
{
|
{
|
||||||
this.mName = name;
|
this.mName = name;
|
||||||
@ -1217,9 +1227,9 @@ public class LocalStore extends Store implements Serializable
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
cursor = mDb.rawQuery(
|
cursor = mDb.rawQuery(
|
||||||
"SELECT subject, sender_list, date, uid, flags, id, to_list, cc_list, "
|
"SELECT "
|
||||||
+ "bcc_list, reply_to_list, attachment_count, internal_date, message_id "
|
+ GET_MESSAGES_COLS
|
||||||
+ "FROM messages " + "WHERE uid = ? " + "AND folder_id = ?",
|
+ "FROM messages WHERE uid = ? AND folder_id = ?",
|
||||||
new String[]
|
new String[]
|
||||||
{
|
{
|
||||||
message.getUid(), Long.toString(mFolderId)
|
message.getUid(), Long.toString(mFolderId)
|
||||||
|
Loading…
Reference in New Issue
Block a user