2003-03-21 Jeffrey Stedfast <fejj@ximian.com>
Camel part of the fix for Lewing's bug #39204. Second half of the
patch should also fix it so that text/plain parts that are
detected as being text/html are rendered as html (not that I agree
with this mind you, but corporate customers want this "feature").
* camel-mime-part-utils.c
(simple_data_wrapper_construct_from_parser): If the part is
text/html and doesn't have a charset and we are able to find a
charset in the meta tags of the html content, set the charset
param on the content-type.
(camel_mime_part_construct_content_from_parser): After setting the
content object on the mime part, re-set the content-type of the
content object back to the one from the parser (as it may contain
changes from the original - see changes made to the ct in
simple_data_wrapper_construct_from_parser for details).
svn path=/trunk/; revision=20463
2003-03-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_format_data_wrapper_write_to_stream):
Default to the charset provied in the MimePart's Content-Type over
that of the user's mailer charset. Fixes bug #39204.
svn path=/trunk/; revision=20462
2003-03-21 JP Rosevear <jpr@ximian.com>
Fixes#32248
* conduits/todo/todo-conduit.c (comp_from_remote_record): make
sure the due date is actually a date
svn path=/trunk/; revision=20459
2003-03-21 JP Rosevear <jpr@ximian.com>
Fixes#31660
* conduits/calendar/calendar-conduit.c (rrules_mostly_equal):
check if the rrules are equal other than until/count
(find_last_cb): update the data with the start timet
(local_record_from_comp): handle the case where the recurrence
rule ends after a certain number occurrences
(comp_from_remote_record): same
svn path=/trunk/; revision=20458
2003-03-21 Jeffrey Stedfast <fejj@ximian.com>
* camel-tcp-stream-ssl.c (camel_certdb_nss_cert_get): continue
reading the cert file until we've read it all or get a non-EINTR
errno.
svn path=/trunk/; revision=20457
* e-corba-storage.c (async_open_folder_idle): If we get a second
request to open a folder we're already waiting for, don't send a
second CORBA request, just remember the additional request.
(async_open_cb): Call the callbacks for all pending requests for
this folder.
svn path=/trunk/; revision=20456
2003-03-19 Sanshao Jiang <alex.jiang@sun.com>
* gal-view-collection.c (gal_view_collection_append_with_title):
(gal_view_collection_set_nth_view): Use glib macro G_GNUC_FUNCTION
instead of __FUNCTION__. Thank u, Ettore.
* gal-view-instance.c (gal_view_instance_set_current_view_id): same
(add_popup_radio_item): Fix to be compilable on other compilers,
using gcc extension independent codes.(bug#39176)
(add_popup_menu_item): same
svn path=/trunk/; revision=20455
2003-03-21 Larry Ewing <lewing@ximian.com>
* mail-display.c (pixbuf_gen_idle): remember to disconnect the
destroy handler if whenever the loader is shut down.
svn path=/trunk/; revision=20449
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* e-trie.c (e_trie_search): If the gunichar is 0xfffe, just skip
processing it. Maybe this will fix bug #39900.
(trie_utf8_getc): Removed unused labels to shutup the compiler.
svn path=/trunk/; revision=20448
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (owner_set_cb): Change the message_destroy
callback to just gtk_widget_destroy. No need to have a callback
simply to call this function.
(warning_response): Removed (see above).
svn path=/trunk/; revision=20447
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (sig_add_script_response): Don't forget to
add the signature to the signature list if it is a valid script.
svn path=/trunk/; revision=20444
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_signature_unregister_client): Make
sure we can find the registered handler before trying to remove it
from the list.
svn path=/trunk/; revision=20443
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* camel-sasl.c: Plug in GSSAPI support.
* camel-sasl-gssapi.[c,h]: Various fixes to make it compile (fixed
type-o's mostly).
svn path=/trunk/; revision=20438
2003-03-20 JP Rosevear <jpr@ximian.com>
* conduits/calendar/calendar-conduit.c
(e_calendar_context_destroy): calcomponents are gobjects now
(calconduit_load_configuration): ref and sink to avoid warnings
* conduits/todo/todo-conduit.c (todoconduit_load_configuration):
ref and sink to avoid warnings
(e_todo_context_destroy): calcomponents are gobjects now
svn path=/trunk/; revision=20437
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* e-trie.c (e_trie_search): If the gunichar is 0xfffe, just skip
processing it. Maybe this will fix bug #39900.
svn path=/trunk/; revision=20436
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (do_user_message): Make the 5th argument to
gtk_message_dialog_new() "%s" and move the m->prompt to arg 6 so
that we are safe if the prompt string contains any %'s. Also
connect to the response signal for the user_msg dialog and set the
callback to gtk_widget_destroy so that the user can actually close
the dialog. We also need to g_object_weak_ref() the dialog so that
we can set the global message_dialog pointer back to NULL when it
gets destroyed. Fixes bug #40043.
svn path=/trunk/; revision=20435
2003-03-20 Rodrigo Moya <rodrigo@ximian.com>
* gui/dialogs/cancel-comp.c (cancel_component_dialog): use a
GtkMessageDialog and deal correctly with the dialog's reponses.
svn path=/trunk/; revision=20434
* filter-datespec.c (timespans, set_button): Change the strings in
the timespans array from "second" / "seconds" to "1 second ago" /
"%d seconds ago", etc, and update the code in set_button that uses
them. Fixes#36245, translation clash between the "second" here
and the one in the calendar (where it's used as "2nd").
svn path=/trunk/; revision=20432
* mail-ops.c (build_from): Remove this since there's a function in
CamelMimeMessage to do it now.
(save_messages_save): Use camel_mime_message_build_mbox_from.
svn path=/trunk/; revision=20431
raw 8-bit Subject data.)
* camel-mime-utils.c (header_decode_mailbox): Take a charset arg
and pass it to header_decode_string.
(header_decode_address): Take a charset arg and pass it to
header_decode_mailbox.
(header_mailbox_decode): Likewise.
(header_address_decode): Take a charset arg and pass it to
header_decode_address.
* camel-folder-summary.c (summary_format_address): Take a charset
arg and pass to header_address_decode.
(message_info_new, camel_message_info_new_from_header): Pass
charset to summary_format_address
* camel-internet-address.c (internet_decode): Update for
header_address_decode change. (Unfortunately we don't have a
charset to pass here.)
* camel-mime-message.c (camel_mime_message_build_mbox_from): Move
this here from camel-mbox-summary since the same functionality is
needed by evolution-mail too (and update for header_address_decode
change)
* providers/local/camel-mbox-summary.c
(camel_mbox_summary_build_from): Moved to CamelMimeMessage
svn path=/trunk/; revision=20430
2003-03-20 Rodrigo Moya <rodrigo@ximian.com>
Fixes#39770
* gui/itip-utils.c (itip_Send_comp): check the CORBA exception instead
of the g_return_val_if_fail. Also, use a CORBA_Object for the value
returned from bonobo_activation_activate_from_id.
svn path=/trunk/; revision=20382
2003-03-21 Not Zed <NotZed@Ximian.com>
** for mail part of bug #38461.
* importers/evolution-outlook-importer.c (load_file_fn): dont pass
in create flag to uri_to_folder, the folder must already exist.
* importers/evolution-mbox-importer.c (folder_created_cb):
Removed, we now force the caller to create the destination folder
first.
(load_file_fn): Dont try and create a folder if it doesn't exist.
Also, use the uri directly as the destination uri, so we can
import into any folder.
(process_item_fn): If we dont have a folder, thats just an error,
return BAD_FILE.
* importers/netscape-importer.c (netscape_import_file): As below
for elm_import_file.
(import_next): similarly as for pine import_next.
(importer_cb): just record result.
(importer_timeout_fn): removed.
* importers/pine-importer.c (import_next): Similar to below for
the elm import_next.
(pine_import_file): As below for elm_import_file.
(importer_timeout_fn): removed.
(importer_cb): just record the result, and exit.
(import_next): change around to behave more like the elm importer,
cleaning up when we're done.
* importers/elm-importer.c (elm_import_file): Create the
destination folder ourselves, dont pass it onto the mbox importer.
Simplify logic, just do the import within a while loop, polling
the g main loop as necessary, remove need for idle callbacks and
other crap.
(import_next): If elm_import_file fails, then just go straight to
the next folder, stops it falling in a heap.
(import_item_idle): removed.
(importer_cb): just record result/exit.
* mail-importer.c (mail_importer_create_folder): removed.
(mail_importer_make_local_folder): new function to create a
local-only folder from a path. It runs synchronously by using a
recursive main loop.
(folder_created_cb): callback for make_local_folder.
svn path=/trunk/; revision=20379
2003-03-19 Jeffrey Stedfast <fejj@ximian.com>
* e-filter-bar.c: Updated to use GtkDialog instead of
GnomeDialog. Also fixed bug #39550 while I was at it.
svn path=/trunk/; revision=20375