2002-08-01 Chris Toshok <toshok@ximian.com>
[ fixes bug #25958 ]
* gui/component/addressbook.c (alphabet_state_changed): use
FULL_NAME in the case where we're untoggling a letter, and... well
use FULL_NAME in the other case too - we should never pop up the
advanced dialog.
svn path=/trunk/; revision=17683
2002-08-01 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names.h (struct
_ESelectNames): no more search_entry.
* gui/component/select-names/e-select-names.c (update_query): no
more search_entry, search_entry => select_entry, and add file_as
to the query since some entries don't have names (like the Ximian,
Inc. default card.)
(e_select_names_init): no more search_entry, and add an "activate"
handler on select_entry that updates the query.
svn path=/trunk/; revision=17682
2002-08-01 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names.h (struct
_ESelectNames): remove folders and folders_by_uri, and the 2
listeners.
* gui/component/select-names/e-select-names.c
(e_select_names_destroy): remove the hash_table_destroys of
folders and folders_by_uri, since they no longer exist. same for
other_contacts_listener and local_listener.
svn path=/trunk/; revision=17681
2002-08-01 Chris Toshok <toshok@ximian.com>
* wombat.c (last_calendar_gone_cb): remove the annoying fprintf
about Queueing termination, since we never actually terminate.
svn path=/trunk/; revision=17680
2002-08-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): If we are editing an
account, then get the CamelStore associated with the old account
info and save it in a struct that we will pass along as user_data
to mail_get_store() for the new account url.
(add_new_store): If the old account and new account stores are
identical, then don't remove the old store from the folder
tree. If they are not the same, then remove the old store and add
the new store to the folder tree.
svn path=/trunk/; revision=17674
* README: Update Soup information and remove hard spaces.
* configure.in: Check for Soup 0.7 or later. [Hm, we should make
sure that it's actually a 0.7.x version.]
svn path=/trunk/; revision=17673
2002-08-01 Jeffrey Stedfast <fejj@ximian.com>
* camel-folder-summary.c (message_info_load): Do more error
checking to prevent crashing if we fail to read a string for
example.
svn path=/trunk/; revision=17672
2002-08-01 JP Rosevear <jpr@ximian.com>
* gui/calendar-model.c (is_overdue): use get_due_status
(get_color): ditto
(get_due_status): utility function to reduce replicated code,
handle the case where the due date is just a date
svn path=/trunk/; revision=17671
2002-08-01 Peter Williams <peterw@ximian.com>
* filter-datespec.c (activate_specified): If the value was unset,
initialize it to now.
svn path=/trunk/; revision=17670
2002-07-29 Peter Williams <peterw@ximian.com>
Fix bug #28238
* providers/imap/camel-imap-store.c (imap_forget_folder): New
function, breaking out the code in delete_folder() to handle when
a folder is removed.
(imap_folder_effectively_unsubscribed): New function, breaking out
the code in unsubscribe_folder() to handle when a folder is
unsubscribed.
(imap_check_folder_still_extant): New function, check whether a
folder exists by LIST'ing it.
(imap_store_refresh_folders): Add code here to check if the folder
still exists if we're unable to refresh its info. If so, pretend
that it was unsubscribed (to get the mailer to remove it from
the tree) and delete its cache. If somehow this goofs up, the
worst that can happen is that we must redownload the headers.
(get_folder_status): If we can't get the status, behave as above.
(delete_folder): Call imap_forget_folder() where the bulk of this
code has gone.
(unsubscribe_folder): Call imap_folder_effectively_unsubscribed()
where the bulk of this code has gone.
mail:
2002-07-31 Peter Williams <peterw@ximian.com>
* mail-folder-cache.c: Add another bitfield "unsub"
(real_flush_updates): If unsubscribing, manually remove the folder
from the shell.
(unset_folder_info): Add another parameter which is used to set
the unsub member.
(store_folder_unsubscribed): Pass true for @unsub.
(unset_folder_info_hash): Pass false for @unsub.
* subscribe-dialog.c (fe_done_subscribing): Don't notify the shell
here. The folder cache does it now, and it was broken to make the
CORBA call in another thread anyway.
svn path=/trunk/; revision=17669
2002-07-31 Rodrigo Moya <rodrigo@ximian.com>
* pcs/query-backend.[ch]: new class for implementing a backend cache
for the calendar queries.
* pcs/Makefile.am: added new files.
svn path=/trunk/; revision=17668
2002-07-31 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-folder.c (parse_fetch_response):
Disable my fix to not cache headers as it means that each time we
load the message, we've got to re-fecth the headers.
svn path=/trunk/; revision=17665
2002-07-31 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (e_msg_composer_new_with_message): Parse the
auto-cc/bcc recipients and then later when parsing the cc/bcc
recipients into EDestination objects, if the address is an
auto-*cc address, then set auto_recipient to TRUE on that
EDestination. This fixes bug #28339.
svn path=/trunk/; revision=17664
* gui/component/addressbook-component.c (create_component): Change
the order so that "New Contact" is first and "New Contact List" is
next.
* gui/component-factory.c (create_object): Change the order of the
user creatable items a bit so that "New Appointment" and "New
Meeting" are at the top when in a calendar folder.
* component-factory.c (create_component): Put "New Mail Message"
before "New Message Post" instead of vice versa.
* evolution-mail-global.xml: Remove "New Mail Message" and "Post
Message" items.
svn path=/trunk/; revision=17661
2002-07-31 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-filter-tohtml.c (is_addr_char): Don't use
"isprint(c)" to mean "c >= 32 && c < 128" since it doesn't in most
locales.
(is_url_char): Same.
(is_trailing_garbage): Same.
(is_domain_name_char): New macro for dns-valid characters
(email_address_extract): Use is_domain_name_char rather than
is_addr_char for the part after the @.
svn path=/trunk/; revision=17660
Don't sort the menu_items here.
(create_menu_xml): Instead, sort here, and only sort the
non-default section of the menu.
(get_default_action_for_view): Just get the first item that is
default; since we don't sort anymore, this works.
(find_menu_item_for_verb): Removed since it is not used anymore.
svn path=/trunk/; revision=17659
* gui/component/addressbook-component.c (add_creatable_item): Pass
"contacts" as the @folder_type to
evolution_shell_component_add_user_creatable_item().
* gui/component-factory.c (add_creatable_item): New arg
@folder_type, pass it to
evolution_shell_component_add_user_creatable_item().
(create_object): Set the right folder types for the various
user-creatable items.
* component-factory.c (create_component): Pass "mail" as
@folder_type to
evolution_shell_component_add_user_creatable_item().
* evolution-test-component.c (register_component): Pass NULL for
@folder_type to
evolution_shell_component_add_user_creatable_item().
* e-shell-user-creatable-items-handler.c: New member folder_type
in struct MenuItem.
(ensure_menu_items): Initialize ->folder_type.
(item_is_default): New helper function.
(create_menu_xml): New arg @folder_type. Put the items on the top
using item_is_default().
(shell_view_view_changed_callback): Pass the folder type to
create_menu_xml().
* evolution-shell-component.c: New member folder_type in
UserCreatableItemType.
(user_creatable_item_type_new): New arg @folder_type.
(user_creatable_item_type_free): Free ->folder_type.
(evolution_shell_component_add_user_creatable_item): New arg
@folder_type.
(impl__get_userCreatableItemTypes): Set ->folderType in the
returned CORBA structs.
* Evolution-ShellComponent.idl: New member folderType in struct
UserCreatableItemType.
* e-shell-user-creatable-items-handler.c: New member component_id
in struct MenuItem. Removed member menu_xml from
EShellUserCreatableItemsHandlerPrivate.
(init): No need to initialize menu_xml here anymore.
(impl_destroy): ...And no need to free here, either.
(setup_menu_xml): New, derived from ensure_menu_xml(). This
orders the menu so that the items for the current component go at
the top.
(create_menu_xml): Removed.
(e_shell_user_creatable_items_handler_attach_menus): Set up
properly for the current component ID, using setup_menu_xml().
svn path=/trunk/; revision=17658
2002-07-31 Chris Toshok <toshok@ximian.com>
[ roll in the following change from the 1.0 branch.]
* backend/pas/pas-backend-ldap.c:
(prop_info): change the CALURI and FBURL ecard attributes to map to the
RFC 2739 specified attributes.
(check_schema_support): check to see if calEntry is supported.
(add_objectclass_mod): insert calEntry if it's supported.
* backend/pas/evolutionperson.schema: deprecate freeBusyURI
and calendarURI.
svn path=/trunk/; revision=17657
2002-07-31 JP Rosevear <jpr@ximian.com>
* gui/e-tasks.c (e_tasks_destroy): we no longer need to manually
save the state
(e_tasks_open): we no longer need to manually load the state
(display_view_cb): attach the gal view to the table
Fixes#27894
svn path=/trunk/; revision=17656
* e-html-utils.c (is_addr_char, is_trailing_garbage): Don't use
"isprint(c)" to mean "c >= 32 && c < 128" since it doesn't in most
locales.
(is_domain_name_char): new macro for dns-valid characters
(email_address_extract): Use is_domain_name_char rather than
is_addr_char for the part after the @.
svn path=/trunk/; revision=17655
2002-07-31 Not Zed <NotZed@Ximian.com>
* mail-display.c: Added global cameldatacache for managing remote
image cache.
(fetch_remote): Lookup data in cache first, use that if available,
or setup a new cache item.
(fetch_data): Write any retrieved data to cache as well as html
stream.
(fetch_free): Unref cache stream.
(fetch_done):
(fetch_cancel): If failed/cancelled, remove cache items so they
dont foul the result. Probably need a header in cache items to
guarantee this, but this is ok for now.
(mail_display_class_init): Setup cache structure. Also ensure
globals are initialised at-most once.
svn path=/trunk/; revision=17652
2002-07-30 Jeffrey Stedfast <fejj@ximian.com>
* camel-tcp-stream.c (camel_tcp_address_new): Update the comment.
* camel-tcp-stream-raw.c (socket_connect): If building with IPv6
support and the address is an IPv6 address, connect using a
sockaddr_in6 otherwise use the standard IPv4 sockaddr_in
structure.
(stream_get_local_address): Fix to work with IPv6 addresses.
(stream_get_remote_address): Same.
* camel-tcp-stream-openssl.c (socket_connect): Same as above.
(stream_get_local_address): Fix to work with IPv6 addresses.
(stream_get_remote_address): Same.
* camel-tcp-stream-ssl.c (stream_connect): If building with IPv6
support and the address is an IPv6 address, initialise the
PRNetAddr accordingly.
(stream_get_local_address): Fix to work with IPv6 addresses.
(stream_get_remote_address): Same.
svn path=/trunk/; revision=17651
2002-07-30 Jeffrey Stedfast <fejj@ximian.com>
* e-host-utils.c (e_gethostbyname_r): If the user has enabled IPv6
support, use getaddrinfo to resolve hostnames and then manually
fit the result into a struct hostent.
(e_gethostbyaddr_r): Same.
svn path=/trunk/; revision=17650
2002-07-30 Peter Williams <peterw@ximian.com>
* filter-rule.c (get_widget): Translate the rule name when filling
in the name entry.
svn path=/trunk/; revision=17648
2002-07-30 Jeffrey Stedfast <fejj@ximian.com>
* camel-tcp-stream-openssl.c (ssl_verify): X509_digest() needs a
pointer to an int len. Also fixed some other compiler errors.
* camel-certdb.h: #include <stdio.h>
svn path=/trunk/; revision=17647
2002-07-30 Radek Doulik <rodo@ximian.com>
* mail-config.c (mail_config_signature_set_name): save signature
here to remember the changed name
svn path=/trunk/; revision=17646
2002-07-29 JP Rosevear <jpr@ximian.com>
* gui/e-day-view.c (e_day_view_find_work_week_start): make sure
that the work week view goes to the current work week if the day
selected is before the start of the work week
svn path=/trunk/; revision=17645
2002-07-30 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (write_date): Use camel_medium_get_header to get
the date header rather than getting the time_t and converting it
into a string.
svn path=/trunk/; revision=17643
2002-07-30 Jeffrey Stedfast <fejj@ximian.com>
* camel-certdb.c: New source file implementing a very basic
certificate database. This is mostly just here because the Mozilla
NSS certdb seems to not be working for everyone's Evolution
install (works fine for me and Ettore but not many other people).
* camel-tcp-stream-ssl.c (ssl_bad_cert): If we have this
certificate in our own CamelCertDB, then get the trust value from
that and only prompt the user if the trust is unknown.
* camel-tcp-stream-openssl.c (ssl_verify): Same.
* camel.c (camel_init): Create our default certdb.
svn path=/trunk/; revision=17642
2002-07-30 Peter Williams <peterw@ximian.com>
* providers/imap/camel-imap-folder.c (imap_transfer_offline): Use
the same command-counter mojo that the append code uses in case
the use tries to copy the same message to the folder repeatedly.
svn path=/trunk/; revision=17641
2002-07-29 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (encode_signature_name): new helper function
(decode_signature_name): new helper function
(get_signature_html): use encode_signature_name
(set_signature_gui): use decode_signature_name
svn path=/trunk/; revision=17636
2002-07-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_new): Get the "Reset
Defaults" folders button and connect to the clicked signal.
(default_folders_clicked): Set the default uris on for the Drafts
and Sent folders.
svn path=/trunk/; revision=17634