| 48 uint32_t unread_emails; |
49 uint32_t unread_emails; |
| 49 uint32_t total_threads; |
50 uint32_t total_threads; |
| 50 uint32_t unread_threads; |
51 uint32_t unread_threads; |
| 51 }; |
52 }; |
| 52 |
53 |
| |
54 struct JMAPMail { |
| |
55 JMAPSession *session; |
| |
56 char *id; |
| |
57 char *subject; |
| |
58 char *from; |
| |
59 time_t received_at; |
| |
60 }; |
| |
61 |
| 53 void jmap_mailbox_free(JMAPMailBox *mailbox); |
62 void jmap_mailbox_free(JMAPMailBox *mailbox); |
| 54 |
63 |
| 55 CxList* jmap_mailbox_get_list(JMAPSession *sn); |
64 CxList* jmap_mailbox_get_list(JMAPSession *sn); |
| |
65 CxList* jmap_mailbox_get_mails(JMAPMailBox *mailbox); |
| 56 |
66 |
| 57 |
67 |
| 58 #ifdef __cplusplus |
68 #ifdef __cplusplus |
| 59 } |
69 } |
| 60 #endif |
70 #endif |