diff options
author | NotZed <NotZed@HelixCode.com> | 2000-05-05 11:46:07 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-05 11:46:07 +0800 |
commit | 214c9105509631c39c4d9b60572ee32f0d6d7ea3 (patch) | |
tree | 611b14c8989668df11fa2c714ff13675e1406f3f /camel/camel-mime-parser.h | |
parent | 241a35c42fc0e5287b25bc4980415b0e1e61f422 (diff) | |
download | gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar.gz gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar.bz2 gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar.lz gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar.xz gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar.zst gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.zip |
Maxcount is minimum of the max and the requested count, not the maximum :)
2000-05-04 NotZed <NotZed@HelixCode.com>
* providers/mbox/camel-mbox-folder.c (summary_get_message_info):
Maxcount is minimum of the max and the requested count, not the
maximum :)
* camel-mime-parser.c (folder_scan_content): Properly set midline,
so we dont falsely catch offset boundary markers (i.e. From inside
content).
(folder_read): Set a sentinal on the end of the read data (\n) so
we dont have to check the buffer boundary in the inner loop.
(mempool_*): New experimental memory management routines, speed
up simple structure parsing by about 25% ... not compiled in by
default. Something similar may be needed for camel-mime-utils to
address performance issues with g_malloc and friends.
* camel-mime-utils.c: Added a macro w(x) used to wrap all warnings
about mime/rfc violations, so they can be turned off.
* camel-folder-summary.c (summary_build_content_info): Step after
the end of a message ...
Turn into a stand-alone program for testing and profiling.
svn path=/trunk/; revision=2808
Diffstat (limited to 'camel/camel-mime-parser.h')
-rw-r--r-- | camel/camel-mime-parser.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/camel-mime-parser.h b/camel/camel-mime-parser.h index cbc7b6095e..1a84cefa28 100644 --- a/camel/camel-mime-parser.h +++ b/camel/camel-mime-parser.h @@ -86,6 +86,9 @@ int camel_mime_parser_fd(CamelMimeParser *m); /* scan 'From' separators? */ void camel_mime_parser_scan_from(CamelMimeParser *, int); +/* what headers to save, MUST include ^Content-Type: */ +int camel_mime_parser_set_header_regex(CamelMimeParser *m, char *matchstr); + /* normal interface */ enum _header_state camel_mime_parser_step(CamelMimeParser *, char **, int *); void camel_mime_parser_unstep(CamelMimeParser *); |