aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-message.c
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagGNOME_LIBS_1_0_42nobody1999-09-271-696/+0
| | | | | | 'GNOME_LIBS_1_0_42'. svn path=/tags/GNOME_LIBS_1_0_42/; revision=1259
* changed decl to fit CRLFunc. (_write_recipients_to_stream): callsbertrand1999-09-021-6/+8
| | | | | | | | | | | | | | | | | | | 1999-09-02 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-mime-message.c (_write_one_recipient_to_stream): changed decl to fit CRLFunc. (_write_recipients_to_stream): calls camel_recipient_foreach_recipient_type now. * camel/camel-recipient.c (camel_recipient_foreach_recipient_type): new convinience function. Iterate over all recipient types. * camel/gmime-utils.c (gmime_write_header_table_to_stream): s/write_header_table_to_stream/gmime_write_header_table_to_stream/ (gmime_write_header_with_glist_to_stream): s/write_header_with_glist_to_stream/gmime_write_header_with_glist_to_stream/ svn path=/trunk/; revision=1167
* now use CamelRecipientTablebertrand1999-09-011-82/+41
| | | | | | | | | | | | | | | | | 1999-09-01 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-mime-message.c (_finalize): (_add_recipient): (_remove_recipient): (_get_recipients): now use CamelRecipientTable * camel/gmime-content-field.c: (gmime_content_field_unref): test if object to free is non void. Still are some bugs in camel-recipient.c svn path=/trunk/; revision=1152
* When using g_free (obj) don't test if obj != NULL g_free () already dobertrand1999-09-011-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | 1999-09-01 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-folder.c (_finalize): (_set_name): * camel/camel-mime-message.c (_finalize): * camel/camel-mime-part.c (_finalize): (_set_description): (_set_disposition): * camel/camel-service.c (_finalize): * camel/camel-stream-fs.c (_finalize): * camel/gmime-content-field.c: (gmime_content_field_construct_from_string): * camel/url-util.c (g_url_free): When using g_free (obj) don't test if obj != NULL g_free () already do that. Thanks to elerium for the feedback. 19 svn path=/trunk/; revision=1151
* Address updateBertrand Guiheneuf1999-08-301-1/+1
| | | | svn path=/trunk/; revision=1147
* now descend from CamelMedium.bertrand1999-08-261-1/+8
| | | | | | | | | | | 1999-08-25 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-mime-part.c: now descend from CamelMedium. * tests/test1.c (main): all headers must be strdup'ed (main): unref created objects svn path=/trunk/; revision=1143
* Implemented deletion/expunge mechanism.bertrand1999-08-151-54/+54
| | | | | | | | | | | | | | | | | | | | | | | | 1999-08-14 bertrand <Bertrand.Guiheneuf@aful.org> * tests/ui-tests/store_listing.c (delete_selected_messages): (expunge_selected_folders): Implemented deletion/expunge mechanism. * camel/camel-folder.c (_get_message): Added some debug info. * camel/providers/MH/camel-mh-folder.c (_expunge): implemented and tested. * camel/camel-mime-message.c (_set_flag): changed the old braindead implementation. boolean are inserted in the flag hash table casted as gpointers. * camel/camel-mime-message.c: indentation fix svn path=/trunk/; revision=1114
* New field (message_list) which will hold a reference on each messagebertrand1999-08-141-12/+52
| | | | | | | | | | | | | | | | | | | | 1999-08-13 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-folder.h (struct _CamelFolder): New field (message_list) which will hold a reference on each message obtained by the folder, which is necessary in order for the caching procedure to work (Getting the same message from a folder twice will return the same CamelMimeMessage object). * camel/camel-folder.c (camel_folder_get_message): When the store retreives a message put it in its message list. (_finalize): free message list. * ChangeLog: fix typo (parmanent) svn path=/trunk/; revision=1112
* new method, returns the list of permanent flags supported by the folder.bertrand1999-08-131-5/+30
| | | | | | | | | | | | | | | 1999-08-13 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-folder.c (_get_parmanent_flag_list): (camel_folder_get_parmanent_flag_list): new method, returns the list of permanent flags supported by the folder. * camel/camel-mime-message.c (_get_flag_list): (camel_mime_message_get_flag_list): new method, return the list of flag name used by this message. svn path=/trunk/; revision=1111
* those two func go here now.bertrand1999-08-131-13/+15
| | | | | | | | | | | | | | | | | | | | | 1999-08-13 bertrand <Bertrand.Guiheneuf@aful.org> * camel/hash-table-utils.c (g_strcase_equal): (g_strcase_hash): those two func go here now. * camel/hash_table_utils.c (hash_table_generic_free): free a (gpointer, gpointer) hash table pair. * camel/camel-mime-message.c (camel_mime_message_init): use case insensitive hash table functions. (_set_flag): (camel_mime_message_set_flag): (_get_flag): (camel_mime_message_get_flag): Use const for flag name, they are now duplicated. svn path=/trunk/; revision=1110
* Message creation still consumes a lot ofbertrand1999-08-111-1/+2
| | | | | | | | | | | | | | | | | memory (maybe 2000k) and I really don't understand why. As soon as I get gtk working on SunOS, purify should hopefully give me the answer. 1999-08-11 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-service.c (_finalize): * camel/camel-stream-fs.c (_finalize): (_destroy): close file descriptor. * camel/camel-stream-mem.c (_finalize): * camel/camel-store.c (_finalize): * camel/camel-folder.c (_finalize): svn path=/trunk/; revision=1104
* implemented destructors.bertrand1999-08-111-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | 1999-08-11 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-multipart.c (_finalize): * camel/camel-simple-data-wrapper.c (_finalize): * camel/camel-mime-part.c (_finalize): implemented destructors. * camel/gmime-content-field.c (gmime_content_field_ref): (gmime_content_field_unref): New reference mechanism for GMimeContentField objects. * camel/camel-data-wrapper.c (_finalize): Started implementing destructors. * camel/camel-mime-part.c (_construct_from_stream): * camel/gmime-content-field.c (gmime_content_field_write_to_stream): * camel/camel-multipart.c (_construct_from_stream): removed forgotten anarchic traces. Go away memory leaks! svn path=/trunk/; revision=1103
* new method. (camel_folder_get_message): corresponding public callbertrand1999-08-061-2/+2
| | | | | | | | | | | 1999-08-05 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-folder.c (_get_message): new method. (camel_folder_get_message): corresponding public call svn path=/trunk/; revision=1082
* merge a lot of work. Rough ChangeLog will followBertrand Guiheneuf1999-08-011-139/+121
| | | | svn path=/trunk/; revision=1052
* Implemented base64 encoder based on CamelStreams. Should theMiguel de Icaza1999-07-151-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-07-13 Miguel de Icaza <miguel@gnu.org> * camel/gmime-base64.c (gmime_encode_base64): Implemented base64 encoder based on CamelStreams. Should the encoder/decoder be a Stream itself? * camel/gmime-utils.c: include config.h here. * camel/url-util.c: ditto. * camel/gstring-util.c: ditto. * camel/gmime-content-field.c: ditto. * camel/camel-stream.c: ditto. * camel/camel-stream-fs.c: ditto. * camel/camel-store.c: ditto. * camel/camel-simple-data-wrapper.c: ditto. * camel/camel-session.c: ditto. * camel/camel-service.c: ditto. * camel/camel-mime-part.c: ditto. * camel/camel-mime-message.c: ditto. * camel/camel-log.c: ditto. * camel/camel-data-wrapper.c: ditto * camel/camel-folder.c: ditto. * camel/camel-stream.c (camel_stream_write): Moved api documentation to the places that they document. (camel_stream_class_init): Virtual classes do not need to have a default implementation. So null them all. (camel_stream_write): Return value from write. (camel_stream_available): implement. (camel_stream_write_strings): documented. * devel-docs/query/virtual-folder-in-depth.sgml: Small reformatting 1999-06-28 bertrand <Bertrand.Guiheneuf@inria.fr> * tests/test2.c (main): now use CamelDataWrapper::contruct_form_stream to test svn path=/trunk/; revision=1024
* Various patches from Ulrich Drepper <drepper at cygnus.com>bertrand1999-06-251-1/+2
| | | | | | | | | | | | | | | | | | | 1999-06-24 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/camel-mime-message.c (_write_one_recipient_to_stream): includes gmime-utils header. patch from Ulrich Drepper <drepper at cygnus.com> set separator string in write_header_with_glist_to_stream() * camel/camel-log.c (camel_log): patch from Ulrich Drepper <drepper at cygnus.com> Do not use stderr in initialization of logfile descriptor. * camel/camel-stream-fs.c (camel_stream_fs_new_with_name): patch from Ulrich Drepper <drepper at cygnus.com> initialize mode field in open(). svn path=/trunk/; revision=994
* syncBertrand Guiheneuf1999-06-221-1/+1
| | | | svn path=/trunk/; revision=983
* Commit of all Netherlands changes.Bertrand Guiheneuf1999-06-191-18/+23
| | | | | | | | All mime stuff uses streams now, and it still works. Bertrand svn path=/trunk/; revision=981
* remove leading and trailing spaces in recipient addresses.Bertrand Guiheneuf1999-05-301-1/+1
| | | | | | | | | | | | | | | | | * camel/camel-mime-message.c (_set_recipient_list_from_string): remove leading and trailing spaces in recipient addresses. * camel/gmime-utils.c (_store_header_pair_from_gstring): remove leading and trailing spaces from header values. * camel/gstring-util.c (g_string_trim): new func: remove leading or trailng chars from a specified char set. (g_string_split): allow trimming of substrings. * tests/test1.c (main): remove gtk_main call svn path=/trunk/; revision=958
* rewrite message obtained via parsing into a file. Actually, it worksBertrand Guiheneuf1999-05-281-6/+79
| | | | | | | | | | | | | | | | | | | | | | | | * tests/test2.c (main): rewrite message obtained via parsing into a file. Actually, it works pretty well :)) * camel/camel-mime-message.c (_set_recipient_list_from_string): create recipient list form a comma separated string. (_parse_header_pair): added recipient lists parsing. * camel/camel-mime-part.c (_parse_header_pair): new (protected) method. Parse a head pair and decides what to do with it. (_add_header): Call in _parse_header_pair * camel/camel-mime-message.c (_parse_header_pair): overload header parsing MimePart mthod. * camel/gstring-util.c (g_string_split): new func: split a gstring into a GList of substring. svn path=/trunk/; revision=950
* syncBertrand Guiheneuf1999-05-281-0/+46
| | | | svn path=/trunk/; revision=949
* new func. Parses message header zone and returns a Glist of all headerbertrand1999-05-271-21/+3
| | | | | | | | | | | | | | | 1999-05-26 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/gmime-utils.c (get_header_lines_from_file): new func. Parses message header zone and returns a Glist of all header lines. * tests/test2.c: tests message parsing * camel/gmime-utils.c (write_header_table_to_file): new func to write a table of headers. svn path=/trunk/; revision=948
* recipient list printingBertrand Guiheneuf1999-05-211-4/+33
| | | | | | | | | * camel/camel-mime-message.c (_write_to_file): recipient list printing * tests/test1.c (main): more tests. svn path=/trunk/; revision=936
* syncBertrand Guiheneuf1999-05-211-2/+9
| | | | svn path=/trunk/; revision=935
* test if content exists before calling its write_to method.bertrand1999-05-201-16/+18
| | | | | | | | | | | | | 1999-05-19 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/camel-mime-part.c (_write_to_file): test if content exists before calling its write_to method. * camel/camel-mime-message.c (_write_to_file): bugs fix. First test of mime_message framework. svn path=/trunk/; revision=934
* syncBertrand Guiheneuf1999-05-201-0/+11
| | | | svn path=/trunk/; revision=933
* testsBertrand Guiheneuf1999-05-191-1/+28
| | | | | | | | | * tests/test1.c (main): tests * camel/camel-mime-message.c (_write_to_file): started write_to framework for mime_messages svn path=/trunk/; revision=931
* message number funcs.bertrand1999-05-181-1/+1
| | | | | | | | | 1999-05-18 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/camel-mime-message.c (*_message_number): message number funcs. svn path=/trunk/; revision=930
* syncBertrand Guiheneuf1999-05-171-0/+20
| | | | svn path=/trunk/; revision=927
* flags handling methodsbertrand1999-05-151-5/+96
| | | | | | | | | | | | | | 1999-05-15 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/camel-mime-message.c (*_flag): flags handling methods 1999-05-14 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/camel-mime-message.c (camel_mime_message_class_init): added recipient handling class funcs. svn path=/trunk/; revision=926
* added recipient handling class funcs.Bertrand Guiheneuf1999-05-141-0/+7
| | | | | | | * camel/camel-mime-message.c (camel_mime_message_class_init): added recipient handling class funcs. svn path=/trunk/; revision=925
* create recipients hash table (_remove_recipient): (_add_recipient):Bertrand Guiheneuf1999-05-141-1/+89
| | | | | | | | | | | | | | | * camel/camel-mime-message.c (camel_mime_message_init): create recipients hash table (_remove_recipient): (_add_recipient): (_get_recipients): new funcs. Internal Recipients data structure is a bit complicated though. * camel/camel-mime-part.c (camel_mime_part_init): create headers hash table svn path=/trunk/; revision=924
* a bunch of get/set header field method done. Does nothing yet though.Bertrand Guiheneuf1999-05-141-4/+185
| | | | | | | | | | | * camel/camel-mime-message.h: a bunch of get/set header field method done. Does nothing yet though. * camel/camel-mime-message.[ch] : new file. svn path=/trunk/; revision=923
* Mime message ...Bertrand Guiheneuf1999-05-131-0/+78
svn path=/trunk/; revision=922