diff src/lib-mail/message-tokenize.h @ 988:8028c4dcf38f HEAD

mail-storage.h interface changes, affects pretty much everything. FETCH, SEARCH, SORT and THREAD handling were pretty much moved from lib-storage/ to imap/ so adding non-index storages would be much easier now. Also POP3 server can now be easily implemented with lib-storage. Not too well tested, and at least one major problem: partial fetching is _slow_.
author Timo Sirainen <tss@iki.fi>
date Mon, 20 Jan 2003 16:52:51 +0200
parents 411006be3c66
children 60646878858e
line wrap: on
line diff
--- a/src/lib-mail/message-tokenize.h	Mon Jan 20 15:56:55 2003 +0200
+++ b/src/lib-mail/message-tokenize.h	Mon Jan 20 16:52:51 2003 +0200
@@ -34,9 +34,9 @@
 						 char missing_char,
 						 void *context);
 
-/* Tokenize the string. Returns NULL if string is empty. Memory for
-   returned array is allocated from data stack. You don't have to use
-   the tokens_count, since last token is always 0. */
+/* Initialize message tokenizer. data is parsed until \0 is found, or size
+   bytes has been parsed, so it's possible to give (size_t)-1 as size
+   if the string is \0 terminated. */
 struct message_tokenizer *
 message_tokenize_init(const unsigned char *data, size_t size,
 		      message_tokenize_error_callback_t error_cb,