2002-10-24 Chris Toshok <toshok@ximian.com>
[ fixes#29144 ]
* gui/component/addressbook-config.c (edit_dialog_store_change):
use e_table_memory_storage_change instead of remove/insert, so the
selection is maintained.
svn path=/trunk/; revision=18435
2002-10-24 Chris Toshok <toshok@ximian.com>
* e-table-memory-store.h: add prototypes for the _change*
functions.
* e-table-memory-store.c (e_table_memory_store_change_array): new
function, mostly c&p from _insert_array.
(e_table_memory_store_change): new function, mostly c&p from
_insert.
(e_table_memory_store_change_adopt_array): new function, mostly
c&p from _insert_adopt_array.
(e_table_memory_store_change_adopt): new function, mostly c&p from
_insert_adopt.
svn path=/trunk/; revision=18432
2002-10-25 Not Zed <NotZed@Ximian.com>
* mail-config.c (mail_config_uri_renamed): Always strdup the new
key in the threaded/preview hash/always free the working copy.
For #32799.
svn path=/trunk/; revision=18431
2002-10-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (write_data_to_file): Use the mode 0666 when
creating a new file and let the user's umask handle permissions.
* folder-browser.c (message_list_drag_data_get): When using open()
with the O_CREAT flag, we need to pass a mode argument. Also use
O_EXCL.
svn path=/trunk/; revision=18430
2002-10-24 Rodrigo Moya <rodrigo@ximian.com>
Fixes#32764
* e-config-listener.c (add_key): store the value returned by
bonobo_event_source_client_add_listener, so that we can remove it
later, when freeing the key structure.
(free_key_hash): remove listener.
(e_config_listener_set_boolean):
(e_config_listener_set_float):
(e_config_listener_set_long):
(e_config_listener_set_string): only set the cache values if there's
no exception.
(e_config_listener_destroy): remove all keys before unrefing the db
component.
svn path=/trunk/; revision=18429
* ename/e-name-western.c: Cast chars to unsigned char before
passing to ctype macros since they are not defined on negative
numbers. Fixes parsing problems with names with accented
characters on Solaris. (At least part of #32146)
svn path=/trunk/; revision=18427
2002-10-24 Not Zed <NotZed@Ximian.com>
* subscribe-dialog.c (fe_got_children): Use a hashtable to only
insert nodes we dont have already, rather than relying on the
scanning logic. Also, only re-sort this tree level once done
rather than on each insert.
(folder_etree_init): Setup hash to track nodes setup.
(folder_etree_clear_tree): Reset hash.
(fe_destroy): Free hash.
svn path=/trunk/; revision=18426
2002-10-24 JP Rosevear <jpr@ximian.com>
* gui/e-itip-control.c (init): initialize new values
(clean_up): free new values
(find_my_address): if we have a delegator address, use it instead
(write_html): display delegator info to user
(show_current_event): if we have a calendar uri, use that and
describe the event differently
(show_current_todo): ditto
(show_current): search for delegator X properties
(e_itip_control_set_delegator_address): accessor
(e_itip_control_get_delegator_address): ditto
(e_itip_control_set_delegator_name): ditto
(e_itip_control_get_delegator_name): ditto
(e_itip_control_set_calendar_uri): ditto
(e_itip_control_get_calendar_uri): ditto
* gui/e-itip-control.h: add protos
* gui/itip-utils.c (comp_from): use the first attendee as the from
address for things other than request, cancel and add (use
organizer) and publish (use default address)
svn path=/trunk/; revision=18425
2002-10-24 Not Zed <NotZed@Ximian.com>
** For bug #31647 and bug #31456.
* camel-store-summary.c (store_info_string): for STORE_INFO_NAME,
skip the leading /.
* providers/imap/camel-imap-store.c
(parse_list_response_as_folder_info): Remove jeff's last patch,
and use the store summary to create the name and path of the
folderinfo so it manages namespace issues.
(get_folder_info_online): Just pass @top directly to
build_folder_info always, since namespace is mapped to 1 tree
level.
(imap_build_folder_info): Remove jeff's last patch, dont strip
leading /'s, they shouldn't exist.
(imap_connect_online): Remove adding the INBOX here, we add it
later.
(get_subscribed_folders): Make sure INBOX is always in the list.
some imap servers dont seem to let you subscribe to it(?), so
always have it act as subscribed.
* camel-store.c (camel_folder_info_build): back out the last 2
patches from Jeff (for #31456) to get the original behaviour.
(camel_folder_info_build): When creating a fake
parent, dont strip the namespace from the full_name. malloc keys
in hash since we dont have them anymore.
(free_name): Helper to free names.
* providers/imap/camel-imap-store-summary.c
(camel_imap_store_summary_namespace_new): Canonicalise the
namespace (strip trailing dir_sep), and change the path to remove
any /'s.
(camel_imap_store_summary_namespace_find_path):
(camel_imap_store_summary_namespace_find_full): new, find
namespace by path/full name.
(camel_imap_store_summary_full_from_path): Changed to a simple
wrapper around path_to_full, after checking namespace.
(camel_imap_store_summary_add_from_full): map the namespace if
present.
(camel_imap_store_summary_path_to_full): If namespace exists,
unmap it.
svn path=/trunk/; revision=18424
2002-10-23 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_query_changed): Only perform
the search if it is either a clear or advanced search.
svn path=/trunk/; revision=18422
2002-10-23 Jeffrey Stedfast <fejj@ximian.com>
* e-filter-bar.c (option_changed): If the clear button was
pressed, we want the entry to be sensitive (not insensitive).
* e-search-bar.c (e_search_bar_set_item_id): If the item id is
CLEAR_ID, we want to select the first item (0) but still set the
esb->item_id to CLEAR_ID.
(set_find_now_sensitive): Don't bother getting the GtkEntry text,
we don't even use it?
(clear_search): Set the item id as E_SEARCHBAR_CLEAR_ID rather
than 0 so that it can be checked for.
svn path=/trunk/; revision=18421
2002-10-22 Mike Kestner <mkestner@ximian.com>
* mail-callbacks.c (transfer_msg): pass fb->uri to the folder
selection dialog so the current folder is selected on display.
"fixes" 15966.
svn path=/trunk/; revision=18420
* e-shell.c (setup_local_storage): Set the is_stock flag to TRUE
for the summary folder.
* e-shell-view.c (setup_verb_sensitivity_for_folder): Don't allow
folder operations on pseudo-folders that have a NULL physical_uri.
* e-corba-storage.c (async_remove_folder): Make sure the folder
has a physical URI. [#30950]
* e-shell-shared-folder-picker-dialog.c
(setup_server_option_menu): Use
e_utf8_gtk_menu_item_new_with_label() to create the option menu
items from the storage's UTF-8 name. [#31564]
svn path=/trunk/; revision=18419
* e-summary-preferences.c: Replace Gnotices with Footnotes.
* e-summary-tasks.c: New member config_listener in ESummaryTasks.
(e_summary_tasks_free): Unref the config_listener.
(config_listener_key_changed_cb): New, callback for the
config_listener.
(setup_task_folder): New helper function to set up access to the
task folder.
(setup_config_listener): New.
(e_summary_tasks_init): Use setup_config_listener() and
setup_task_folder().
* e-summary-calendar: New member config_listener in
ESummaryCalendar.
(setup_config_listener): New.
(config_listener_key_changed_cb): New callback for the
config_listener.
(setup_calendar): New.
(e_summary_calendar_init): Use setup_config_listener() and
setup_calendar().
svn path=/trunk/; revision=18417
* gui/component/select-names/e-select-names.c
(folder_selected): Set /Addressbook/select_names_uri in the
configdb to the selected folder.
(e_select_names_init): Look for /Addressbook/select_names_uri
before /DefaultFolders/contacts_uri for the initial folder. So the
select names dialog now starts up using the same folder you used
last time, which is useful when you have an LDAP company directory
(which can't be your default contacts folder because it's
read-only).
svn path=/trunk/; revision=18416
2002-10-23 Rodrigo Moya <rodrigo@ximian.com>
Fixes#32613
* gui/component-factory.c (sc_user_create_new_item_cb): use the
default calendar/tasks folder to activate the component editor.
(get_data_uri): deal correctly with the URIs being used.
svn path=/trunk/; revision=18415
2002-10-22 Rodrigo Moya <rodrigo@ximian.com>
Fixes#32371
* pcs/query.c (start_cached_query_cb): CORBA_exception_init the
CORBA_Environment before using it.
svn path=/trunk/; revision=18413
2002-10-18 Jeffrey Stedfast <fejj@ximian.com>
* camel-filter-driver.c (camel_filter_driver_filter_folder):
Canonicalise the source_uri to not have a path. Fixes bug #32268.
2002-10-17 Jeffrey Stedfast <fejj@ximian.com>
Possible fix for bug #32270
* providers/pop3/camel-pop3-store.c (try_sasl): If we get an I/O
error, we should not be setting the CANT_AUTH exception but should
instead be setting the SYSTEM exception. Also check for EINTR
which signifies a USER_CANCEL exception.
(pop3_try_authenticate): If the auth mechanism isn't supported,
don't set the CANT_AUTH exception since then we will loop and try
again with the same data which will just cause an infinite loop.
(pop3_connect): Simplified a bit.
svn path=/trunk/; revision=18412
2002-10-22 JP Rosevear <jpr@ximian.com>
* gui/itip-utils.c (get_address): use e_config_listener_* to get
values
(itip_addresses_get): ditto
(itip_addresses_get_default): ditto
* gui/calendar-model.c (calendar_model_value_to_string): don't
send back a null string (affects if it is the group header)
(calendar_model_init): pre load config database info so we don't
do corba calls during draws
svn path=/trunk/; revision=18410
2002-10-18 JP Rosevear <jpr@ximian.com>
* e-table-item.c (eti_cursor_activated): don't emit a signal if we
couldn't find the view row
svn path=/trunk/; revision=18405
2002-10-20 Chris Toshok <toshok@ximian.com>
[ fixes#29067 ]
* backend/pas/pas-backend-file.c (pas_backend_file_search): we
need to create a card_sexp even when doing summary queries since
it's used to check modifications of cards in the view.
svn path=/trunk/; revision=18404
2002-10-20 Chris Toshok <toshok@ximian.com>
[ fixes#32144 ]
* gui/contact-editor/e-contact-save-as.c (e_contact_save_as):
convert the name to the gtk locale before saving.
(e_contact_list_save_as): same.
svn path=/trunk/; revision=18403
2002-10-18 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-hdrs.c (create_from_optionmenu): Only add the
account address to the list of addresses if it is non-NULL. Fixes
bug #32446 although it shouldn't ever happen anyway (an account
address is not allowed to be NULL).
svn path=/trunk/; revision=18401
2002-10-20 Chris Toshok <toshok@ximian.com>
[ Fixes evolution bug #26355 ]
* gal/util/e-util.c (g_str_compare): use g_utf8_collate here
instead of strcmp.
* gal/e-text/Makefile.am (e_completion_test_LDADD): reorder so
that util comes before unicode.
svn path=/trunk/; revision=18400
* upgrade-mailer.c (mailer_upgrade): Fix the transport URL on any
Exchange accounts. Fixes#30209, which is to say that it fixes
#28490 correctly.
svn path=/trunk/; revision=18399
->weathers member before freeing the list items. Otherwise
soup_message_cancel() might invoke the refresh function while we
are freeing things on the list, and crash. [#31639]
svn path=/trunk/; revision=18398
2002-10-19 Chris Toshok <toshok@ximian.com>
[ probable fix for #25477, and memory leak fix ]
* gui/contact-editor/e-contact-editor.c (supported_fields_cb): if
the dialog isn't in the list of all dialogs it's been destroyed so
just return here.
* backend/ebook/e-book.c
(e_book_do_response_get_supported_fields): plug leak of
resp->fields.
svn path=/trunk/; revision=18396
2002-10-03 Not Zed <NotZed@Ximian.com>
* camel-folder.c
(filter_filter): Do the filtering ourselves. This is so a problem
like a missing uid (which can happen legitemitely) doesn't
prematurely abort filtering. Stop on all other errors. See
#31667.
svn path=/trunk/; revision=18392
2002-10-17 JP Rosevear <jpr@ximian.com>
* gui/dialogs/recurrence-page.c (fill_ending_date): if the value
is a datetime, convert it to a date
* gui/itip-utils.c (comp_compliant): convert an UNTIL date value
to a datetime value
* cal-util/cal-component.c (cal_component_has_simple_recurrence):
check to see if the component recurrences meet our definition of
"simple"
* cal-util/cal-component.h: new proto
svn path=/trunk/; revision=18389
2002-10-17 Benjamin Kahn <xkahn@ximian.com>
* mail-format.c (mail_lookup_handler): If the attachment is type
application/octet-stream, sniff the file type even if the user
has a handler for that type.
svn path=/trunk/; revision=18388
2002-10-17 Rodrigo Moya <rodrigo@ximian.com>
* gui/dialogs/recurrence-page.c (fill_component): changed to have a
gboolean return type, which is what it's supposed to do.
(recurrence_page_fill_component): return the result from
fill_component.
* gui/dialogs/comp-editor-page.h: fixed typo in function prototype.
svn path=/trunk/; revision=18387
* e-corba-storage.c (cancel_discover_shared_folder): New,
implementation for the cancel_discover_shared_folder virtual
method.
(class_init): Install.
* evolution-test-component.c
(storage_discover_shared_folder_callback): Instead of passing the
listener to the timeout function, just pass the storage. Put the
listener and the timeout ID on the storage object by using
gtk_object_set_data().
(shared_folder_discovery_timeout_callback): Updated accordingly.
(storage_cancel_discover_shared_folder_callback): New, callback
for the cancel_discover_shared_folder signal.
(setup_custom_storage): Connect.
* e-shell-shared-folder-picker-dialog.c: New member storage in
struct DiscoveryData. While I am at it, rename member user to
user_email_address.
(discover_folder): Set the storage member.
(cleanup_discovery): Unref storage member.
(progress_dialog_clicked_callback): New, callback for the
"clicked" signal on the dialog.
(discover_folder): Connect.
* evolution-storage.c (class_init): Install signal
"cancel_discover_shared_folder".
(impl_Storage_cancelDiscoverSharedFolder): New, implementation for
the cancelDiscoverSharedFolder CORBA method; emit
"cancel_discover_shared_folder".
(evolution_storage_get_epv): Install CORBA method implementation.
* evolution-storage.h: Add signal cancel_discover_shared_folder.
* e-storage.c (e_storage_cancel_discover_shared_folder): New.
* e-storage.h: New virtual method cancel_discover_shared_folder.
* Evolution-Storage.idl (cancelDiscoverSharedFolder): New.
svn path=/trunk/; revision=18386
2002-10-15 Not Zed <NotZed@Ximian.com>
* camel-tcp-stream-ssl.c (cert_fingerprint): helper, build
fingerprint.
(camel_certdb_nss_cert_get): Helper for nss certs. Lookup cert.
As well as fingerprint, the whole raw cert is checked for
validity.
(camel_certdb_nss_cert_add): Add an nss cert to a certdb, also
saves the cert by fingerprint in ~/.camel_certs/.
(ssl_bad_cert): Changed to use above functions to simplify logic.
(ssl_bad_cert): Also added non-compiled code which mimics what
mozilla does, but it doesn't work right :-/
(camel_certdb_nss_cert_set): Save the raw cert associated with a
cert.
* camel-certdb.c (certdb_cert_free): Free the raw cert data if
set.
2002-10-14 Not Zed <NotZed@Ximian.com>
* camel-file-utils.c (camel_file_util_encode_string): Encode a
length of 0 as 1, not 0, to match the decode code.
svn path=/trunk/; revision=18385
2002-10-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_signed): Don't need to pass a
path to camel_gpg_context_new () anymore.
(mail_get_message_body): Same here.
(handle_multipart_encrypted): Use camel_gpg_context_new () instead
of mail_crypto_get_pgp_cipher_context ().
* mail-preferences.c (mail_preferences_construct): There's no
security tab anymore.
(mail_preferences_apply): No need to save any pgp config data,
there's nothing to configure!
* mail-crypto.c (mail_crypto_get_pgp_cipher_context): Updated to
not pass a pgp path into camel_gpg_context_new ().
* mail-config.c (mail_config_clear): No need to free a pgp_path
variable anymore, we don't need one.
(config_read): Don't read in a pgp-path or pgp-type anymore.
(mail_config_write_on_exit): Don't save a pgp-path or pgp-type
anymore, we don't use them.
(pgpopen): Removed.
(pgpclose): Removed.
(mail_config_pgp_type_detect_from_path): Removed.
(auto_detect_pgp_variables): Removed.
(mail_config_get_pgp_type): Removed.
(mail_config_set_pgp_type): Removed.
(mail_config_get_pgp_path): Removed.
(mail_config_set_pgp_path): Removed.
svn path=/trunk/; revision=18384
2002-10-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-gpg-context.c (camel_gpg_context_new): No longer takes a
path argument.
(camel_gpg_context_fianlise): No need to free ctx->path.
(gpg_ctx_new): No longer takes a path argument either.
(gpg_ctx_free): No need to free ctx->path, it's no longer used.
(gpg_ctx_op_start): Don't stat the path anymore and change the
first arg to execvp to "gpg" so that we use the shell's
environment to find gpg.
(gpg_sign): Updated.
(gpg_verify): Updated.
(gpg_encrypt): Updated.
(gpg_decrypt): Updated.
(gpg_ctx_get_argv): Removed some debug printfs.
svn path=/trunk/; revision=18383