Commit 6b6bd9cc 6b6bd9cc9d2ba319823be7dd7edb531d16cf41cd by Alain Magloire

* include/mailutils/message.h: New prototypes message_get_uid(),

message_set_get_uid().
* include/mailutils/mailbox.h: New prototypes mailbox_uidnext(),
mailbox_uidvalidity().
1 parent efd8da5e
...@@ -53,12 +53,15 @@ extern int mailbox_create_default __P ((mailbox_t *, const char *)); ...@@ -53,12 +53,15 @@ extern int mailbox_create_default __P ((mailbox_t *, const char *));
53 extern int mailbox_open __P ((mailbox_t, int flag)); 53 extern int mailbox_open __P ((mailbox_t, int flag));
54 extern int mailbox_close __P ((mailbox_t)); 54 extern int mailbox_close __P ((mailbox_t));
55 extern int mailbox_set_folder __P ((mailbox_t, folder_t)); 55 extern int mailbox_set_folder __P ((mailbox_t, folder_t));
56 extern int mailbox_uidvalidity __P ((mailbox_t, unsigned long *));
57 extern int mailbox_uidnext __P ((mailbox_t, size_t *));
56 58
57 /* Messages. */ 59 /* Messages. */
58 extern int mailbox_get_message __P ((mailbox_t, size_t msgno, message_t *)); 60 extern int mailbox_get_message __P ((mailbox_t, size_t msgno, message_t *));
59 extern int mailbox_append_message __P ((mailbox_t, message_t)); 61 extern int mailbox_append_message __P ((mailbox_t, message_t));
60 extern int mailbox_messages_count __P ((mailbox_t, size_t *)); 62 extern int mailbox_messages_count __P ((mailbox_t, size_t *));
61 extern int mailbox_unseen_count __P ((mailbox_t, size_t *)); 63 extern int mailbox_messages_recent __P ((mailbox_t, size_t *));
64 extern int mailbox_message_unseen __P ((mailbox_t, size_t *));
62 extern int mailbox_expunge __P ((mailbox_t)); 65 extern int mailbox_expunge __P ((mailbox_t));
63 66
64 /* Update and scanning. */ 67 /* Update and scanning. */
......
...@@ -98,10 +98,14 @@ extern int message_set_get_part __P ((message_t, int (*_get_part) ...@@ -98,10 +98,14 @@ extern int message_set_get_part __P ((message_t, int (*_get_part)
98 __P ((message_t, size_t, 98 __P ((message_t, size_t,
99 message_t *)), void *owner)); 99 message_t *)), void *owner));
100 100
101 extern int message_get_uid __P ((message_t, char *, size_t, size_t *)); 101 extern int message_get_uidl __P ((message_t, char *, size_t, size_t *));
102 extern int message_set_uid __P ((message_t, int (*_get_uid) 102 extern int message_set_uidl __P ((message_t, int (*_get_uidl)
103 __P ((message_t, char *, size_t, 103 __P ((message_t, char *, size_t,
104 size_t *)), void *owner)); 104 size_t *)), void *owner));
105 extern int message_get_uid __P ((message_t, size_t *));
106 extern int message_set_uid __P ((message_t, int (*_get_uid)
107 __P ((message_t, size_t *)),
108 void *owner));
105 109
106 /* misc functions */ 110 /* misc functions */
107 extern int message_create_attachment __P ((const char *content_type, 111 extern int message_create_attachment __P ((const char *content_type,
......