Commit Graph

1446 Commits

Author SHA1 Message Date
e13e11965b Helps if I spell "received" correctly.
2001-06-26  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser.c (my_folder_browser_init): Helps if I spell
	"received" correctly.

	* mail-config.c (mail_config_set_thread_list): If the value is
	already in the hash table, first remove it before setting the new
	value so we don't leak.
	(mail_config_set_show_preview): Same.

svn path=/trunk/; revision=10510
2001-06-26 21:01:41 +00:00
03d2f262c0 Don't pop up a progress dialog to say "I already finished this a while
* mail-mt.c (op_status_timeout): Don't pop up a progress dialog to
	say "I already finished this a while ago".

	* component-factory.c (storage_create_folder): Pass the path
	prefix to folder_created so it can add it to the folder tree in
	the right place.

	* mail-callbacks.c (folder_created): Take a path prefix.

svn path=/trunk/; revision=10508
2001-06-26 19:13:24 +00:00
091402fafb make ettore stop complaining so i can get back to work
2001-06-26  jacob berkman  <jacob@ximian.com>

	* mail-config.c (mail_config_get_show_preview): make ettore stop
	complaining so i can get back to work

svn path=/trunk/; revision=10504
2001-06-26 17:15:34 +00:00
0601af0635 No longer returns a gboolean and also takes a CamelException.
2001-06-26  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c (message_rfc822_dnd): No longer returns a
	gboolean and also takes a CamelException.
	(destination_folder_handle_drop): Do better error checking.

	* folder-browser.c (my_folder_browser_init): Connect to the
	tree-drag-data-recieved signal.
	(message_list_drag_data_recieved): New function that handles the
	recieving end of the DnD event.
	(x_evolution_message_parse): New convenience function to parse the
	x-evolution-message type so that the cut/paste and DnD code can
	share it.
	(selection_received): Use x_evolution_message_parse().

svn path=/trunk/; revision=10502
2001-06-26 16:44:08 +00:00
04ae8da716 Read in the default show_preview value. (mail_config_write_on_exit): Save
2001-06-26  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (config_read): Read in the default show_preview
	value.
	(mail_config_write_on_exit): Save the default show_preview value
	as well as saving the individual settings for each URI that has
	been changed.

svn path=/trunk/; revision=10500
2001-06-26 15:09:06 +00:00
34d8df373a Check to make sure that clipboard_selection is non-NULL before we
2001-06-25  Joe Shaw  <joe@ximian.com>

	* folder-browser.c (invisible_destroyed): Check to make sure that
	clipboard_selection is non-NULL before we g_byte_array_free() it.

svn path=/trunk/; revision=10495
2001-06-25 23:06:14 +00:00
ff400deef2 tyop
svn path=/trunk/; revision=10492
2001-06-25 21:13:40 +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
b655dc216e Unref the invisible window that we use for slections.
2001-06-25  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser.c (folder_browser_destroy): Unref the invisible
	window that we use for slections.
	(folder_browser_class_init): Init the clipboard_atam type.
	(selection_get): New
	(selection_clear_event): New
	(selection_received): New
	(folder_browser_copy): New function to copy the message-list
	selection.
	(folder_browser_cut): New function to cut the message-list
	selection.
	(folder_browser_paste): New function to paste the message-list
	selection.
	(my_folder_browser_init): Initialize `invisible` if it's NULL else
	ref it - also set some signals on it.

	* folder-browser-factory.c: Added verbs for cut/copy/paste.

svn path=/trunk/; revision=10489
2001-06-25 19:48:02 +00:00
657ab7270a Fixes here for removing folders.
2001-06-23  Jason Leach  <jleach@ximian.com>

	* mail-local.c (local_storage_removed_folder_cb): Fixes here for
	removing folders.

	* mail-ops.c (remove_folder_get): Some fixes in here too.

svn path=/trunk/; revision=10445
2001-06-23 18:49:20 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
d723632f9f Duh, we saved the charset as "default_charset", not "charset" - no wonder
2001-06-22  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (config_read): Duh, we saved the charset as
	"default_charset", not "charset" - no wonder the correct charset
	menu item was never being set.

svn path=/trunk/; revision=10399
2001-06-22 20:11:30 +00:00
c7fa0c5ad1 Temporarily remove the Bcc header before sending the message.
2001-06-21  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (mail_send_message): Temporarily remove the Bcc
	header before sending the message.

svn path=/trunk/; revision=10385
2001-06-21 21:25:55 +00:00
c17467d7d5 Remove empty "name" property setting from the popup control.
2001-06-21  Jon Trowbridge  <trow@ximian.com>

        * mail-display.c (html_button_press_event): Remove empty "name"
        property setting from the popup control.

svn path=/trunk/; revision=10373
2001-06-21 18:48:09 +00:00
1cb59bd641 Allow the message to be sent even if there are no To recipients but only
2001-06-21  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message): Allow the message to be
	sent even if there are no To recipients but only as long as there
	are other recipients defined.

svn path=/trunk/; revision=10363
2001-06-21 17:16:18 +00:00
09b9a3a4da Fix bug #3409: Removing an EvolutionStorage from the shell's folder
tree.

svn path=/trunk/; revision=10362
2001-06-21 16:03:26 +00:00
81f97ede63 More than on accel key is a tad confusing.
2001-06-20  Kjartan Maraas  <kmaraas@gnome.org>

	* folder-browser.c: More than on accel key is a tad
	confusing.

svn path=/trunk/; revision=10328
2001-06-20 12:07:08 +00:00
8a7a3f7770 #include "folder-browser-factory.h"
2001-06-19  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c: #include "folder-browser-factory.h"

	* component-factory.c (mail_remove_storage): New function to
	remove an EvolutionStorage.

	* mail-accounts.c (mail_delete): Remove the storage from the
	folder-tree.
	(news_delete): Same.

svn path=/trunk/; revision=10304
2001-06-19 20:39:12 +00:00
dddc124a9d Accept text/uri-list mime types - this allows us to drag messages from
2001-06-19  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c (destination_folder_handle_drop): Accept
	text/uri-list mime types - this allows us to drag messages from
	Nautilus into an Evolution folder.

	* folder-browser.c (message_list_drag_data_get): Do cleanup and
	better error handling.

svn path=/trunk/; revision=10296
2001-06-19 18:49:01 +00:00
ee539a7230 Properly clean up the movemail files when no mail was received.
2001-06-19  Jon Trowbridge  <trow@ximian.com>

        * mail-tools.c (mail_tool_do_movemail): Properly clean up the
        movemail files when no mail was received.

svn path=/trunk/; revision=10290
2001-06-19 15:37:27 +00:00
7364da6315 (write_field_row_begin): hmm, use just bold &nbsp; as it looks
better

svn path=/trunk/; revision=10288
2001-06-19 14:23:15 +00:00
131c4514f7 add column with &nbsp; between header name and value
2001-06-19  Radek Doulik  <rodo@ximian.com>

	* mail-format.c (write_field_row_begin): add column with &nbsp;
	between header name and value

svn path=/trunk/; revision=10286
2001-06-19 14:07:04 +00:00
26e2b46cf0 Use a nice switch statement and use the new enum values.
2001-06-18  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c (destination_folder_handle_drop): Use a nice
	switch statement and use the new enum values.

	* mail-callbacks.c (list_add_addresses): Now takes a hash table of
	already-used-recipients so that we don't get duplicates.
	(mail_generate_reply): Pass in a rcpt_hash argument to
	list_add_addresses(). These changes fix bug #1639.

svn path=/trunk/; revision=10282
2001-06-18 22:28:57 +00:00
cbb3f733b3 Now takes a hash table of already-used-recipients so that we don't get
2001-06-18  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (list_add_addresses): Now takes a hash table of
	already-used-recipients so that we don't get duplicates.
	(mail_generate_reply): Pass in a rcpt_hash argument to
	list_add_addresses(). These changes fix bug #1639.

svn path=/trunk/; revision=10278
2001-06-18 20:12:19 +00:00
464a51d294 Remove DB3_LDADD
* Makefile.am (evolution_mail_LDADD): Remove DB3_LDADD

svn path=/trunk/; revision=10276
2001-06-18 20:11:27 +00:00
60fe445b0c Change the drop-type "x-evolution-dnd" to "x-evolution-message" since we
2001-06-18  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c: Change the drop-type "x-evolution-dnd" to
	"x-evolution-message" since we want to be able to DnD more than
	one data type ;-)

	* folder-browser.c: Change supported DnD drop types to disclude
	URI_LIST as that seems to crash Nautilus and seems overly
	complicated. Since I am going to be supporting message/rfc822,
	hopefully Nautilus can handle that or else maybe something like
	text/plain.
	(message_list_drag_data_get): Remove the code for URI_LIST.

svn path=/trunk/; revision=10264
2001-06-18 16:06:34 +00:00
588e18f202 If we have a fragment in the url, use that as the folder name, and not the
2001-06-14  Not Zed  <NotZed@Ximian.com>

        * mail-tools.c (mail_tool_uri_to_folder): If we have a fragment in
        the url, use that as the folder name, and not the path component.

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

        * component-factory.c (mail_load_storages): Added temp hack to let
        spool providers show up in the list.

svn path=/trunk/; revision=10263
2001-06-18 15:46:11 +00:00
3be10cec05 (mail_format_raw_message): Add padding to match the formatted
display.

svn path=/trunk/; revision=10262
2001-06-18 14:41:45 +00:00
65a3be6b57 Allow user's to "copy" drag & drop rather than just "move".
2001-06-16  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser.c (my_folder_browser_init): Allow user's to
	"copy" drag & drop rather than just "move".

svn path=/trunk/; revision=10258
2001-06-16 22:42:09 +00:00
7395fd6ba1 Implemented.
2001-06-15  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c (destination_folder_handle_drop): Implemented.

	* message-list.c (message_list_construct): Don't connect to the
	DnD signals here.
	(message_list_drag_data_get): Removed.
	(add_uid): Removed.

	* folder-browser.c (my_folder_browser_init): Connect to DnD signals.
	(message_list_drag_data_get): Implemented.

svn path=/trunk/; revision=10257
2001-06-15 21:40:12 +00:00
e088dbce22 Fixed misuse of an uninitialized variable.
2001-06-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (mail_send_message): Fixed misuse of an uninitialized
	variable.

	* component-factory.c (destination_folder_handle_drop): Implemented.

	* mail.h: Added prototype for evolution_folder_info_factory_init.

	* mail-ops.c (mail_do_transfer_messages): Now takes a const char*
	as the dest_uri. This works better all around since we strdup'd
	the string anyway.

svn path=/trunk/; revision=10255
2001-06-15 19:34:54 +00:00
b461c51f7c We can't output "<html>" and "</html>" here because it gets called
* mail-format.c (mail_format_mime_message): We can't output
	"<html>" and "</html>" here because it gets called recursively to
	display message/rfc822 subparts.

	* mail-display.c (mail_display_redisplay): Move rodo's html header
	changes from mail_format_mime_message to here.

svn path=/trunk/; revision=10252
2001-06-15 16:55:10 +00:00
1fb67eaca4 Updated to reflect changes to mail_config_[g,s]et_thread_list().
2001-06-14  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser.c (got_folder): Updated to reflect changes to
	mail_config_[g,s]et_thread_list().
	(folder_browser_toggle_threads): Same.

	* folder-browser-factory.c (control_activate): Updated to reflect
	changes to mail_config_[g,s]et_thread_list().

	* mail-config.c (mail_config_write_on_exit): Do cleanup when we're
	done.
	(mail_config_set_thread_list): Send in a URI so we can save the
	state on a per-folder basis.
	(mail_config_get_thread_list): Send in a URI so we can retrieve
	the state on a per-folder basis.

	* component-factory.c: Setup the accepted_dnd_types. Also added
	skeleton code for DnD.

svn path=/trunk/; revision=10240
2001-06-14 22:08:54 +00:00
1072bbd659 Add Reply-to-List bonobo verbs.
2001-06-14  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-factory.c: Add Reply-to-List bonobo verbs.

	* folder-browser.c: Add Reply-to-List menu items.

	* mail-callbacks.c (mail_reply): Use an enum for specifying the
	reply mode, becaus enow we can reply-to-list.
	(reply_to_list): Implement.
	(reply_to_sender): Use REPLY_SENDER.
	(reply_to_all): Use REPLY_ALL.
	(mail_generate_reply): Handle the different modes.

svn path=/trunk/; revision=10232
2001-06-14 19:05:39 +00:00
ff61cc4f39 Remove folder-info.h until iain checks it in
2001-06-12  JP Rosevear  <jpr@ximian.com>

	* Makefile.am: Remove folder-info.h until iain checks it in

svn path=/trunk/; revision=10201
2001-06-12 20:47:02 +00:00
0d6e9d6a8d Setup default spool location same as for mbox mail retrieval.
2001-06-12  Not Zed  <NotZed@Ximian.com>

        * mail-account-gui.c (source_type_changed): Setup default spool
        location same as for mbox mail retrieval.

svn path=/trunk/; revision=10199
2001-06-12 14:32:13 +00:00
bb2fab7208 fix some commands to match the ui file again.
* folder-browser-factory.c: fix some commands to match the ui file
	again.

svn path=/trunk/; revision=10165
2001-06-08 21:37:30 +00:00
d09d496299 Committing the new My Evolution.
svn path=/trunk/; revision=10163
2001-06-08 20:47:52 +00:00
da6c1c4d2e Reattach X-Evolution-Account information to the message after sending it.
2001-06-08  Jon Trowbridge  <trow@ximian.com>

	* mail-ops.c (mail_send_message): Reattach X-Evolution-Account
        information to the message after sending it.  This way it can
        be used to set the identity properly if we later Resend the
        message.

svn path=/trunk/; revision=10162
2001-06-08 20:26:13 +00:00
4677f26be4 If you had multiple accounts that used mboxes, and if you received mail in
2001-06-08  Jon Trowbridge  <trow@ximian.com>

	* mail-tools.c (mail_tool_get_local_movemail_path): If you had
	multiple accounts that used mboxes, and if you received mail in N
	of those accounts, you would get N copies of each of your e-mail
	messages.  This is because everything was being dumped into one
	big file by movemail, and the filters would run on that file N
	times.  To work around this, each mbox account now gets its own
	distinct temporary movemail file.

svn path=/trunk/; revision=10155
2001-06-08 16:38:05 +00:00
4732637722 Added an argument, so that the original source URI of the mbox can be
2001-06-07  Jon Trowbridge  <trow@ximian.com>

        * camel-filter-driver.c (camel_filter_driver_filter_mbox): Added
        an argument, so that the original source URI of the mbox can be
        passed in.  This is needed because this function is called
        post-movemail, so we are never reading from the original mbox
        anymore.  Without the original mbox URI, the X-Evolution-Source
        tag gets set incorrectly and filter-on-source will fail to work.
        (camel_filter_driver_filter_message): Also take an extra arg
        for the original source URI.  It is the original URI, not the
        source URI, that is used for filtering and for setting the
        X-Evolution-Source tag.

2001-06-07  Jon Trowbridge  <trow@ximian.com>

        * mail-ops.c (fetch_mail_fetch): Pass the original source URI
        to camel_filter_driver_filter_mbox.
        (mail_send_message): Pass NULL as the orginal source URI
        to camel_filter_driver_filter_message.

svn path=/trunk/; revision=10152
2001-06-08 00:12:52 +00:00
f15bb6a3eb Check that the chain of deferences in gui->account->source->url is safe.
2001-06-06  Jon Trowbridge  <trow@ximian.com>

	* mail-account-gui.c (source_type_changed): Check that the chain
	of deferences in gui->account->source->url is safe.  This was
	causing a segfault when adding a new account if any of the
	existing accounts had their sources set to "None".
	(i.e. gui->account->source == NULL)

	* mail-accounts.c (load_accounts): Check that account->source !=
	NULL before dereferencing it.
	(load_accounts): The selection is cleared when the account clist
	is rebuilt (say after a call to add), but no unselect event is
	emitted.  Yes, the clist is evil.  We work around this by
	explictly calling mail_unselect, our unselect signal handler.
	(Otherwise, the edit and delete buttons remain sensitive and
	accounts_row != 0, but the user can't see which row the dialog
	thinks is selected.)
	(load_news): Check the account->source != NULL before
	dereferencing it.
	(mail_unselect): If an insensitive button in a button box has the
	focus, and if you hit tab, there is a segfault deep inside of gtk.
	This is probably a gtk bug.  We work around it by having the add
	button (which is always sensitive) grab the focus on an unselect.

svn path=/trunk/; revision=10136
2001-06-06 21:09:20 +00:00
da148869da (Fix bug #3211: Should undelete when flagging a delete message as
2001-06-05  Jason Leach  <jleach@ximian.com>

	(Fix bug #3211: Should undelete when flagging a delete message as
	 important)

	 * message-list.c (on_click): When flagging a message as
	 important, check to see if it's flagged as deleted, if so,
	 undelete it.

svn path=/trunk/; revision=10122
2001-06-05 21:31:40 +00:00
ce23de3eeb (Fix bug #314: Display URLs in statusbar on mouseover)
2001-06-05  Jason Leach  <jleach@ximian.com>

	(Fix bug #314: Display URLs in statusbar on mouseover)

	* mail-display.c (html_on_url): New function, callback for
	GtkHTML's "on_url" signal.

svn path=/trunk/; revision=10117
2001-06-05 17:42:42 +00:00
bd19a9d79d make HTML and plain mails to have the same boundary
2001-06-05  Radek Doulik  <rodo@ximian.com>

	* mail-format.c: make HTML and plain mails to have the same
	boundary

svn path=/trunk/; revision=10115
2001-06-05 12:37:31 +00:00
b8306eaf97 Fix linking order for `$(DB3_LDADD)'s so that we avoid pulling
functions from a different Berkeley DB library when we really don't
mean to.

svn path=/trunk/; revision=10105
2001-06-03 07:41:05 +00:00
06ebf6a67e Added fields for the GalViewMenus and GalViewCollection, since we need to
2001-06-01  Federico Mena Quintero  <federico@ximian.com>

	* folder-browser.h (FolderBrowser): Added fields for the
	GalViewMenus and GalViewCollection, since we need to keep them
	around while the component is active.

	* folder-browser-factory.c (folder_browser_setup_view_menus): Plug
	leaks; unref the spec and factory.  Set the view collection and
	the view menus on the FolderBrowser object.
	(folder_browser_discard_view_menus): New function.
	(control_deactivate): Discard the menus.

	* folder-browser.c (folder_browser_destroy): Destroy the view
	collection and the view menus.

svn path=/trunk/; revision=10086
2001-06-01 23:28:13 +00:00
338203f38e Add a bunch of missing `$(DB3_LDADD)'s.
svn path=/trunk/; revision=10085
2001-06-01 22:58:17 +00:00
dfda76b995 Save the pgp and smime settings. (mail_account_gui_new): Setup the pgp and
2001-06-01  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_save): Save the pgp and
	smime settings.
	(mail_account_gui_new): Setup the pgp and s/mime page (but disable
	the s/mime frame if we are not compiled with s/mime support).

	* mail-config.c (account_copy): Updated to save extra pgp and
	smime options.
	(account_destroy): Free draft/sent folder info and also the new
	pgp/smime keys.
	(config_read): Read in the pgp and s/mime config options.
	(mail_config_write): Save the account pgp and smime options.

svn path=/trunk/; revision=10084
2001-06-01 22:40:17 +00:00
07f5146f08 oops, camel-smime.h no longer exists. #include camel-smime-context.h and camel-smime-utils.h instead.
svn path=/trunk/; revision=10083
2001-06-01 22:21:10 +00:00