summaryrefslogtreecommitdiffstats
path: root/framework/domain/maillistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/domain/maillistmodel.cpp')
-rw-r--r--framework/domain/maillistmodel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/domain/maillistmodel.cpp b/framework/domain/maillistmodel.cpp
index c96f6dd1..11fb9f82 100644
--- a/framework/domain/maillistmodel.cpp
+++ b/framework/domain/maillistmodel.cpp
@@ -48,6 +48,7 @@ QHash< int, QByteArray > MailListModel::roleNames() const
48 roles[Unread] = "unread"; 48 roles[Unread] = "unread";
49 roles[Important] = "important"; 49 roles[Important] = "important";
50 roles[Draft] = "draft"; 50 roles[Draft] = "draft";
51 roles[Sent] = "sent";
51 roles[Trash] = "trash"; 52 roles[Trash] = "trash";
52 roles[Id] = "id"; 53 roles[Id] = "id";
53 roles[MimeMessage] = "mimeMessage"; 54 roles[MimeMessage] = "mimeMessage";
@@ -105,6 +106,8 @@ QVariant MailListModel::data(const QModelIndex &idx, int role) const
105 return mail->getProperty("importantCollected").toList().contains(true); 106 return mail->getProperty("importantCollected").toList().contains(true);
106 case Draft: 107 case Draft:
107 return mail->getDraft(); 108 return mail->getDraft();
109 case Sent:
110 return mail->getSent();
108 case Trash: 111 case Trash:
109 return mail->getTrash(); 112 return mail->getTrash();
110 case Id: 113 case Id:
@@ -162,6 +165,7 @@ void MailListModel::setParentFolder(const QVariant &parentFolder)
162 query.request<Mail::Unread>(); 165 query.request<Mail::Unread>();
163 query.request<Mail::Important>(); 166 query.request<Mail::Important>();
164 query.request<Mail::Draft>(); 167 query.request<Mail::Draft>();
168 query.request<Mail::Sent>();
165 query.request<Mail::Trash>(); 169 query.request<Mail::Trash>();
166 query.request<Mail::Folder>(); 170 query.request<Mail::Folder>();
167 mFetchMails = false; 171 mFetchMails = false;
@@ -200,6 +204,8 @@ void MailListModel::setMail(const QVariant &variant)
200 query.request<Mail::Unread>(); 204 query.request<Mail::Unread>();
201 query.request<Mail::Important>(); 205 query.request<Mail::Important>();
202 query.request<Mail::Draft>(); 206 query.request<Mail::Draft>();
207 query.request<Mail::Folder>();
208 query.request<Mail::Sent>();
203 query.request<Mail::Trash>(); 209 query.request<Mail::Trash>();
204 query.request<Mail::MimeMessage>(); 210 query.request<Mail::MimeMessage>();
205 query.request<Mail::FullPayloadAvailable>(); 211 query.request<Mail::FullPayloadAvailable>();