Commit Graph

55 Commits

Author SHA1 Message Date
7cdf441965 Don't just assume all of the GtkHTMLEmbedded's fields are filled in, since
* mail-display.c (on_object_requested): Don't just assume all of
	the GtkHTMLEmbedded's fields are filled in, since HTML messages
	may have <object>s in them that we're not expecting.

	* mail-send-recv.c (mail_send_receive): Add a "current_folder"
	arg.
	(build_dialogue): Remember the current_folder
	(free_send_data): If current_folder is set, refresh it so it's
	guaranteed to be synced with the folder tree. Fixes #14770.

	* mail-callbacks.c (send_receive_mail): Pass current_folder to
	mail_send_receive().

svn path=/trunk/; revision=14950
2001-12-10 14:34:45 +00:00
d0053fd3c7 Check that the mail-display hasn't been destroyed.
2001-12-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (stream_write_or_redisplay_when_loaded): Check
	that the mail-display hasn't been destroyed.
	(mail_display_redisplay): Same here.

2001-12-07  Dan Winship  <danw@ximian.com>

	* mail-send-recv.c (receive_update_got_store): If updating a store
	that we don't have an associated storage for, just request a
	folder tree and then free it. (For the Connector)

	* mail-callbacks.h: Add missing part of Jeff's 12-03 patch so this
	actually compiles.

svn path=/trunk/; revision=14938
2001-12-07 20:25:04 +00:00
7ffad86d87 Call mail_autoreceive_setup() instead of mail_autoreceive_setup_account()
2001-10-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_save): Call
	mail_autoreceive_setup() instead of
	mail_autoreceive_setup_account() since that code was completely
	broken anyway.

	* mail-send-recv.c (mail_autoreceive_setup_account): Removed.

svn path=/trunk/; revision=14318
2001-10-29 03:11:56 +00:00
4ca07463a0 More fixing of the license texts.
svn path=/trunk/; revision=14217
2001-10-27 18:21:05 +00:00
33fc2cca98 Check for a NULL provider. (build_dialogue): Check for invalid source
2001-10-25  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-send-recv.c (get_receive_type): Check for a NULL provider.
	(build_dialogue): Check for invalid source urls.
	(mail_receive_uri): Same.

svn path=/trunk/; revision=14096
2001-10-25 19:28:20 +00:00
8
02f36a07f6 call setup_send_data *after* we've setup the global dialogue thingy.
2001-10-18    <NotZed@Ximian.com>

        * mail-send-recv.c (build_dialogue): call setup_send_data *after*
        we've setup the global dialogue thingy.
        (mail_send_receive): Instead of using static local to check for
        re-running of dialogue, use a global, setup by build_dialogue.
        These fix #12335.
        (mail_send_receive): Dont assert dialogue is realized, it might
        still be being built, so only show if it is realized.

svn path=/trunk/; revision=13764
2001-10-18 19:55:02 +00:00
3
7f5f136bf3 Only build destination data if we have destination != NULL. Fixes crash of
2001-10-03    <NotZed@Ximian.com>

        * mail-send-recv.c (build_dialogue): Only build destination data
        if we have destination != NULL.  Fixes crash of bug #10835.

svn path=/trunk/; revision=13400
2001-10-04 00:58:44 +00:00
8d4f5ab1c8 Pass an empty flags argument to mail_tool_uri_to_folder.
2001-10-02  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-vfolder.c (vfolder_setup_do): Pass an empty flags argument
	to mail_tool_uri_to_folder.
	(vfolder_adduri_do): Same.

	* mail-session.c (get_folder): Pass an empty flags argument to
	mail_tool_uri_to_folder.

	* mail-send-recv.c (receive_get_folder): Pass an empty flags
	argument to mail_tool_uri_to_folder.

	* mail-ops.c (get_folder_get): Pass the flags to
	mail_tool_uri_to_folder.
	(mail_get_folder): Now takes a flags argument.
	(remove_folder_get): Pass an empty flags argument to
	mail_tool_uri_to_folder.
	(mail_send_message): Pass an empty argument flag to
	mail_tool_uri_to_folder.
	(transfer_messages_transfer): Same. Destination folder should
	already be created by this time.

	* folder-info.c (do_get_info): Pass an empty flags argument to
	mail_tool_uri_to_folder.

	* importers/evolution-mbox-importer.c (folder_created_cb): Pass
	the CREATE flag here too.
	(load_file_fn): And here.
	(load_file_fn): And here too.

	* importers/evolution-outlook-importer.c (load_file_fn): Pass the
	CREATE flag to mail_tool_uri_to_folder.

	* folder-browser.c (folder_browser_new): Pass an empty flags
	argument.
	(x_evolution_message_parse): Pass an empty flags argument to
	mail_tool_uri_to_folder.

	* component-factory.c (create_folder): Pass a CREATE flag to
	mail_get_folder here too.
	(owner_set_cb): And here.
	(xfer_folder): Shouldn't need the CREATE flag here, so not passing
	any flags.
	(destination_folder_handle_drop): Same.

	* mail-local.c (mail_local_store_add_folder): Pass a CREATE flag
	to mail_get_folder.
	(reconfigure_folder_reconfigure): Pass an empty flags argument to
	mail_tool_uri_to_folder.

	* mail-tools.c (mail_tool_uri_to_folder): Take a flags argument.
	(mail_tool_get_local_inbox): Pass an empty flags argument to
	mail_tool_uri_to_folder.

svn path=/trunk/; revision=13353
2001-10-02 22:01:03 +00:00
8d3a2ebd28 create storages for providers that are STORAGE and aren't EXTERNAL, rather
* component-factory.c (mail_load_storage_by_uri): create storages
	for providers that are STORAGE and aren't EXTERNAL, rather than
	"(STORAGE and REMOTE) or spool, maildir, or vfolder".
	(mail_remove_storage_by_uri): Use the same rule here (which makes
	it possible now to remove maildir and spool stores now, which
	weren't properly special-cased before). Remove some CamelException
	misuse.

	* mail-config.c (new_source_created): Fix up the broken INBOX-
	shortcut-generating assumption a little by only assuming that if
	you call camel_store_get_inbox(), that its full_name is the same
	as its path. (This happens to always be true for inboxes now, and
	will be always true by definition at some point in the future.)
	Now maildir stores get working Inbox shortcuts.

	* mail-send-recv.c (get_receive_type): If PROVIDER_IS_STORAGE
	then use SEND_UPDATE, if not, use SEND_RECEIVE.

	* mail-local.c (local_provider): The local provider is EXTERNAL.
	(The shell creates it.)
	(mail_local_reconfigure_folder): Allow reconfiguring between
	IS_LOCAL providers.

	* mail-accounts.c (news_delete): Don't need to check the provider
	flags here... we know nntp is a STORAGE.

svn path=/trunk/; revision=13277
2001-10-01 19:45:39 +00:00
1
b2e7adf9b8 Take a new argument 'done' that can callback when complete. Fixed callers
2001-09-21    <NotZed@Ximian.com>

        * mail-folder-cache.c (mail_note_store): Take a new argument
        'done' that can callback when complete.  Fixed callers
        appropriately.

        * mail-ops.c (mail_update_subfolders): Removed.  Isn't used
        anymore.

        * mail-send-recv.c (receive_update_got_store): Remove call to
        mail_update_subfolders.

svn path=/trunk/; revision=13044
2001-09-21 05:58:31 +00:00
0
586f083c3a Lock around hashtable/list manipulation. Also dont try scan vfolder_hash
2001-09-20    <NotZed@Ximian.com>

	* mail-vfolder.c (vfolder_register_source): Lock around
	hashtable/list manipulation.  Also dont try scan vfolder_hash if
	it hasn't been setup yet.
	(source_finalise): Lock around list access.
	(rule_changed): Lock around hash access.
	(context_rule_added): Lock around hash access.
	(context_rule_removed): "
	(rule_changed): Lock around list access.

	* mail-local.c (storage_listener_startup): Fix for api change.
	(local_storage_new_folder_cb): Dont skip over leading / in path.
	(local_storage_removed_folder_cb): ditto.

	* mail-folder-cache.c (create_folders): No longer pass prefix
	between recursive calls - we have the path in the folderinfo.
	(setup_folder): No longer take path arg, we get it from
	folderinfo.
	(mail_note_folder): No longer take path arg, we use
	folder->full_name to key the folder table.
	(mail_note_store): Consolidate note_store interface, pass storage
	or corba_storage to it.
	(mail_note_local_store): Removed.

	* mail-ops.c
	(add_unmatched_info): Scan for unmatched name and re-title.

svn path=/trunk/; revision=13023
2001-09-20 22:59:11 +00:00
add469da50 Here too.
2001-09-19  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-send-recv.c (receive_update_got_store): Here too.

	* component-factory.c (create_view): Call mail_note_store()
	instead of mail_scan_subfolders() here so that these folders get
	hooked up with the unread count code.

svn path=/trunk/; revision=12999
2001-09-19 23:49:11 +00:00
7
b490c7e42a Function to get the real receive tpe for ag iven url. IMAP/SPOOL/MAILDIR
2001-09-17    <NotZed@Ximian.com>

        * mail-send-recv.c (get_receive_type): Function to get the real
        receive tpe for ag iven url.  IMAP/SPOOL/MAILDIR types just update
        their info, dont download.
        (build_dialogue):
        (mail_receive_uri): Use function above to get the right receive
        type.

svn path=/trunk/; revision=12957
2001-09-18 21:44:47 +00:00
f711960d88 Revert my bar_destroy code and replace it with dialog_destroy instead.
2001-09-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-send-recv.c (build_dialogue): Revert my bar_destroy code
	and replace it with dialog_destroy instead.

svn path=/trunk/; revision=12832
2001-09-14 22:19:57 +00:00
9e1498b952 Marked string for translation. (new_source_created): Ditto.
* mail-config.c
(add_shortcut_entry): Marked string for translation.
(new_source_created): Ditto.

* mail-send-recv.c
(format_url): Marked strings for translation.
(build_dialogue): Ditto.

svn path=/trunk/; revision=12752
2001-09-10 23:17:25 +00:00
c738d45344 Attach to the destroy event for each progressbar using bar_destroyed as
2001-09-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-send-recv.c (build_dialogue): Attach to the destroy event
	for each progressbar using bar_destroyed as the callback.
	(bar_destroyed): New callback to unregister the timeout and set
	the send-info's bar member to NULL so we don't try to update a
	destroyed progressbar.

	* mail-callbacks.c (mail_generate_reply): Pass along the right
	string, this fixes bug #9518.

svn path=/trunk/; revision=12738
2001-09-10 19:44:43 +00:00
50bc54fcaf Fix capitalization. Fixes bug #7486.
2001-09-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-send-recv.c (build_dialogue): Fix capitalization. Fixes bug
	#7486.

svn path=/trunk/; revision=12591
2001-09-04 18:14:49 +00:00
2b55c2266b If the store is not connected, scan it's subfolders first.
2001-08-26  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-send-recv.c (receive_update_got_store): If the store is not
	connected, scan it's subfolders first.

	* mail-ops.c (report_status): Call va_end() so LinuxPPC doesn't
	have a caniption.

svn path=/trunk/; revision=12479
2001-08-27 02:56:45 +00:00
b45d088235 We don't need to escape this for printf'ing.
2001-08-22  Peter Williams  <peterw@ximian.com>

	* mail-send-recv.c (set_send_status): We don't need to escape this
	for printf'ing.

svn path=/trunk/; revision=12394
2001-08-22 21:26:29 +00:00
1b72d81e55 Treat the spool provider like IMAP: update instead of performing an
2001-08-21  Peter Williams  <peterw@ximian.com>

	* mail-send-recv.c (build_dialogue): Treat the spool provider like IMAP:
	update instead of performing an explicit receive.

svn path=/trunk/; revision=12344
2001-08-21 16:36:00 +00:00
e86531cbd1 Break most of the functionality into a separate function.
2001-08-13  Peter Williams  <peterw@ximian.com>

	* mail-send-recv.c (mail_autoreceive_setup): Break most of the
	functionality into a separate function.
	(autoreceive_setup_list): Rename of mail_autoreceive_setup that is
	passed a list of accounts.
	(mail_autoreceive_setup_account): New function. Set up a single
	account using autoreceive_setup_account.

	* mail-send-receive.h: Prototype mail_autoreceive_setup_account.

	* mail-account-gui.c (mail_account_gui_save): Instead of setting
	up all accounts, set up only this source with the new
	mail_autoreceive_setup_account.

	* mail-config-druid.c (druid_finish): ... which means we can call
	mail_config_add_account() after the MailConfigAccount has been
	created by mail_account_gui_save() because we no longer need the
	account to be in the list for mail_autoreceive_setup()

	* mail-config.c (mail_config_add_account): ... which means we can
	possibly add a shortcut to the account's sources's Inbox here.
	(maybe_add_shortcut): New function. If the store is a storage, add
	a shortcut to its inbox. Hope that /INBOX exists.
	(add_shortcut_entry): New function. Creates a shortcut if it doesn't
	yet exist.

2001-08-13  Peter Williams  <peterw@ximian.com>

	* mail-account-gui.c (service_complete): Take account of the fact that
	service->path may be NULL (if service is a transport.)

	* mail-config-druid.c (druid_finish): Bleah, bugfix in case the
	account has no source.

svn path=/trunk/; revision=11961
2001-08-13 21:23:04 +00:00
2dbc89d3fc Free the dbkey if we found the config option.
2001-08-07  Not Zed  <NotZed@Ximian.com>

        * mail-config.c (mail_config_get_thread_list): Free the dbkey if
        we found the config option.

        * mail-send-recv.c (build_dialogue): Free the pretty_url after
        we've used it.
        (free_send_info): Free the 'what' string.
        (receive_done): Use free_send_info to make sure we free
        everything.

        * mail-ops.c (send_queue_free): Unref the filter driver when done.
        (send_queue_send): Unref the driver here too, force any long
        taking operations to run in our thread.

svn path=/trunk/; revision=11777
2001-08-08 09:44:16 +00:00
e9adce66e5 [ Use bonobo_object_unref on the storage since it's a bonobo object. ]
2001-08-07  Peter Williams  <peterw@ximian.com>

	[ Use bonobo_object_unref on the storage since it's a bonobo object. ]

	* mail-send-recv.c (receive_update_got_store): Same.

	* mail-ops.c (do_update_subfolders): Same.

svn path=/trunk/; revision=11752
2001-08-07 23:28:16 +00:00
3c0bd9186e handle null paths in the dialog so that we avoid printing NULL strings
2001-08-02  Larry Ewing  <lewing@ximian.com>

	* mail-send-recv.c (format_url): handle null paths in the dialog
	so that we avoid printing NULL strings

svn path=/trunk/; revision=11599
2001-08-02 21:24:49 +00:00
77316d782f Add EVOLUTION_BUTTONSDIR to get to some different icons.
2001-08-02  Not Zed  <NotZed@Ximian.com>

        * Makefile.am (INCLUDES): Add EVOLUTION_BUTTONSDIR to get to some
        different icons.

        * mail-ops.c (mail_sync_folder): Queue the folder sync operation,
        rather than running it in parallel.

        * mail-send-recv.c: applies anna's patch for prettier send-recv
        dialogue.
        (parse_url): Renamed to format_url, fixed callers.
        (format_url): Use camel_url_free instead of g_free, also handle
        case where we have no host (use path instead).
        (build_dialogue): Cleaned up some whitespace.
        (build_dialogue): Create the label directly with the right text,
        dont set any text in the progress bar, and save the label into the
        info struct for later updating.
        (struct _send_info): Added 'status' the label with the status
        string.
        (operation_status_timeout):
        (receive_done):
        (receive_cancel): Set the status label, not the progress format
        text.
        (hide_send_info): NULL out status too.
        (mail_receive_uri): Init status.
        (free_folder_info): Initiate a folder sync here, so we can ...
        (free_send_data): ... Remove the awful hack of iterating through
        bonobo controls to sync all open folders.
        (free_send_data): Initiate a sync of the inbox too.
        (build_dialogue): Remove set_alignment on the icon, its not a
        gtkmisc object.

svn path=/trunk/; revision=11566
2001-08-02 06:13:26 +00:00
5bd925e997 Implement this, based on code that used to be in mail-ops.c
* mail-session.c (get_filter_driver): Implement this, based on
	code that used to be in mail-ops.c

	* mail-ops.c (mail_load_filter_context, setup_filter_driver):
	Moved into MailSession::get_filter_driver.
	(filter_get_folder): Moved to mail-session.c
	(mail_filter_folder, mail_filter_on_demand, mail_fetch_mail,
	mail_send_mail, mail_send_queue): Remove FilterContext args, use
	camel_session_get_filter_driver.

	* mail-send-recv.c (mail_send_receive, mail_receive_uri):
	Remove FilterContexts

svn path=/trunk/; revision=10682
2001-07-02 15:04:27 +00:00
550e7d5613 The e_iterator_get() returns a gconstpointer and we need a non-const
2001-06-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-send-recv.c (free_send_data): The e_iterator_get() returns
	a gconstpointer and we need a non-const BonoboControl so cast it.

	* mail-account-gui.c (mail_account_gui_new):
	gui->check_html_signature is GtkToggleButton not a GtkCheckButton.

	* folder-info.c: Added some #include's to supress warnings.

svn path=/trunk/; revision=10574
2001-06-28 20:19:41 +00:00
57db15334b sync folders after we've gotten mail
2001-06-25  jacob berkman  <jacob@ximian.com>

	* mail-send-recv.c (free_send_data): sync folders after we've
	gotten mail

	* folder-browser-factory.c (control_activate): set the ui
	component on the folder browser
	(control_activate): update the view preview item
	(control_deactivate): don't sync the folder here
	(control_deactivate): unset the ui component of the folder browser

	* mail-callbacks.c (toggle_flags): stuff from jleach to add an
	importance keybinding
	(mark_as_important): ditto
	(toggle_as_important): again

	* mail-config.c (mail_config_get_show_preview):
	(mail_config_set_show_preview): basically a copy of
	get_thread_list() but for the preview pane

	* folder-browser.c (folder_browser_destroy): unref the our ui
	component
	(folder_browser_set_ui_component): new function for setting the ui
	component
	(save_cursor_pos):
	(set_cursor_pos): try to show the selected row when the preview
	pane is shown
	(folder_browser_set_message_preview): implement
	(folder_browser_toggle_preview): toggle the preview (duh)
	(on_key_press): add keybindings for marking as important (!), and
	hiding the preview pane (q)
	(etree_key): clean up a little bit, and make enter either show the
	preview pane or open the message
	(fb_resize_cb): only save the paned size if the preview is alread
	shown
	(folder_browser_gui_init): pass ourselves to fb_resize_cb
	(on_message_selected): only add the timeout if the preview is
	shown

svn path=/trunk/; revision=10491
2001-06-25 21:12:10 +00:00
72be879a27 New file, started by Ettore, finished by me, to implement the
* mail-offline-handler.c: New file, started by Ettore, finished by
	me, to implement the GNOME_Evolution_Offline interface.

	* Makefile.am (evolution_mail_SOURCES): Add
	mail-offline-handler.[ch]

	* mail-ops.c (mail_store_set_offline): Set a store online or
	offline.

	* mail-send-recv.c (auto_timeout): Don't run auto-check-for-mail
	while the session is offline.

	* component-factory.c (component_fn): Set up offline handler.

svn path=/trunk/; revision=9739
2001-05-09 22:01:42 +00:00
0a9bafb949 Fix for #2253 (search names not translated), mail-search i18n fixes.
2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* searches.xml: replace title> with _title>. Part of fix to #2253.

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

	* mail-search.c: convert search entry to utf8.

	* mail-local.c: d() debugging message.

	* mail-send-recv.c: replace " ..." with "..."

	* Makefile.am: removed EVOLUTION_VERSION.

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

	* POTFILES.in: add mail/mail-search.c

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

	* misc/e-search-bar.c (add_dropdown), (set_option): first try to
	translate, then if not suceeded -- convert from utf8. This handles
	cases when menuitem needs to be translated (it is passed as N_()), or is
	utf8 search title. However you cannot have a search like "Folders" -- it
	is translated. Part of fix for #2253.

	* misc/e-filter-bar.c: d() debugging strings. Use E_FILTERBAR_ADVANCED
	macro instead of own "Advanced ..." for consistency.

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

	* filter-rule.c (xml_decode): allow "_title" in user rules. translate
	them and encode to utf8.
	(get_rule_part_widget): do not call gettext on part->title. It is always
	translated already.

svn path=/trunk/; revision=9706
2001-05-08 00:26:58 +00:00
b50306c380 use system = EVOLUTION_DATADIR "/file" instead of g_strdup_printf. Rename
2001-04-22  Gediminas Paulauskas <menesis@delfi.lt>

	* folder-browser.c, mail-autofilter.c, mail-callbacks.c, mail-ops.c,
	mail-summary.c, mail-vfolder.c: use system = EVOLUTION_DATADIR "/file"
	instead of g_strdup_printf. Rename userrules to user (and system) to be
	consistent.

	* mail-send-recv.c: set window icon to send-receive.xpm

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

	* mail-summary.c: translate "Mail summary".

svn path=/trunk/; revision=9490
2001-04-21 22:52:56 +00:00
546128c8d9 Remove some redundant LIBS variables... purify complained that the command
* Makefile.am (evolution_mail_LDADD): Remove some redundant LIBS
        variables... purify complained that the command line was too
        long. :-}

        * mail-account-gui.c: Plug leaks.

        * mail-display.c (on_url_requested): close the html stream on
        error too.

        * mail-ops.c (fetch_mail_fetch): Move a line around that probably
        doesn't affect anything, but it's correct.

        * session.c (auth_callback): Plug leak.

        * mail-send-recv.c (receive_status): Initialize "now".

svn path=/trunk/; revision=9303
2001-04-13 21:42:26 +00:00
57574f0be3 Cleaned up #includes. Remove unneccesary includes of <gnome.h>,
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* *.*: Cleaned up #includes. Remove unneccesary includes of
	<gnome.h>, <gtk/gtk.h>, <bonobo.h> and replaced with more
	fine grained headers where needed. Also marked a bunch of
	strings for translations and added some missing prototypes.

svn path=/trunk/; revision=9025
2001-03-29 20:53:17 +00:00
88668a60b3 Doh! This was storing "struct _folder_info"s in the cache and then trying
* mail-send-recv.c (receive_get_folder): Doh! This was storing
	"struct _folder_info"s in the cache and then trying to read them
	back as CamelFolders. Fixicate. Fixes the "crash with 2 POP
	accounts" bug.

svn path=/trunk/; revision=9021
2001-03-29 19:15:54 +00:00
31df1c2d55 Use gnome-dialog-close instead of object_unref, for some reason it doesn't
2001-03-27  Not Zed  <NotZed@Ximian.com>

        * mail-send-recv.c (receive_done): Use gnome-dialog-close instead
        of object_unref, for some reason it doesn't like being unref'd
        with a refcount of 1, _who knows_.  Gets rid of that refcount
        warning on get mail.

svn path=/trunk/; revision=8976
2001-03-27 12:52:31 +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
f01589262c Fixes for changes to search bar. (search_save): Removed. (search_full):
2001-03-01  Not Zed  <NotZed@Ximian.com>

        * folder-browser.c (folder_browser_search_menu_activated): Fixes
        for changes to search bar.
        (search_save): Removed.
        (search_full): Removed.
        (search_full_clicked): Removed.
        (folder_browser_search_option_items[]): Removed.
        (folder_browser_search_query_changed): Changed for search bar
        changes.
        (folder_browser_clear_search): Removed.

        * mail-vfolder.c (vfolder_clone_rule): New function to clone a
        filter/search rule into a matching vfolder rule.

        * mail-send-recv.c (mail_receive_uri): Setup a timeout for status
        updates.
        (build_dialogue): Setup timeout id for status updates.
        (operation_status_timeout): New function to set the status via a
        timeout.
        (receive_done): Remove the timeout handler if we need to.
        (operation_status):
        (receive_status): Just update the info, and let the timeout
        handler update the gui.
        (do_free_status):
        (do_show_status): Removed gui thread status message processing.

2001-02-28  Not Zed  <NotZed@Ximian.com>

        * folder-browser.c (folder_browser_config_search): New function to
        configure the FilterRule for the search mechanism.

2001-02-27  Not Zed  <NotZed@Ximian.com>

        * folder-browser.c (folder_browser_gui_init): Setup the search bar
        as a filterbar.
        (got_folder): Set the whole search bar sensitive or not based on
        the search capability of the folder.

        * folder-browser.h: Changed to use efilterbar instead of esearchbar.

svn path=/trunk/; revision=8438
2001-03-01 00:58:16 +00:00
0af3e54520 Only allow downloading if the source is enabled at this time.
2001-02-23  Not Zed  <NotZed@Ximian.com>

	* mail-send-recv.c (build_dialogue): Only allow downloading if the
	source is enabled at this time.
	(mail_autoreceive_setup): Check for enabled sources before setting
	up autodownload.

	* mail-vtrash.c
	(get_trash_free): Free store if we have it.
	(get_trash_got): Move vtrash add into here, so we execute in the
	right thread.

svn path=/trunk/; revision=8354
2001-02-22 23:25:40 +00:00
778498a42d Dont do the thaw/freeze set here. (update_folders): "
2001-02-16  Not Zed  <NotZed@Ximian.com>

        * mail-send-recv.c (receive_status): Dont do the thaw/freeze set here.
        (update_folders): "

        * mail-vfolder.c (vfolder_refresh): Setup the virtual
        'unmatched' folder by default.
        (vfolder_uri_to_folder): HAndle UNMATCHED folder specially, it has
        no explicit sources.

svn path=/trunk/; revision=8277
2001-02-19 21:00:10 +00:00
fa6e5a7b97 Not sure it makes any difference, but lets ref the folder while the hash
2001-02-16  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-send-recv.c (receive_get_folder): Not sure it makes any
	difference, but lets ref the folder while the hash table is locked
	rather than after we unlock it.

svn path=/trunk/; revision=8260
2001-02-17 01:30:55 +00:00
cd101b3ffc only free driver, if set. (fetch_mail_fetched): Unref the driver here, so
2001-02-09  Not Zed  <NotZed@Ximian.com>

        * mail-ops.c (filter_folder_free): only free driver, if set.
        (fetch_mail_fetched): Unref the driver here, so it can cleanup
        before we call the 'done' callback.

        * component-factory.c (owner_set_cb): Add setup for mail
        autoreceive stuff.

        * mail-send-recv.c (free_info_data): Free the send info's from teh
        active hash, not the running list.
        (receive_done): As we finish downloads, remove them and clean them
        up, and also close the window.
        (mail_autoreceive_setup): New function to setup & maintain
        automatic download stuff.

svn path=/trunk/; revision=8134
2001-02-09 01:48:04 +00:00
490ce976f1 Init active_downloads hash if it hasn't been yet.
2001-02-08  Not Zed  <NotZed@Ximian.com>

        * mail-send-recv.c (mail_send_receive):
        (mail_receive_uri):  Init active_downloads hash if it hasn't been yet.

svn path=/trunk/; revision=8098
2001-02-08 02:03:56 +00:00
4459154549 Handle internal camel status return. (receive_done): Remove active
2001-02-07  Not Zed  <NotZed@Ximian.com>

        * mail-send-recv.c (operation_status): Handle internal camel status return.
        (receive_done): Remove active download when done.
        (mail_receive_uri): Initiate download of a single source, with no gui.
        (build_dialogue): Mark any new items as real active downloads.
        (do_show_status): Make the progress bar optional.

2001-02-06  Not Zed  <NotZed@Ximian.com>

        * mail-send-recv.c: camel_cancel->camel_operation.

        * mail-ops.old.c: camel_cancel->camel_operation.

        * mail-ops.c: camel_cancel->camel_operation.

        * mail-mt.c: camel_cancel->camel_operation.

        * mail-callbacks.c (stop_threads): camel_cancel->camel_operation.

        * mail-mt.h: CamelCancel->CamelOperation.

svn path=/trunk/; revision=8096
2001-02-08 01:45:37 +00:00
8634c7a4ec Moved bonobo includes from the .c to the .h. Include
2001-02-05  Christopher James Lahey  <clahey@ximian.com>

	* evolution-mbox-importer.c, evolution-mbox-importer.h: Moved
	bonobo includes from the .c to the .h.  Include
	evolution-mbox-importer.h in evolution-mbox-importer.c.

	* evolution-outlook-importer.c, evolution-outlook-importer.h:
	Moved bonobo includes from the .c to the .h.  Include
	evolution-outlook-importer.h in evolution-outlook-importer.c.

	* mail-callbacks.c: Include mail-send-recv.h.

	* mail-local.c (mail_local_lookup_folder): Cast local_store to
	CAMEL_STORE.

	* mail-mt.c (mail_msg_cleanup): Make this function static.

	* mail-send-recv.c, mail-send-recv.h: Created mail_send_recv.h.
	Included it in mail-send-recv.c.  Added a #include
	<libgnomeui/gnome-window-icon.h>.
	(mail_send_receive): Added a cast.

	* mail-summary.c (new_folder_cb, removed_folder_cb,
	create_summary_view): Cast the source func in calling g_idle_add.

svn path=/trunk/; revision=8002
2001-02-05 23:04:08 +00:00
c051d7fa52 Cleaned up so we dont add an unecessary level of indenting.
2001-02-02  Not Zed  <NotZed@Ximian.com>

        * mail-send-recv.c (mail_send_receive): Cleaned up so we dont add
        an unecessary level of indenting.

        * message-list.c (ml_tree_value_at): For collapsed tree nodes,
        scan the collapses nodes for the unread and status information.
        Since we dont really have fake nodes anymore.

2001-01-30  Ian Campbell  <ijc25@cam.ac.uk>

        * message-list.c: Add support for new icons for being
        read/unread for fake root messages on threads.

svn path=/trunk/; revision=7942
2001-02-02 03:06:04 +00:00
0c8839ec4e Fix bug in autodetected mboxes
Only allow one send and recv dialog at once.

svn path=/trunk/; revision=7917
2001-01-30 19:09:07 +00:00
aad4202594 Debug function to compare the tree we think we have, after an incremental
2001-01-29  Not Zed  <NotZed@Ximian.com>

        * message-list.c (tree_equal): Debug function to compare the tree
        we think we have, after an incremental update.
        (build_tree): Check the tree after we've built it.

        * mail-mt.c (mail_get_password): If we are being called from the
        main gui thread, then just call the dialogue directly.  Ideally we
        dont want this anyway but lets handle the case nicely.
        (mail_get_password): Try locking around the password request, to
        single-queue any password requests.
        (mail_msg_init): Push an exit handler to clean it up on completion.

        * mail-send-recv.c (receive_update_got_store): New function called
        when the store has been retrieved asynchronously.
        (mail_send_receive): Get the store asynchronously.  This was
        causing problems where the password dialogue would try and be
        called from the main thread via a message.

        * mail-ops.c (mail_get_store): New function to get a store
        (a)synchronously.  More or less taken from subscribe-dialog, which
        i will remove later.
        (mail_scan_subfolders): Try running the scan subfolder thing
        asynchronously, to help startup time.  Not sure if this will work,
        but presumably the shell can handle the folders appearing later
        ok.

svn path=/trunk/; revision=7886
2001-01-29 09:33:15 +00:00
09e274295f The following fixes seem to clear up the problem of new mail not being
2001-01-25  Jeffrey Stedfast  <fejj@ximian.com>
	The following fixes seem to clear up the problem of new mail not
	being shown in the Inbox and/or other folders where mail had been
	delivered.

	* mail-send-recv.c (build_dialogue): Freeze the inbox.
	(receive_get_folder): Freeze folders before dumping them into the
	hash table.
	(free_folder_info): Thaw the folder.
	(free_info_data): Thaw the Inbox.

svn path=/trunk/; revision=7824
2001-01-25 21:48:56 +00:00
811ce582d4 Fix the subject match expression, which was missing a closing ).
2001-01-24  Not Zed  <NotZed@Ximian.com>

        * folder-browser.c (search_string[]): Fix the subject match
        expression, which was missing a closing ).

        * mail-send-recv.c (do_show_status): Escape any % signs in the
        string before setting the format string.

svn path=/trunk/; revision=7797
2001-01-25 02:05:34 +00:00
27c3aaec83 Make sure the source->url is not NULL (which is perfectly valid).
2001-01-23  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-send-recv.c (build_dialogue): Make sure the source->url is
	not NULL (which is perfectly valid).
	(mail_send_receive): Where oh where should my prototype be?
	(receive_get_folder): Make sure to ref the folder before you add
	it to the hash table.

	* openpgp-utils.c:
	* mail-crypto.c: A few minor tweaks.

svn path=/trunk/; revision=7757
2001-01-23 21:50:24 +00:00