author | zautrix <zautrix> | 2004-09-01 10:23:29 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-01 10:23:29 (UTC) |
commit | 6cefbdc9c8f3f3001373f10715361e2740c45395 (patch) (unidiff) | |
tree | cb2c36f57620e698913c27ca4ebe59e4a7c9d46e /kmicromail/libetpan/include | |
parent | b9257cb225cd29bab5d96fcdaf557926603ee587 (diff) | |
download | kdepimpi-6cefbdc9c8f3f3001373f10715361e2740c45395.zip kdepimpi-6cefbdc9c8f3f3001373f10715361e2740c45395.tar.gz kdepimpi-6cefbdc9c8f3f3001373f10715361e2740c45395.tar.bz2 |
Mail fixes and libetpan updated
10 files changed, 42 insertions, 2 deletions
diff --git a/kmicromail/libetpan/include/libetpan/libetpan.h b/kmicromail/libetpan/include/libetpan/libetpan.h index 3b4a107..fe5637d 100644 --- a/kmicromail/libetpan/include/libetpan/libetpan.h +++ b/kmicromail/libetpan/include/libetpan/libetpan.h | |||
@@ -44,6 +44,7 @@ extern "C" { | |||
44 | #include <libetpan/libetpan_version.h> | 44 | #include <libetpan/libetpan_version.h> |
45 | #include <libetpan/maildriver.h> | 45 | #include <libetpan/maildriver.h> |
46 | #include <libetpan/mailmessage.h> | 46 | #include <libetpan/mailmessage.h> |
47 | #include <libetpan/mailfolder.h> | ||
47 | #include <libetpan/mailstorage.h> | 48 | #include <libetpan/mailstorage.h> |
48 | #include <libetpan/mailthread.h> | 49 | #include <libetpan/mailthread.h> |
49 | #include <libetpan/mailsmtp.h> | 50 | #include <libetpan/mailsmtp.h> |
@@ -91,12 +92,23 @@ extern "C" { | |||
91 | #include <libetpan/maildirdriver_cached_message.h> | 92 | #include <libetpan/maildirdriver_cached_message.h> |
92 | #include <libetpan/maildirstorage.h> | 93 | #include <libetpan/maildirstorage.h> |
93 | 94 | ||
95 | /* db driver */ | ||
96 | #include <libetpan/dbdriver.h> | ||
97 | #include <libetpan/dbdriver_message.h> | ||
98 | #include <libetpan/dbstorage.h> | ||
99 | |||
94 | /* message which content is given by a MIME structure */ | 100 | /* message which content is given by a MIME structure */ |
95 | #include <libetpan/mime_message_driver.h> | 101 | #include <libetpan/mime_message_driver.h> |
96 | 102 | ||
97 | /* message which content given by a string */ | 103 | /* message which content given by a string */ |
98 | #include <libetpan/data_message_driver.h> | 104 | #include <libetpan/data_message_driver.h> |
99 | 105 | ||
106 | /* engine */ | ||
107 | #include <libetpan/mailprivacy.h> | ||
108 | #include <libetpan/mailengine.h> | ||
109 | #include <libetpan/mailprivacy_gnupg.h> | ||
110 | #include <libetpan/mailprivacy_smime.h> | ||
111 | |||
100 | #ifdef __cplusplus | 112 | #ifdef __cplusplus |
101 | } | 113 | } |
102 | #endif | 114 | #endif |
diff --git a/kmicromail/libetpan/include/libetpan/maildir.h b/kmicromail/libetpan/include/libetpan/maildir.h index b782484..268dda1 100644 --- a/kmicromail/libetpan/include/libetpan/maildir.h +++ b/kmicromail/libetpan/include/libetpan/maildir.h | |||
@@ -45,9 +45,16 @@ void maildir_free(struct maildir * md); | |||
45 | 45 | ||
46 | int maildir_update(struct maildir * md); | 46 | int maildir_update(struct maildir * md); |
47 | 47 | ||
48 | int maildir_message_add_uid(struct maildir * md, | ||
49 | const char * message, size_t size, | ||
50 | char * uid, size_t max_uid_len); | ||
51 | |||
48 | int maildir_message_add(struct maildir * md, | 52 | int maildir_message_add(struct maildir * md, |
49 | const char * message, size_t size); | 53 | const char * message, size_t size); |
50 | 54 | ||
55 | int maildir_message_add_file_uid(struct maildir * md, int fd, | ||
56 | char * uid, size_t max_uid_len); | ||
57 | |||
51 | int maildir_message_add_file(struct maildir * md, int fd); | 58 | int maildir_message_add_file(struct maildir * md, int fd); |
52 | 59 | ||
53 | char * maildir_message_get(struct maildir * md, const char * uid); | 60 | char * maildir_message_get(struct maildir * md, const char * uid); |
diff --git a/kmicromail/libetpan/include/libetpan/maildirstorage.h b/kmicromail/libetpan/include/libetpan/maildirstorage.h index d17ea2c..73d7b20 100644 --- a/kmicromail/libetpan/include/libetpan/maildirstorage.h +++ b/kmicromail/libetpan/include/libetpan/maildirstorage.h | |||
@@ -44,7 +44,7 @@ extern "C" { | |||
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | /* | 46 | /* |
47 | maildir_mailstorage_init is the constructor for a mbox storage. | 47 | maildir_mailstorage_init is the constructor for a maildir storage. |
48 | 48 | ||
49 | @param storage this is the storage to initialize. | 49 | @param storage this is the storage to initialize. |
50 | 50 | ||
diff --git a/kmicromail/libetpan/include/libetpan/maildriver.h b/kmicromail/libetpan/include/libetpan/maildriver.h index 7da9aea..c773190 100644 --- a/kmicromail/libetpan/include/libetpan/maildriver.h +++ b/kmicromail/libetpan/include/libetpan/maildriver.h | |||
@@ -400,6 +400,9 @@ int mailsession_unsubscribe_folder(mailsession * session, char * mb); | |||
400 | int mailsession_append_message(mailsession * session, | 400 | int mailsession_append_message(mailsession * session, |
401 | char * message, size_t size); | 401 | char * message, size_t size); |
402 | 402 | ||
403 | int mailsession_append_message_flags(mailsession * session, | ||
404 | char * message, size_t size, struct mail_flags * flags); | ||
405 | |||
403 | /* | 406 | /* |
404 | NOTE: some drivers does not implement this | 407 | NOTE: some drivers does not implement this |
405 | 408 | ||
diff --git a/kmicromail/libetpan/include/libetpan/maildriver_types.h b/kmicromail/libetpan/include/libetpan/maildriver_types.h index 3ff9440..9eab4d6 100644 --- a/kmicromail/libetpan/include/libetpan/maildriver_types.h +++ b/kmicromail/libetpan/include/libetpan/maildriver_types.h | |||
@@ -507,6 +507,8 @@ struct mailsession_driver { | |||
507 | 507 | ||
508 | int (* sess_append_message)(mailsession * session, | 508 | int (* sess_append_message)(mailsession * session, |
509 | char * message, size_t size); | 509 | char * message, size_t size); |
510 | int (* sess_append_message_flags)(mailsession * session, | ||
511 | char * message, size_t size, struct mail_flags * flags); | ||
510 | int (* sess_copy_message)(mailsession * session, | 512 | int (* sess_copy_message)(mailsession * session, |
511 | uint32_t num, char * mb); | 513 | uint32_t num, char * mb); |
512 | int (* sess_move_message)(mailsession * session, | 514 | int (* sess_move_message)(mailsession * session, |
diff --git a/kmicromail/libetpan/include/libetpan/mailfolder.h b/kmicromail/libetpan/include/libetpan/mailfolder.h index 3ecad23..ff53470 100644 --- a/kmicromail/libetpan/include/libetpan/mailfolder.h +++ b/kmicromail/libetpan/include/libetpan/mailfolder.h | |||
@@ -17,6 +17,9 @@ int mailfolder_status(struct mailfolder * folder, | |||
17 | int mailfolder_append_message(struct mailfolder * folder, | 17 | int mailfolder_append_message(struct mailfolder * folder, |
18 | char * message, size_t size); | 18 | char * message, size_t size); |
19 | 19 | ||
20 | int mailfolder_append_message_flags(struct mailfolder * folder, | ||
21 | char * message, size_t size, struct mail_flags * flags); | ||
22 | |||
20 | int mailfolder_get_messages_list(struct mailfolder * folder, | 23 | int mailfolder_get_messages_list(struct mailfolder * folder, |
21 | struct mailmessage_list ** result); | 24 | struct mailmessage_list ** result); |
22 | 25 | ||
diff --git a/kmicromail/libetpan/include/libetpan/mailmbox.h b/kmicromail/libetpan/include/libetpan/mailmbox.h index 8be086c..0427f1f 100644 --- a/kmicromail/libetpan/include/libetpan/mailmbox.h +++ b/kmicromail/libetpan/include/libetpan/mailmbox.h | |||
@@ -51,6 +51,10 @@ int | |||
51 | mailmbox_append_message(struct mailmbox_folder * folder, | 51 | mailmbox_append_message(struct mailmbox_folder * folder, |
52 | const char * data, size_t len); | 52 | const char * data, size_t len); |
53 | 53 | ||
54 | int | ||
55 | mailmbox_append_message_uid(struct mailmbox_folder * folder, | ||
56 | const char * data, size_t len, unsigned int * puid); | ||
57 | |||
54 | int mailmbox_fetch_msg(struct mailmbox_folder * folder, | 58 | int mailmbox_fetch_msg(struct mailmbox_folder * folder, |
55 | uint32_t num, char ** result, | 59 | uint32_t num, char ** result, |
56 | size_t * result_len); | 60 | size_t * result_len); |
diff --git a/kmicromail/libetpan/include/libetpan/mailmbox_types.h b/kmicromail/libetpan/include/libetpan/mailmbox_types.h index dd6758c..bd6ee30 100644 --- a/kmicromail/libetpan/include/libetpan/mailmbox_types.h +++ b/kmicromail/libetpan/include/libetpan/mailmbox_types.h | |||
@@ -128,6 +128,7 @@ void mailmbox_msg_info_free(struct mailmbox_msg_info * info); | |||
128 | struct mailmbox_append_info { | 128 | struct mailmbox_append_info { |
129 | const char * ai_message; | 129 | const char * ai_message; |
130 | size_t ai_size; | 130 | size_t ai_size; |
131 | unsigned int ai_uid; | ||
131 | }; | 132 | }; |
132 | 133 | ||
133 | struct mailmbox_append_info * | 134 | struct mailmbox_append_info * |
diff --git a/kmicromail/libetpan/include/libetpan/mailmh.h b/kmicromail/libetpan/include/libetpan/mailmh.h index 40432cb..00199b8 100644 --- a/kmicromail/libetpan/include/libetpan/mailmh.h +++ b/kmicromail/libetpan/include/libetpan/mailmh.h | |||
@@ -119,9 +119,16 @@ int mailmh_folder_get_message_fd(struct mailmh_folder * folder, | |||
119 | int mailmh_folder_get_message_size(struct mailmh_folder * folder, | 119 | int mailmh_folder_get_message_size(struct mailmh_folder * folder, |
120 | uint32_t index, size_t * result); | 120 | uint32_t index, size_t * result); |
121 | 121 | ||
122 | int mailmh_folder_add_message_uid(struct mailmh_folder * folder, | ||
123 | const char * message, size_t size, | ||
124 | uint32_t * pindex); | ||
125 | |||
122 | int mailmh_folder_add_message(struct mailmh_folder * folder, | 126 | int mailmh_folder_add_message(struct mailmh_folder * folder, |
123 | const char * message, size_t size); | 127 | const char * message, size_t size); |
124 | 128 | ||
129 | int mailmh_folder_add_message_file_uid(struct mailmh_folder * folder, | ||
130 | int fd, uint32_t * pindex); | ||
131 | |||
125 | int mailmh_folder_add_message_file(struct mailmh_folder * folder, | 132 | int mailmh_folder_add_message_file(struct mailmh_folder * folder, |
126 | int fd); | 133 | int fd); |
127 | 134 | ||
diff --git a/kmicromail/libetpan/include/libetpan/mailstorage.h b/kmicromail/libetpan/include/libetpan/mailstorage.h index d56aef1..4c57883 100644 --- a/kmicromail/libetpan/include/libetpan/mailstorage.h +++ b/kmicromail/libetpan/include/libetpan/mailstorage.h | |||
@@ -71,6 +71,8 @@ int mailstorage_connect(struct mailstorage * storage); | |||
71 | 71 | ||
72 | void mailstorage_disconnect(struct mailstorage * storage); | 72 | void mailstorage_disconnect(struct mailstorage * storage); |
73 | 73 | ||
74 | int mailstorage_noop(struct mailstorage * storage); | ||
75 | |||
74 | 76 | ||
75 | /* folder */ | 77 | /* folder */ |
76 | 78 | ||
@@ -88,7 +90,6 @@ int mailfolder_connect(struct mailfolder * folder); | |||
88 | 90 | ||
89 | void mailfolder_disconnect(struct mailfolder * folder); | 91 | void mailfolder_disconnect(struct mailfolder * folder); |
90 | 92 | ||
91 | |||
92 | #ifdef __cplusplus | 93 | #ifdef __cplusplus |
93 | } | 94 | } |
94 | #endif | 95 | #endif |