Commit Graph

273 Commits

Author SHA1 Message Date
8f183d269e Included information about db3.
2001-05-31  Christopher James Lahey  <clahey@ximian.com>

	* README: Included information about db3.

	* acconfig.h: Added HAVE_DB_H and HAVE_DB3_DB_H.

	* configure.in: Added various checks for db3 libraries and
	includes.  Of note are the new configure options
	--with-db3-includes=PREFIX and --with-db3-libs=PREFIX to specify
	the location for your db3 library.

From addressbook/ChangeLog:

2001-05-31  Christopher James Lahey  <clahey@ximian.com>

	* backend/pas/Makefile.am (INCLUDES): Added db3 cflags.

	* backend/pas/pas-backend-file.c: Updated this to use db3.

From e-util/ChangeLog:

2001-05-31  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (INCLUDES): Added db3 cflags.

	* e-dbhash.c: Made this use db3.

	* e-db3-utils.c, e-db3-utils.h: New files with some helper
	functions.

From wombat/ChangeLog:

2001-05-31  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (wombat_LDADD): Added db3 libs.

svn path=/trunk/; revision=10077
2001-06-01 01:02:12 +00:00
de887cef10 fix strings such that ones that happening at the beginning or during an
2001-05-23  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c (view_destroy): fix strings such
	that ones that happening at the beginning or during an operation
	are followed by "..." and those that stop the operation are
	followed by "."
	(create_card_handler): same.
	(ldap_op_process_current): same, and also call _notify_complete if
	we can't connect to ldap server.
	(poll_ldap): same, and change "Polling for LDAP search result" to
	"Receiving LDAP search results"

	* backend/pas/pas-backend-file.c (pas_backend_file_search): call
	notify_status_message at the beginning of this function, and
	whenever we call _notify_complete.

svn path=/trunk/; revision=9941
2001-05-23 09:32:49 +00:00
e16ec956d7 ref the listener for the duration of this function, since emitting
* backend/ebook/e-book-listener.c (e_book_listener_check_queue):
	ref the listener for the duration of this function, since emitting
	"responses_queued" may cause it to be unreffed by its EBook in
	some cases, which could cause the second response_queue check to
	look at garbage data if it got destroyed.
	(e_book_listener_destroy): Call g_source_remove if idle_id is set.

svn path=/trunk/; revision=9935
2001-05-22 19:12:49 +00:00
3ca3f79dbe Return the serialized EDestinations (rather than just a string w/ e-mail
2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * gui/component/select-names/e-select-names-bonobo.c
        (entry_get_property_fn): Return the serialized EDestinations
        (rather than just a string w/ e-mail addresses) through the bonobo
        component's property bag.

        * gui/component/select-names/e-select-names-model.c
        (e_select_names_model_export_destinationv): Added.  A convenience routine
        for serializing the model's EDestinations into a string.

        * gui/component/select-names/e-select-names-popup.c
        (add_html_mail): Added.  Puts in a check menu item for whether or
        not the recipient wants HTML mail.
        (popup_menu_card): Add menu item for HTML mail.  Enable edit
        contact info item.
        (popup_menu_nocard): Add menu item for HTML mail.  Enable edit
        contact info item.

        * backend/ebook/e-book-util.c (e_book_use_local_address_book):
        Added.  Fetches the local addressbook and caches it on the first
        call.  This is meant to be an easy and efficient way to get at the
        local addressbook with the minimum of code.
        (e_book_query_address_locally): Added.  Convenience code that
        does an e-mail only e_book_name_and_email_query against the
        local address book.

        * backend/ebook/e-destination.c
        (e_destination_set_html_mail_pref): Added.  Allows the intended
        recipient's HTML mail preference to be manipulated.
        (e_destination_get_email_verbose): Added.  Cleaned up to use
        e_destination_get_name.
        (e_destination_get_html_mail_pref): Added.  Read the recipient's HTML mail
        preference.  If the destination is linked to a card, the
        preference is taken from the card (unless it has been explicitly
        overridden by a called to e_destination_set_html_mail_pref).
        (e_destination_get_address_textv): Added.  Form a unified address string
        from a NULL-terminated vector of EDestinations.
        (e_destination_export): Added.  Serialize an EDestination to a string.
        (e_destination_import): Added.  Unserialize a string to build an
        EDestination.
        (e_destination_exportv): Added.  Serialize a NULL-terminated vector of
        EDestinations to a string.
        (e_destination_importv): Added.  Unserialize a string to build a
        NULL-terminated vector of EDestinations.

        * gui/component/select-names/e-select-names-completion.c:
        Implemented local versions of g_strcasecmp and g_strncasecmp
        (which should really be in glib, I think...) for utf8, and used
        them to make this code utf8-safe.

2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * Makefile.am (evolution_mail_LDADD): Added libebook.la (which is
        now required by the composer.)

2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * e-msg-composer-hdrs.c (set_recipients): Properly unserialize the
        string returned by the "text" property of the bonobo control,
        convert it into EDestinations, and use them to get the e-mail
        addresses of our recipients.

22001-05-18  Jon Trowbridge  <trow@ximian.com>

        * Makefile.am (SUBDIRS): Changed build order.  Now addressbook
        gets built before mail.

svn path=/trunk/; revision=9878
2001-05-18 07:10:04 +00:00
9953071e22 add prototype for addressbook_expand_uri.
2001-05-13  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook.h: add prototype for
	addressbook_expand_uri.

	* gui/component/addressbook-component.c
	(destination_folder_handle_drop): create an EBook for
	@physical_uri.
	(dnd_drop_book_open_cb): actually add the dropped cards.

	* gui/component/addressbook.c (addressbook_expand_uri): abstract
	this code out from the set_prop method so we can use it in the
	component.
	(set_prop): call addressbook_expand_uri.

	* backend/ebook/e-card.c (e_card_load_cards_from_string): new
	function.

	* backend/ebook/e-card.h: add prototype for
	e_card_load_cards_from_string.

svn path=/trunk/; revision=9788
2001-05-14 00:46:29 +00:00
2424c15594 load pixmaps for MessageCopy and MessageForwardAttached. Thanks Wayne
2001-05-12  Gediminas Paulauskas <menesis@delfi.lt>

	* folder-browser-factory.c: load pixmaps for MessageCopy and
	MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu>
	for a patch.

2001-05-12  Gediminas Paulauskas <menesis@delfi.lt>

	* evolution-mail.xml: add pixmaps for MessageCopy and
	MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu>
	for a patch.

2001-05-12  Gediminas Paulauskas <menesis@delfi.lt>

	* po/POTFILES.in: update with new/moved files.

Also:
remove duplicated DATADIR from mail/Makefile.am
fix warning in e-search-bar.c

svn path=/trunk/; revision=9782
2001-05-12 09:51:30 +00:00
10387f7519 If the name is set and the full_name or file_as haven't been yet, set
2001-05-11  Christopher James Lahey  <clahey@ximian.com>

	* backend/ebook/e-card.c (e_card_set_arg): If the name is set and
	the full_name or file_as haven't been yet, set them.

svn path=/trunk/; revision=9770
2001-05-11 20:28:27 +00:00
a8b6f2be95 Reordered the includes here. (string_to_dbt): The sleepycat libdb
2001-05-11  Christopher James Lahey  <clahey@ximian.com>

	* backend/pas/pas-backend-file.c: Reordered the includes here.
	(string_to_dbt): The sleepycat libdb documentation suggests
	memseting the DBT to 0 so we do that here.

	* gui/widgets/e-minicard-view-model.c (addressbook_height): Skip
	the E_CARD_SIMPLE_FIELD_FAMILY_NAME field.

	* gui/widgets/e-minicard.c (remodel): Skip the
	E_CARD_SIMPLE_FIELD_FAMILY_NAME field.

svn path=/trunk/; revision=9764
2001-05-11 19:20:27 +00:00
34b0dc6544 only check schema support if we've connected.
2001-05-11  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): only
	check schema support if we've connected.

svn path=/trunk/; revision=9763
2001-05-11 18:53:11 +00:00
c64eccfe00 Importer changes
svn path=/trunk/; revision=9722
2001-05-08 22:53:41 +00:00
3c0c62e295 Removed e-card-pairs.h since we're not using it.
2001-05-08  Christopher James Lahey  <clahey@ximian.com>

	* backend/ebook/Makefile.am (libebookinclude_HEADERS): Removed
	e-card-pairs.h since we're not using it.

	* backend/ebook/e-book-view.c (e_book_view_check_listener_queue):
	Added break; to default: case here.

	* backend/ebook/e-card-simple.c, backend/ebook/e-card-simple.h:
	Added changed variable so as to avoid sync_card when possible.
	(e_card_simple_destroy): Free all the data here properly.
	(e_card_simple_get_arg): Slight simplification here.
	(fill_in_info, e_card_simple_arbitrary_foreach,
	e_card_simple_get_arbitrary): Call e_card_free_empty_lists here to
	save a bit of memory.

	* backend/ebook/e-card.c, backend/ebook/e-card.h: Fixed up
	includes a bit.
	(e_card_list_get_vcard, e_card_list_send): Added these functions
	for acting on a group of cards.
	(parse_org): Cleaned up this function a bit.
	(e_card_free_empty_lists): Added this function to delete
	unnecessary ELists and save a bit of memory.
	(e_v_object_get_child_value): Made this return NULL if not found
	instead of g_strdup("").

	* contact-editor/e-contact-save-as.c,
	contact-editor/e-contact-save-as.h (e_contact_list_save_as): Added
	this function to save multiple contacts.

	* gui/widgets/Makefile.am: Commented out reflow test.
	(libeminicard_a_SOURCES): Added e-minicard-view-model.c and
	e-minicard-view-model.h.

	* gui/widgets/e-minicard-view-model.c,
	gui/widgets/e-minicard-view-model.h: Model for use in
	EMinicardView.

	* gui/widgets/e-minicard-view.c, gui/widgets/e-minicard-view.h:
	Reworked this to use the new EReflow stuff.

	* gui/widgets/e-minicard.c (e_minicard_event): Doesn't handle
	right click menus now.  Emits a signal on the parent canvas item
	instead.

	* printing/e-contact-print-envelope.c,
	printing/e-contact-print-envelope.h
	(e_contact_print_envelope_list_dialog_new): Added this function to
	print multiple envelopes (only prints first for now.)

	* printing/e-contact-print.c, printing/e-contact-print.h
	(e_contact_print_card_list_dialog_new): Added this function to
	print multiple cards.  Only prints the first for now.

svn path=/trunk/; revision=9711
2001-05-08 04:58:41 +00:00
e03b58e2df init change_id to NULL
2001-05-04  JP Rosevear  <jpr@ximian.com>

	* backend/pas/pas-backend-file.c
	(pas_backend_file_process_get_book_view): init change_id to NULL

svn path=/trunk/; revision=9672
2001-05-04 15:59:06 +00:00
80e3acea85 unref the book if the view is being destroyed
2001-05-02  JP Rosevear  <jpr@ximian.com>

	* gui/component/addressbook.c (addressbook_view_free): unref the
	book if the view is being destroyed

	* backend/pas/pas-backend-file.c
	(pas_backend_file_process_get_book_view): unref the book_view when
	we are finished, it is only interesting if someone else has reffed
	it now (weak reference)
	(pas_backend_file_add_client): unref the book for the same reason
	as above

svn path=/trunk/; revision=9647
2001-05-02 19:09:47 +00:00
c757cacd08 if the view does not contain a search context, the result is by default
2001-04-30  JP Rosevear  <jpr@ximian.com>

	* backend/pas/pas-backend-file.c (vcard_matches_search): if the
	view does not contain a search context, the result is by default
	false fixes #2470

svn path=/trunk/; revision=9634
2001-05-01 03:14:40 +00:00
a35d86361d Added.
2001-04-16  Jon Trowbridge  <trow@ximian.com>

        * backend/ebook/e-destination.c (e_destination_get_name): Added.

        * gui/component/select-names/e-select-names.c
        (real_add_address_cb): Use e_select_names_model_append.  It's
        nicer.

        * gui/component/select-names/e-select-names-model.c
        (e_select_names_model_append): Added.

        * gui/component/select-names/e-select-names-completion.c
        (book_query_process_card_list): Filter out completion matches that
        don't have an associated e-mail address.
        (book_query_score): Give a bonus to the primary address, so that
        it always comes up first in the completion results.

        * gui/component/e-address-popup.c (e_address_popup_refresh_names):
        Convert utf8 strings into gtk strings before displaying.

svn path=/trunk/; revision=9390
2001-04-16 20:28:13 +00:00
1d4c16a76a Added the function e_book_view_listener_stop to tell the book view
2001-04-14  Christopher James Lahey  <clahey@ximian.com>

	* backend/ebook/e-book-view-listener.c,
	backend/ebook/e-book-view-listener.h: Added the function
	e_book_view_listener_stop to tell the book view listener to stop
	sending signals.

	* backend/ebook/e-book-view.c (e_book_view_destroy): Tell the
	EBookViewListener to stop when we're destroyed.

	* backend/pas/pas-backend-file.c (view_destroy,
	pas_backend_file_process_get_book_view,
	pas_backend_file_process_get_changes): Cleaned these up a bit
	using bonobo_object_ref and bonobo_object_unref.
	(pas_backend_file_process_get_book_view,
	pas_backend_file_process_get_changes): bonobo_object_release_unref
	the EBookListener here.

	* backend/pas/pas-backend-ldap.c
	(pas_backend_ldap_process_get_book_view): Cleaned this up a bit
	using bonobo_object_ref.  Make sure to unref the listener when
	we're done with it.  Put the new book_view in the list before
	telling the book_listener that it's ready.

	* backend/pas/pas-book-view.c (pas_book_view_construct): Cleaned
	this up a bit using bonobo_object_dup_ref.
	(pas_book_view_destroy): Cleaned this up a bit using
	bonobo_object_release_unref.

	* backend/pas/pas-book.c (pas_book_queue_get_book_view,
	pas_book_queue_get_changes): bonobo_object_dup_ref here instead of
	just duplicating.

svn path=/trunk/; revision=9313
2001-04-14 20:26:40 +00:00
a0a4b49f2d Ref the cursor here when we receive it.
2001-04-14  Christopher James Lahey  <clahey@ximian.com>

	* backend/ebook/e-book-listener.c
	(impl_BookListener_respond_get_cursor): Ref the cursor here when
	we receive it.
	(impl_BookListener_respond_get_view,
	impl_BookListener_respond_get_changes): Ref the book_view here
	when we receive it.
	(impl_BookListener_respond_open_book): Ref the book here when we
	receive it.
	(e_book_listener_destroy): Unref the objects in our queue here.

	* backend/ebook/e-book-view.c (e_book_view_construct): Cleaned
	this up using bonobo_object_dup_ref.
	(e_book_view_destroy): Cleaned this up using
	bonobo_object_release_unref.

	* backend/ebook/e-book.c (e_book_do_response_get_cursor,
	e_book_do_response_get_view, e_book_do_response_get_changes,
	e_book_unload_uri): Cleaned this up using
	bonobo_object_release_unref.

svn path=/trunk/; revision=9311
2001-04-14 17:19:45 +00:00
04fac44de1 Do this everywhere, also fixup CLEANFILES
Do this everywhere, also fixup CLEANFILES

2001-04-14  Michael Meeks  <michael@ximian.com>

	* Makefile.am (dist-hook): remove built sources from dist.

svn path=/trunk/; revision=9309
2001-04-14 08:02:59 +00:00
275c3b3deb Update the Voice and Fax phone numbers too, finishing off bug #1667.
2001-04-12  Jason Leach  <jasonleach@usa.net>

	* backend/pas/pas-backend-file.c (INITIAL_VCARD): Update the Voice
	and Fax phone numbers too, finishing off bug #1667.

svn path=/trunk/; revision=9296
2001-04-13 02:14:35 +00:00
3bf472d9ca Update the built in VCard.
2001-04-11  Christopher James Lahey  <clahey@ximian.com>

	* backend/pas/pas-backend-file.c (INITIAL_VCARD): Update the built
	in VCard.

svn path=/trunk/; revision=9293
2001-04-13 01:00:54 +00:00
0f6c6bbb8c put the business address into the pilot record as that is what we put into
2001-04-12  JP Rosevear  <jpr@ximian.com>

	* conduit/address-conduit.c (local_record_from_ecard): put the
	business address into the pilot record as that is what we put into
	the desktop record
	(ecard_from_remote_record): set both the address label and
	delivery address to avoid bad parser guessing, fixes #2143

	* backend/ebook/e-card-types.h: remove deprecated pilot code

	* backend/ebook/e-card.c: ditto

	* backend/ebook/e-card.h: ditto

svn path=/trunk/; revision=9279
2001-04-12 18:44:41 +00:00
9b8230a24c Added E_CARD_SIMPLE_FIELD_LAST_SIMPLE_STRING.
2001-04-11  Christopher James Lahey  <clahey@ximian.com>

	* backend/ebook/e-card-simple.h: Added
	E_CARD_SIMPLE_FIELD_LAST_SIMPLE_STRING.

	* gui/component/addressbook-component.c (accepted_dnd_types):
	Fixed a warning here.

	* gui/widgets/e-addressbook-model.c: Modified this to have more
	columns, but not let them be edited if they're not a simple
	string.

	* gui/widgets/e-minicard-view.c (e_minicard_view_init): Fixed a
	warning and a memory leak here.

svn path=/trunk/; revision=9230
2001-04-11 07:50:57 +00:00
1991d205da i18n fixes, added missing includes.
2001-04-10  Gediminas Paulauskas <menesis@delfi.lt>

	* AUTHORS: /me is a translator.
	* configure.in (EVO_CHECK_LIB): fail with AC_MSG_ERROR, not echo &&
	exit 1.

2001-04-10  Gediminas Paulauskas <menesis@delfi.lt>

	* backend/ebook/evolution-gnomecard-importer.c: added missing #include.
	* contact-editor/e-contact-editor.c (_arrow_pressed): popup menu items were
	not translated after selecting one of them.
	* gui/widgets/e-addressbook-view.c: mark popup menu items with N_().
	Updated list[] for translators.
	* gui/widgets/e-minicard.c: same.
	* gui/widgets/e-minicard-view-widget.c (e_minicard_view_widget_set_arg): fix warning
	for "editable" arg.
	* gui/widgets/e-minicard-view.c: convert "empty_message" to utf8.

2001-04-10  Gediminas Paulauskas <menesis@delfi.lt>

	* widgets/e-summary-subwindow.c: added some missing includes.
	* widgets/e-summary-title-button.h: same.

2001-04-10  Gediminas Paulauskas <menesis@delfi.lt>

	* menus/gal-view-menus.c: convert label to utf8.

svn path=/trunk/; revision=9215
2001-04-10 21:28:40 +00:00
f01f5f7c42 make sure to notify new clients to the writable status of an already open
2001-04-08  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c (pas_backend_ldap_add_client):
	make sure to notify new clients to the writable status of an
	already open (and authenticated) book.

svn path=/trunk/; revision=9206
2001-04-08 23:51:49 +00:00
0dfb7852f0 Unref and unregister the factory on exit
svn path=/trunk/; revision=9106
2001-04-02 21:43:45 +00:00
e51bb13fc4 Call e_select_names_model_clean after adding address. This should deal
2001-03-31  Jon Trowbridge  <trow@ximian.com>

	* gui/component/select-names/e-select-names.c
	(real_add_address_cb): Call e_select_names_model_clean after
	adding address.  This should deal with the bug reports related
	to stray commas.

	* gui/component/select-names/e-select-names-model.c
	(e_select_names_model_clean): Added.  Remove all empty destinations.

	* backend/ebook/e-destination.c (e_destination_is_empty): Added.  Check
	if an EDestination is in essentially a null state.

svn path=/trunk/; revision=9067
2001-03-31 06:52:11 +00:00
c5c0c7fe76 Tell new clients that are added whether they're writable.
2001-03-30  Christopher James Lahey  <clahey@ximian.com>

	* backend/pas/pas-backend-file.c (pas_backend_file_add_client):
	Tell new clients that are added whether they're writable.

svn path=/trunk/; revision=9043
2001-03-30 10:38:27 +00:00
424506262d Added #include <libgnome/gnome-paper.h>
2001-03-29  Jon Trowbridge  <trow@ximian.com>

        * printing/e-contact-print.c: Added #include <libgnome/gnome-paper.h>

        * printing/e-contact-print-envelope.c: Added #include <time.h>
        and #include <libgnome/gnome-paper.h>

        * gui/component/select-names/e-select-names-completion.c
        (match_email): Better handle matching of "nameless" contacts.

        * backend/ebook/e-destination.c (e_destination_get_string): Better
        handle the case of a "nameless" contact.

2001-03-29  Jon Trowbridge  <trow@ximian.com>

	* camel-filter-driver.c (camel_filter_driver_filter_message): Save
        the source URL using camel_mime_message_set_source.

        * camel-mime-message.c (camel_mime_message_set_source): Renamed
        camel_mime_message_set_identity to this.  Sets the X-Evolution-Source
        header.
        (camel_mime_message_get_source): Returns the X-Evolution-Source
        header.

2001-03-29  Jon Trowbridge  <trow@ximian.com>

        * mail-callbacks.c: Added #include <time.h> to get things
        to compile.

        * mail-callbacks.c (mail_generate_reply): Look at the
        X-Evolution-Source header, and try to find a corresponding
        account.  If this works, send the mail from this account.
        If not, use the default account.

        * mail-ops.c (send_queue_send): Strip out the X-Evolution-Source
        header before sending.

        * mail-config.c (mail_config_get_account_by_source_url): Added.
        Look up accounts by source URL.

svn path=/trunk/; revision=9032
2001-03-29 23:46:55 +00:00
cf658dcba6 Clean up #includes. Replace <gnome.h>, <bonobo.h> and <gtk/gtk.h> with
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* *.*: Clean up #includes. Replace <gnome.h>, <bonobo.h> and
	<gtk/gtk.h> with more finegrained headers where needed.

svn path=/trunk/; revision=9026
2001-03-29 20:55:01 +00:00
d6e6a8d2cc Fixed some crashes.
2001-03-28  Christopher James Lahey  <clahey@ximian.com>

	* backend/ebook/e-card.c (e_card_set_arg): Fixed some crashes.

svn path=/trunk/; revision=9001
2001-03-28 23:49:48 +00:00
4f26eac120 Added. Call me old-fashioned, but I just prefer to have a real API rather
2001-03-23  Jon Trowbridge  <trow@ximian.com>

        * gui/widgets/e-minicard-widget.c (e_minicard_widget_set_card):
        Added.  Call me old-fashioned, but I just prefer to have a real
        API rather than doing everything via gtk_object_get/set-type
        calls.
        (e_minicard_widget_set_arg): Changed to call
        e_minicard_widget_set_card.

        * backend/ebook/e-book-util.c: Small changes to get rid of
        compiler warnings.  (Casting out const, removed unused variables,
        etc.)  Removed some debugging messages.

        * gui/component/addressbook-factory.c (main): Added call
        to e_address_popup_factory_init.

        * gui/component/e-address-popup.c: Added.  A popup gadget that is
        invoked (as a bonobo control) when an address is left-clicked in
        the mailer.  The addressbook is queries, and the address is either
        displayed as a minicard (if it already exists) or in a "generic
        format".  A button is provided for editting/adding the contact.
        Some of the semantics of this widget are a bit... non-standard,
        because of bonobo issues.  I can't really seem to replicate
        popup-menu behavior because of how bonobo propogates events, etc.
        so I've tried to produce something that I think is non-annoying.
        YMMV.

2001-03-23  Jon Trowbridge  <trow@ximian.com>

        * mail-display.c (handle_embedded_address_object): #ifdef away
        some code I don't quite want to delete yet.
        (html_button_press_event): Remove some of Radek's placeholder
        code, replace it with code to create my AddressPopup bonobo
        control.

        * mail-format.c: Remove some obsolete code that if #ifdef-ed out
        a while ago.

        * mail-ops.c (send_queue_send): Strip out the X-Evolution-Identity
        header when sending.

2001-03-23  Jon Trowbridge  <trow@ximian.com>

        * camel-filter-driver.c (camel_filter_driver_filter_message):
        Don't call camel_mime_message_set_identity.  (The call is
        commented out, left over from some earlier experimentation that I
        want to be able to remember later...)

        * camel-mime-message.c (camel_mime_message_set_identity): Added.
        A function to set the X-Evolution-Identity header.

svn path=/trunk/; revision=8916
2001-03-23 09:39:37 +00:00
35c7cc9018 Fix some warnings, Allow the importers to import into any folder. Update
Fix some warnings,
Allow the importers to import into any folder.
Update all importers for this change.
Don't emit the create_folder callback if the folder to be created already exists.
This should fix the libibex crash when importing.

svn path=/trunk/; revision=8912
2001-03-23 02:09:29 +00:00
e54ed57996 Start feeding query matches back to the caller before the entire search is
2001-03-17  Jon Trowbridge  <trow@ximian.com>

        * backend/pas/pas-backend-file.c (pas_backend_file_search):
        Start feeding query matches back to the caller before the
        entire search is complete; this gives us some "instant feedback"
        rather than causing evolution to totally lock up...

svn path=/trunk/; revision=8792
2001-03-18 03:26:03 +00:00
36c7b8c8ff Tag all queued ops. (e_book_cancel_op): Added. Search for a pending op
2001-03-17  Jon Trowbridge  <trow@ximian.com>

	* backend/ebook/e-book.c (e_book_queue_op): Tag all queued ops.
	(e_book_cancel_op): Added.  Search for a pending op with a given
	tag, and mark it as inactive.
	(e_book_do_response_get_cursor): Don't execute callback if this
	operations has been cancelled.
	(e_book_do_response_get_view): Ditto.
	(e_book_do_response_get_changes): Ditto.
	(e_book_do_response_get_supported_fields): Ditto.
	(e_book_get_supported_fields): Return an operation tag (that can
	be used to cancel the operation) rather than just TRUE/FALSE.
	Zero is always an invalid tag and is returned in the case of an
	error, so this shouldn't break any code that looked at the return
	value (unless it did so in a particularly stupid way, of course).
	(e_book_get_cursor): Ditto.
	(e_book_get_book_view): Ditto.
	(e_book_get_changes): Ditto.
	(e_book_cancel): Added.  Cancel a pending operation.  (Basically
	a call to e_book_cancel_op with error checking, etc.)

	* backend/ebook/e-book-types.h: Added E_BOOK_STATUS_CANCELLED.

svn path=/trunk/; revision=8790
2001-03-18 03:04:54 +00:00
b16a04e98d new function. (impl_BookListener_report_writable): new function.
2001-03-17  Chris Toshok  <toshok@ximian.com>

	* backend/ebook/e-book-listener.c
	(e_book_listener_queue_writable_status): new function.
	(impl_BookListener_report_writable): new function.
	(e_book_listener_get_epv): fill in epv->notifyWritable.

	* backend/ebook/e-book-listener.h: add writable status entries.

	* backend/ebook/e-book.c (e_book_do_writable_event): new function.
	(e_book_check_listener_queue): add WritableStatusEvent to the
	switch.
	(e_book_class_init): register writable_status signal.

	* backend/ebook/e-book.h: add writable_status signal.

	* backend/idl/addressbook.idl: add notifyWritable method to
	BookListener.

	* gui/widgets/e-minicard.c (e_minicard_class_init): add "editable"
	arg.
	(e_minicard_init): init editable.
	(e_minicard_set_arg): loop over the minicard fields setting their
	"editable".
	(e_minicard_get_arg): add editable.
	(supported_fields_cb): use editable when creating the
	contact_editor.
	(add_field): set "editable" when creatin the e_minicard.

	* gui/widgets/e-minicard.h (struct _EMinicard): add "editable".

	* gui/widgets/e-minicard-view.c (e_minicard_view_class_init): add
	editable arg.
	(e_minicard_view_init): init editable.
	(create_card): pass editable to e_minicard canvas item.
	(e_minicard_view_set_arg): bit of a hack - loop over all the
	canvas items setting their "editable."
	(e_minicard_view_get_arg): add editable.
	(supported_fields_cb): use editable when creating the contact
	editor.

	* gui/widgets/e-minicard-view.h (struct _EMinicardView): add
	"editable."

	* gui/widgets/e-minicard-view-widget.c
	(e_minicard_view_widget_class_init): add "editable" field.
	(e_minicard_view_widget_init): init editable to FALSE.
	(e_minicard_view_widget_set_arg): save editable, and pass it along
	the e-minicard-view.
	(e_minicard_view_widget_realize): same.
	(e_minicard_view_widget_get_arg): add editable.

	* gui/widgets/e-minicard-view-widget.h (struct
	_EMinicardViewWidget): add "editable" field.

	* gui/widgets/e-minicard-label.h (struct _EMinicardLabel): add
	"editable" field.

	* gui/widgets/e-minicard-label.c (e_minicard_label_class_init):
	add "editable" arg.
	(e_minicard_label_set_arg): editable, set it on the e_text too.
	(e_minicard_label_get_arg): editable.
	(e_minicard_label_construct): set the "editable" field when we
	create the e_text cavas item

	* gui/widgets/e-addressbook-view.c (e_addressbook_view_init):
	default editable to FALSE.
	(book_writable_cb): new function, set our editable field and
	gtk_object_set it on the active view.
	(e_addressbook_view_set_arg): set the active view's editable when
	we set the view's book, and connect the "writable_status" signal
	to book_writable_cb.
	(change_view_type): same.
	(supported_fields_cb): use our "editable" when creating the
	contact editor.

	* gui/widgets/e-addressbook-view.h (struct _EAddressbookView): add
	editable field.

	* gui/widgets/e-addressbook-model.c (e_addressbook_model_init):
	change the default of editable to FALSE.

	* backend/pas/pas-book.c (pas_book_report_writable): new function.

	* backend/pas/pas-book.h: prototype for pas_book_report_writable.

	* backend/pas/pas-backend-file.c (pas_backend_file_load_uri): if
	we open the file O_RDWR (or create it) report it as writable.  if
	we can't open it as O_RDWR, try opening it read-only before we
	attempt to create it.

	* backend/pas/pas-backend-ldap.c
	(pas_backend_ldap_process_authenticate_user): if we authenticate
	successfully, grant write permissions (this is lacking but there's
	really nothing we can do to determine the extent of the access
	afforded a user.)

svn path=/trunk/; revision=8787
2001-03-17 22:30:06 +00:00
57de6972c8 Added addressbook querying and "cardification" functions, which are turned
2001-03-15  Jon Trowbridge  <trow@ximian.com>

        * gui/component/e-address-widget.c: Added addressbook querying and
        "cardification" functions, which are turned off by default for now
        because of addressbook bugs.  Added a popup menu option to turn
        queries on, so that others can enjoy the thrill of massive flaming
        death.

        * gui/component/addressbook-factory.c (main): Made warnings always
        be fatal.

        * backend/pas/pas-book-view.c: Added some debugging spew.

        * backend/pas/pas-backend-file.c (pas_backend_file_search): Added
        a little experimental code to try to make file searches scale
        better.  #if 0/#endif-ed out for now.

        * contact-editor/e-contact-quick-add.c: #included e-book-util.h.

        * backend/ebook/e-card.c (e_card_name_match_string): Added.
        Looser name-matching function.
        (e_card_email_match_string): Added.  Loose e-mail matching.

        * backend/ebook/e-book-view-listener.c
        (e_book_view_listener_check_queue): Added code to cause us to
        abort rather than get trapped in a 100%-CPU-consuming loop in
        certain situations.  Now we just need to figure out how to avoid
        these situations altogether.

        * backend/ebook/e-book-util.c: Added.  Now contains the simple
        query stuff and the open local addressbook functions.

        * backend/ebook/e-book.c: Moved simple query stuff and open local
        addressbook functions into e-book-util.c.

2001-03-15  Jon Trowbridge  <trow@ximian.com>

        * wombat.c (main): If we can't initialize a service on startup,
        tell us which one before terminating.

svn path=/trunk/; revision=8754
2001-03-16 08:16:29 +00:00
8391885d18 Removed .oafinfo files -- they are obsolete. Moved pixmaps from
2001-03-15  Gediminas Paulauskas <menesis@delfi.lt>

Removed .oafinfo files -- they are obsolete.
Moved pixmaps from calendar/gui/ to art/
Moved evolution.png to art/
Moved evolution.desktop.in to data/
Generate doc/devel/executive-summary/Makefile

svn path=/trunk/; revision=8727
2001-03-15 03:46:54 +00:00
0adb2a51d9 Moved where we call pas_book_respond_get_book_view.
2001-03-13  Christopher James Lahey  <clahey@ximian.com>

	* backend/pas/pas-backend-file.c
	(pas_backend_file_process_get_book_view): Moved where we call
	pas_book_respond_get_book_view.

svn path=/trunk/; revision=8685
2001-03-13 21:11:08 +00:00
825e963795 add E_STRING_PROP for categories.
2001-03-12  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c: add E_STRING_PROP for
	categories.

	* backend/pas/evolutionperson.schema: add categories attribute.

	* backend/ebook/e-card-simple.c (field_data): add
	E_CARD_SIMPLE_FIELD_CATEGORIES.

	* backend/ebook/e-card-simple.h: add
	E_CARD_SIMPLE_FIELD_CATEGORIES.

svn path=/trunk/; revision=8664
2001-03-13 05:22:01 +00:00
8c2f3a00ef All my changes to get the folder creation working, and the magic Netscape
importer.

svn path=/trunk/; revision=8661
2001-03-13 02:26:18 +00:00
6e1b023154 Added. A simplified, cancellable query mechanism that lets you avoid
2001-03-11  Jon Trowbridge  <trow@ximian.com>

	* backend/ebook/e-book.c (e_book_simple_query): Added. A
	simplified, cancellable query mechanism that lets you avoid
	dealing with EBookView.
	(e_book_simple_query_cancel): Added. Cancels a running query.

	* backend/ebook/e-book-types.h: Add enum EBookSimpleQueryStatus.

svn path=/trunk/; revision=8627
2001-03-11 07:13:43 +00:00
afe6fc18fc Switched to use e_contact_quick_add_free_form. Removed debugging code,
2001-03-08  Jon Trowbridge  <trow@ximian.com>

	* gui/component/select-names/e-select-names-popup.c
	(quick_add_cb): Switched to use e_contact_quick_add_free_form.
	Removed debugging code, hopefully without introducing any bugs
	in the process.

	* gui/component/select-names/e-select-names-text-model.c
	(e_select_names_text_model_insert_length): Fix bug with commas
	inside of name/address combos.  As long as the comma is inside of
	quotes, it will be treated as part of the name rather than as a
	break between addresses.

	* gui/component/select-names/e-select-names-completion.c
	(match_nickname): Use e_card_name_to_string for nickname match
	strings.
	(match_email): Use e_card_name_to_string for email match strings.
	(e_select_names_completion_begin): Strip quotes out of query text,
	so we don't produce malformed sexps.
	Added William Blake quote easter egg.

	* contact-editor/e-contact-quick-add.c: Further attempts to fix...
	mostly unsuccessful.
	(e_contact_quick_add_free_form): Added.  Takes a single string
	and tries to parse out (using some simple, loose rules) the
	name and e-mail -- then calls e_contact_quick_add.  An attempt to
	get the computer to automatically Do The Right Thing.

	* backend/ebook/e-book.c: Fixed some broken indentation.  Yes, I'm
	anal.

	* gui/component/GNOME_Evolution_Addressbook.oafinfo: Added oaf_server
	info for EAddressWidget.

	* gui/component/GNOME_Evolution_Addressbook.oaf.in: Added oaf_server
	info for EAddressWidget.

	* gui/component/addressbook-factory.c (main): Add call to
	e_address_widget_factory_init.

	* gui/component/e-address-widget.h:
	* gui/component/e-address-widget.c: Added.  A little widget (and a
	Bonobo control, BTW) for displaying addresses, with a left-click
	menu.  Used to display addresses in the mail viewer (as embedded
	GtkHTML objects, replacing the text previously used).  Still quite
	incomplete.


2001-03-08  Jon Trowbridge  <trow@ximian.com>

	* mail-format.c (write_field_row_begin): Added.  Table row HTML
	broken out into its own function.
	(write_subject): Added.  Emits the proper HTML for the subject
	line.
	(write_field_to_stream): #ifdef-ed out of existence.
	(write_address): Take a CamelInternetAddress and spit out an
	<object> tag with the appropriate <param>s.

	* mail-display.c (on_object_requested): Check for an "address"
	object.  If found, call...
	(handle_embedded_address_object): ...this function, which creates
	an AddressWidget bonobo control and passes in the necessary info.
	I never really realized just quite how much GtkHTML kicks ass
	until I figured out how to make this work.

svn path=/trunk/; revision=8607
2001-03-08 23:15:20 +00:00
0fdd199a2b Added. Just encapsulates opening
2001-03-06  Jon Trowbridge  <trow@ximian.com>

	* backend/ebook/e-book.c (e_book_load_local_address_book): Added.
	Just encapsulates opening
	file://~username/evolution/local/Contactes/addressbook.db, so that
	path doesn't need to be hardwired in throughout the code.

svn path=/trunk/; revision=8570
2001-03-06 17:57:34 +00:00
e6e1655f31 Fix a reference counting bug.
2001-03-06  Jon Trowbridge  <trow@ximian.com>

	* gui/component/select-names/e-select-names-model.c
	(e_select_names_model_replace): Fix a reference counting bug.

	* gui/component/select-names/e-select-names-manager.c (popup_cb):
	A callback for creating the appropriate popup by calling
	e_select_names_popup.
	(e_select_names_manager_create_entry): Connect popup_cb to the
	entry's popup signal

	* gui/component/select-names/e-select-names-popup.c: Added.  Code
	for popup right-click menus for recipient entries.  Still a bit
	incomplete.

	* backend/ebook/e-destination.c (e_destination_get_email_num):
	Added.

	* contact-editor/e-contact-quick-add.c: Added.  Some code and a
	dialog for very quickly adding entries to the address book.
	Still not fully working.

svn path=/trunk/; revision=8567
2001-03-06 10:00:44 +00:00
eca83b21db Cleaned up the formatting in this file a bit.
2001-03-04  Christopher James Lahey  <clahey@ximian.com>

	* backend/ebook/e-card-simple.c: Cleaned up the formatting in this
	file a bit.

	* contact-editor/e-contact-editor.c (e_contact_editor_set_arg):
	Made it so that passing in NULL to the writable_fields arg sets
	the set of writable fields to the empty set.

	* gui/component/select-names/e-select-names-text-model.c
	(e_select_names_text_model_activate_obj): Pass NULL as the
	writable_fields argument here.

	* gui/widgets/e-addressbook-model.c: Don't offset by one here.
	This way we will get the file_as field as one of our
	ETableColumns.

	* gui/widgets/e-addressbook-view.c (SPEC): Updated this for the
	changes in ECardSimple.

	* gui/widgets/e-minicard.c (remodel): Don't remodel if the item
	isn't realized.

svn path=/trunk/; revision=8538
2001-03-04 09:55:49 +00:00
7440bd30cf doh, track renaming of objectclass from evolvePerson to evolutionPerson.
2001-03-02  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c: doh, track renaming of
	objectclass from evolvePerson to evolutionPerson.

svn path=/trunk/; revision=8536
2001-03-03 02:12:57 +00:00
d0ac83cdad rename evolveperson.schema to this, and add remaining attributes.
2001-03-02  Chris Toshok  <toshok@ximian.com>

	* backend/pas/evolutionperson.schema: rename evolveperson.schema
	to this, and add remaining attributes.

	* backend/pas/pas-backend-ldap.c: add remaining fields, and fix up
	ones that were incorrent (either the ldap_attr or the query prop).

svn path=/trunk/; revision=8535
2001-03-03 02:10:51 +00:00
dad9e73fd9 add objectclasses for "person", "organizationalPerson", and "top" as well,
2001-03-02  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c (add_objectclass_mod): add
	objectclasses for "person", "organizationalPerson", and "top" as
	well, just to be complete.
	(check_schema_support): rename check_for_evolve_person to this, to
	reflect that we're doing more than just checking for that
	objectClass.
	(add_oc_attributes_to_supported_fields): new function.
	(add_to_supported_fields): new function.
	(pas_backend_ldap_destroy): unref supported_fields.

svn path=/trunk/; revision=8517
2001-03-02 12:07:57 +00:00
3e7e237728 add new entries for phone enums, and fill in the ecard_field with (bogus
2001-03-02  Chris Toshok  <toshok@ximian.com>

	* backend/ebook/e-card-simple.c (field_data): add new entries for
	phone enums, and fill in the ecard_field with (bogus in all but a
	few cases) strings.  these are the strings sent from wombat to
	evolution-addressbook for supported_fields.
	(e_card_simple_get_ecard_field): new function.
	(e_card_simple_map_phone_to_field): new function.
	(e_card_simple_map_email_to_field): new function.
	(e_card_simple_map_address_to_field): new function.

	* backend/ebook/e-card-simple.h: add a few phone entries to the
	ECardSimpleField enum, and add prototypes for mapping the list
	types (phone, email, address) to ECardSimpleField.  Also, add
	prototype for e_card_simple_get_ecard_field.

	* backend/ebook/e-book.c
	(e_book_do_response_get_supported_fields): don't build the EList
	here, it's already built.

	* backend/ebook/e-book-listener.h: change fields from the CORBA
	sequence to the EList in our reponse struct.

	* backend/ebook/e-book-listener.c
	(e_book_listener_queue_get_supported_fields_response): we make the
	EList here, since after we return the CORBA list is freed up.

svn path=/trunk/; revision=8515
2001-03-02 10:39:16 +00:00
deec95c6d5 implement properly, we support everything.
2001-03-02  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-file.c
	(pas_backend_file_process_get_supported_fields): implement
	properly, we support everything.

svn path=/trunk/; revision=8514
2001-03-02 10:27:27 +00:00