Diffstat (limited to 'kmicromail/libetpan/maildir/maildir.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libetpan/maildir/maildir.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kmicromail/libetpan/maildir/maildir.h b/kmicromail/libetpan/maildir/maildir.h index b782484..268dda1 100644 --- a/kmicromail/libetpan/maildir/maildir.h +++ b/kmicromail/libetpan/maildir/maildir.h | |||
@@ -24,37 +24,44 @@ | |||
24 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 24 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
25 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 25 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
26 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 26 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
27 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 27 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
28 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 28 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
29 | * SUCH DAMAGE. | 29 | * SUCH DAMAGE. |
30 | */ | 30 | */ |
31 | 31 | ||
32 | /* | 32 | /* |
33 | * $Id$ | 33 | * $Id$ |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #ifndef MAILDIR_H | 36 | #ifndef MAILDIR_H |
37 | 37 | ||
38 | #define MAILDIR_H | 38 | #define MAILDIR_H |
39 | 39 | ||
40 | #include <libetpan/maildir_types.h> | 40 | #include <libetpan/maildir_types.h> |
41 | 41 | ||
42 | struct maildir * maildir_new(const char * path); | 42 | struct maildir * maildir_new(const char * path); |
43 | 43 | ||
44 | void maildir_free(struct maildir * md); | 44 | 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); |
54 | 61 | ||
55 | int maildir_message_remove(struct maildir * md, const char * uid); | 62 | int maildir_message_remove(struct maildir * md, const char * uid); |
56 | 63 | ||
57 | int maildir_message_change_flags(struct maildir * md, | 64 | int maildir_message_change_flags(struct maildir * md, |
58 | const char * uid, int new_flags); | 65 | const char * uid, int new_flags); |
59 | 66 | ||
60 | #endif | 67 | #endif |