2008-05-31 Jeffrey Stedfast * README: Bumped version * configure.in: Bumped version to 2.3.1 * gmime/gmime-header.c (g_mime_header_list_invalidate_iters): Only unlink the iter if the headers are being destroyed. * gmime/gmime-gpg-context.c: Updated. * gmime/gmime-cipher-context.c: Added GMimeCipherHash enums for SHA-224, SHA-256, SHA-384 and SHA-512. (g_mime_signer_next): New function to ease binding. (g_mime_signer_set_status): Same. (g_mime_signer_get_status): Same. (g_mime_signer_set_error): Same. (g_mime_signer_get_error): Same. (g_mime_signer_set_trust): Same. (g_mime_signer_get_trust): Same. (g_mime_signer_set_fingerprint): Same. (g_mime_signer_get_fingerprint): Same. (g_mime_signer_set_key_id): Same. (g_mime_signer_get_key_id): Same. (g_mime_signer_set_name): Same. (g_mime_signer_get_name): Same. (g_mime_signer_set_sig_created): Same. (g_mime_signer_get_sig_created): Same. (g_mime_signer_set_sig_expire): Same. (g_mime_signer_get_sig_expire): Same. 2008-05-31 Jeffrey Stedfast * gmime/gmime-object.c (g_mime_object_get_header_list): New function to get at the GMimeObject headers. * gmime/gmime-message-partial.c (message_partial_message_new): Use iters to copy the headers. * gmime/gmime-header.c (g_mime_header_list_foreach): Removed, this API sucked. 2008-05-31 Jeffrey Stedfast * tests/test-headers.c: New set of unit tests for GMimeHeaderIter. * gmime/gmime-header.c (g_mime_header_iter_equal): New method to check if two iters are equal. (g_mime_header_iter_first): New method to update @iter to point to the first header. (g_mime_header_iter_last): New method to update @iter to point to the last header. (g_mime_header_iter_next): Fixed. (g_mime_header_iter_prev): Fixed. (g_mime_header_iter_remove): Invalidate all other iters currently pointing to the same header as @iter. 2008-05-30 Jeffrey Stedfast * gmime/gmime-parser.c: Updated for GMimeHeaderList and GMimeObject changes. * gmime/gmime-message-partial.c: Updated for GMimeHeaderList and GMimeObject changes. * gmime/gmime-multipart-encrypted.c: Updated for GMimeHeaderList and GMimeObject changes. * gmime/gmime-multipart-signed.c: Updated for GMimeHeaderList and GMimeObject changes. * gmime/gmime-multipart.c: Updated for GMimeHeaderList and GMimeObject changes. * gmime/gmime-part.c: Updated for GMimeHeaderList and GMimeObject changes. * gmime/gmime-message.c: Updated for GMimeHeaderList and GMimeObject changes. * gmime/gmime-object.c (g_mime_object_append_header): Renamed from g_mime_object_add_header(). (g_mime_object_prepend_header): New method. (remove_header): Cleanup content-header variables if they get removed. Don't allow removal of the Content-Type header. * gmime/gmime-header.[c,h]: Renamed GMimeHeader to GMimeHeaderList and all of it's methods appropriately. Added a new GMimeHeaderIter class for iterating over a header list. (g_mime_header_list_remove): Return gboolean specifying whether or not a header was removed. (g_mime_header_list_get_iter): New function to get a header iterator. 2008-05-30 Jeffrey Stedfast * util/cache.c: Updated for list.[c,h] changes. * util/list.c (list_append): Renamed from list_append_node(). (list_prepend): Renamed from list_prepend_node(). (list_unlink): Renamed from list_node_unlink(). 2008-05-30 Jeffrey Stedfast * gmime/gmime-message.c (g_mime_message_get_headers): Removed as GMimeObject has an equivalent method. (handle_multipart_alternative): Removed. (handle_multipart_mixed): Removed. (g_mime_message_get_header): Removed, this has equivalent functionality on GMimeObject. (g_mime_message_set_header): Same. (g_mime_message_add_header): Same.