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
...@@ -46,49 +46,52 @@ extern "C" { ...@@ -46,49 +46,52 @@ extern "C" {
46 #endif /*__P */ 46 #endif /*__P */
47 47
48 /* Constructor/destructor and possible types. */ 48 /* Constructor/destructor and possible types. */
49 extern int mailbox_create __P ((mailbox_t *, const char *)); 49 extern int mailbox_create __P ((mailbox_t *, const char *));
50 extern void mailbox_destroy __P ((mailbox_t *)); 50 extern void mailbox_destroy __P ((mailbox_t *));
51 extern int mailbox_create_default __P ((mailbox_t *, const char *)); 51 extern int mailbox_create_default __P ((mailbox_t *, const char *));
52 52
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 *));
62 extern int mailbox_expunge __P ((mailbox_t)); 64 extern int mailbox_message_unseen __P ((mailbox_t, size_t *));
65 extern int mailbox_expunge __P ((mailbox_t));
63 66
64 /* Update and scanning. */ 67 /* Update and scanning. */
65 extern int mailbox_size __P ((mailbox_t, off_t *size)); 68 extern int mailbox_size __P ((mailbox_t, off_t *size));
66 extern int mailbox_is_updated __P ((mailbox_t)); 69 extern int mailbox_is_updated __P ((mailbox_t));
67 extern int mailbox_scan __P ((mailbox_t, size_t no, size_t *count)); 70 extern int mailbox_scan __P ((mailbox_t, size_t no, size_t *count));
68 71
69 /* Mailbox Stream. */ 72 /* Mailbox Stream. */
70 extern int mailbox_set_stream __P ((mailbox_t, stream_t)); 73 extern int mailbox_set_stream __P ((mailbox_t, stream_t));
71 extern int mailbox_get_stream __P ((mailbox_t, stream_t *)); 74 extern int mailbox_get_stream __P ((mailbox_t, stream_t *));
72 75
73 /* Lock settings. */ 76 /* Lock settings. */
74 extern int mailbox_get_locker __P ((mailbox_t, locker_t *)); 77 extern int mailbox_get_locker __P ((mailbox_t, locker_t *));
75 extern int mailbox_set_locker __P ((mailbox_t, locker_t)); 78 extern int mailbox_set_locker __P ((mailbox_t, locker_t));
76 79
77 /* Authentication. */ 80 /* Authentication. */
78 extern int mailbox_get_authority __P ((mailbox_t, authority_t *)); 81 extern int mailbox_get_authority __P ((mailbox_t, authority_t *));
79 extern int mailbox_set_authority __P ((mailbox_t, authority_t)); 82 extern int mailbox_set_authority __P ((mailbox_t, authority_t));
80 extern int mailbox_get_ticket __P ((mailbox_t, ticket_t *)); 83 extern int mailbox_get_ticket __P ((mailbox_t, ticket_t *));
81 extern int mailbox_set_ticket __P ((mailbox_t, ticket_t)); 84 extern int mailbox_set_ticket __P ((mailbox_t, ticket_t));
82 85
83 /* URL. */ 86 /* URL. */
84 extern int mailbox_get_url __P ((mailbox_t, url_t *)); 87 extern int mailbox_get_url __P ((mailbox_t, url_t *));
85 88
86 /* For any debuging */ 89 /* For any debuging */
87 extern int mailbox_get_debug __P ((mailbox_t, debug_t *)); 90 extern int mailbox_get_debug __P ((mailbox_t, debug_t *));
88 extern int mailbox_set_debug __P ((mailbox_t, debug_t)); 91 extern int mailbox_set_debug __P ((mailbox_t, debug_t));
89 92
90 /* Events. */ 93 /* Events. */
91 extern int mailbox_get_observable __P ((mailbox_t, observable_t *)); 94 extern int mailbox_get_observable __P ((mailbox_t, observable_t *));
92 95
93 #ifdef __cplusplus 96 #ifdef __cplusplus
94 } 97 }
......
...@@ -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,
......