Commit Graph

343 Commits

Author SHA1 Message Date
8959d0d50a Don't have the filter driver self_destruct.
2000-09-11  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_fetch_mail): Don't have the filter driver
	self_destruct.

svn path=/trunk/; revision=5345
2000-09-11 20:52:54 +00:00
e413c307c2 If we're fetching from an mbox formatted file then we need to do some
2000-09-11  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_fetch_mail): If we're fetching from an mbox
	formatted file then we need to do some special-casing.

svn path=/trunk/; revision=5329
2000-09-11 17:59:20 +00:00
5d4acb77ef might be a good idea to *save* the uids in the cache when we're done fetching mail ;-)
svn path=/trunk/; revision=5291
2000-09-09 20:13:50 +00:00
ce49a43a52 Use the CamelUIDCache so that we only retrieve *new* messages and also
2000-09-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_fetch_mail): Use the CamelUIDCache so that we
	only retrieve *new* messages and also send notes to the status bar
	telling it which message we're downloading so that Ettore can
	sleep at night ;-)

svn path=/trunk/; revision=5290
2000-09-09 19:33:36 +00:00
e4734ab855 Updated to not send hook/unhook data to filter_driver_run as it no longer
2000-09-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_fetch_mail): Updated to not send hook/unhook data
	to filter_driver_run as it no longer takes those args.
	(do_filter_ondemand): Same. Also wrap filtering in freeze/thaw to
	prevent signals from being queued up

svn path=/trunk/; revision=5288
2000-09-09 17:45:52 +00:00
6c42500a9e Freeze the default folder before filtering and thaw it afterward to
2000-09-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_fetch_mail): Freeze the default folder before
	filtering and thaw it afterward to prevent a ton of
	"folder_changed" signals from being queued.

svn path=/trunk/; revision=5286
2000-09-09 17:30:52 +00:00
bbb5bf7155 Fixed some warnings.
2000-09-08  Christopher James Lahey  <clahey@helixcode.com>

	* folder-browser.c, mail-config-gui.c, mail-ops.c: Fixed some
	warnings.

	* message-list.c: Added base ETableModel functions.

svn path=/trunk/; revision=5268
2000-09-08 16:52:48 +00:00
38b00e41dd Updated to pass a CamelMessageInfo to filter_driver_run
2000-09-08  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_fetch_mail): Updated to pass a CamelMessageInfo
	to filter_driver_run
	(do_filter_ondemand): Same.

svn path=/trunk/; revision=5252
2000-09-08 04:00:27 +00:00
28d0e6247e Updated to check the boolean return code from fulter_driver_run to find
2000-09-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_filter_ondemand): Updated to check the boolean
	return code from fulter_driver_run to find out whether or not the
	message was filtered so that it can decide whether or not to
	delete the message from the source folder or not.

svn path=/trunk/; revision=5250
2000-09-07 23:12:13 +00:00
a939d54562 oops, forgot to pass "expunge" to camel_folder_sync - this should fix that
svn path=/trunk/; revision=5244
2000-09-07 21:35:33 +00:00
c8b89a700b Updated to pass an exception to filter_driver_run and also check the
2000-09-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_fetch_mail): Updated to pass an exception to
	filter_driver_run and also check the exception before deleting the
	message from the source folder.
	(do_filter_ondemand): Updated to pass an exception to
	filter_driver_run

svn path=/trunk/; revision=5242
2000-09-07 20:39:11 +00:00
cb05e36a62 Fix previous fix. (Free the uids, just do it correctly.)
* mail-ops.c (do_fetch_mail): Fix previous fix. (Free the uids,
	just do it correctly.)

svn path=/trunk/; revision=5238
2000-09-07 19:31:05 +00:00
646590a8c7 Don't free uids, let the camel folder do that when it gets finalized
2000-09-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_fetch_mail): Don't free uids, let the camel
	folder do that when it gets finalized

svn path=/trunk/; revision=5237
2000-09-07 18:39:06 +00:00
eec65a9ce0 New async function to filter messages on demand. (do_fetch_mail): Updated
2000-09-06  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (mail_do_filter_ondemand): New async function to
	filter messages on demand.
	(do_fetch_mail): Updated to filter 1 message at a time using the
	new filter-driver code

	* mail-callbacks.c (composer_postpone_cb): Send NULL as the
	message info.
	(run_filter_ondemand): Use mail_do_filter_ondemand instead of
	filter_driver_run

	* mail-tools.c: Removed mail_tool_filter_contents_into and
	mail_tool_fetch_mail_into_searchable as they have now been
	deprecated.

svn path=/trunk/; revision=5225
2000-09-07 03:15:35 +00:00
1bafa31bc2 kill a warning
svn path=/trunk/; revision=5214
2000-09-05 23:12:12 +00:00
4cfcef013a Add a use-default-port option to the source editor ; bugfixes
svn path=/trunk/; revision=5208
2000-09-05 20:53:22 +00:00
362fa53610 Replace mail_do_setup_draftbox, mail_do_setup_outbox, and
* mail-ops.c: Replace mail_do_setup_draftbox,
	mail_do_setup_outbox, and mail_do_setup_sentbox with
	mail_do_setup_folder.
	(do_send_mail, do_send_queue): s/sentbox_folder/sent_folder/

	* component-factory.c (owner_set_cb): Use mail_do_setup_folder,
	rename sentbox_folder to sent_folder, and call
	mail_operation_wait_for_finish after the setup_folder calls in
	case anything needs to use the _folder variables.

svn path=/trunk/; revision=5200
2000-09-05 19:43:08 +00:00
e6220851e3 Change the "Get Mail" toolbar button to become "Send & Receieve"
2000-09-03  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser-factory.c: Change the "Get Mail" toolbar button
	to become "Send & Receieve"

	* mail-callbacks.c (send_queued_mail): New callback function for
	sending queued mail
	(send_receieve_mail): New callback for Send & Receieve that
	basically just calls send_queued_mail and then fetch_mail

	* mail-ops.c (cleanup_send_mail): Mod to be able to handle a NULL
	composer window
	(setup_send_mail): Modified to handle a NULL composer widget
	(mail_do_send_queue): New convenience async function to send all
	messages in a folder (aka all messages in a queue)

svn path=/trunk/; revision=5184
2000-09-03 05:56:14 +00:00
754164e503 Attach a callback to the postpone signal (send_to_url): Same (mail_reply):
2000-09-01  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-callbacks.c (compose_msg): Attach a callback to the
	postpone signal
	(send_to_url): Same
	(mail_reply): Same
	(forward_msg): Same
	(composer_postpone_cb): Callback function for the postpone signal

	* mail-ops.c (mail_do_setup_outbox): New convenience function to
	load the Outbox folder
	(mail_do_setup_sentbox): Same, but for Sentbox.
	(do_send_mail): Now saves messages in Sentbox if sent successfully
	(mail_do_append_mail): New convenience async function for
	appending messages to a folder

	* component-factory.c: Added outbox_folder and sent_folder
	(owner_set_cb): Call our new convenience functions to load Outbox
	and Sentbox

svn path=/trunk/; revision=5178
2000-09-02 01:44:59 +00:00
61230561ce New convenience function to load the Outbox folder
2000-09-01  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (mail_do_setup_outbox): New convenience function to
	load the Outbox folder
	(mail_do_setup_sentbox): Same, but for Sentbox.
	(do_send_mail): Now saves messages in Sentbox if sent successfully

	* component-factory.c: Added outbox_folder and sent_folder
	(owner_set_cb): Call our new convenience functions to load Outbox
	and Sentbox

svn path=/trunk/; revision=5172
2000-09-01 22:11:47 +00:00
26112575da Changed `Evolution::Storage' so that the displayed name for a folder
is decoupled from its path, and updated all the components
accordingly.

svn path=/trunk/; revision=5159
2000-09-01 06:09:29 +00:00
ba2eaa68b1 Update this and related functions to no longer take a From address. (The
* mail-ops.c (mail_do_send_mail): Update this and related
	functions to no longer take a From address. (The composer deals
	with it itself now.)
	(do_send_mail): Add the Evolution version back to the X-Mailer
	header (this change got lost in the thread migration).

	* mail-callbacks.c (composer_send_cb): Don't re-fetch the From
	address. It's set by the composer now. Don't free the
	post_send_data from here.
	(mail_reply): Attach to the composer's destroy signal to free the
	psd. (The current code would free it more than once if an error
	occurred while trying to send the first time.)

svn path=/trunk/; revision=5102
2000-08-29 18:44:47 +00:00
fce353e596 Add more user-friendly progress messages from the friendly folks at Helix Code (TM)
svn path=/trunk/; revision=5076
2000-08-28 15:02:23 +00:00
906a178ce8 Goodbye, GDK_THREADS!
svn path=/trunk/; revision=5074
2000-08-28 14:36:26 +00:00
37471a4d52 Start adding progress info; make flag_all_messages camel-safe; make the no new mail dialog more descriptive.
svn path=/trunk/; revision=5016
2000-08-24 19:52:24 +00:00
0b9b384a2b Fix GDK_THREADS_entering and leaving, hopefully once and for all. Genericify the recursive-store-loading. Load stores when they're added to the config page.
svn path=/trunk/; revision=5005
2000-08-24 17:22:12 +00:00
7f51944599 Fix a deadlock upon checking mail due to new camel_service semantics.
svn path=/trunk/; revision=4984
2000-08-23 19:10:40 +00:00
24feba2033 Whole buncha leak fixes thanks to Purify
svn path=/trunk/; revision=4862
2000-08-17 14:19:02 +00:00
1cd648f355 Use a configurable timeout.
2000-08-16  Richard Hult  <rhult@hem.passagen.se>

 	* mail-ops.c (cleanup_display_message): Use a configurable
timeout.

 	* mail-config.c (mail_config_set_mark_as_seen_timeout): New
function
 	for the settable mark-as-seen timeout.
 	(mail_config_mark_as_seen_timeout): Likewise.
 	(mail_config_write): Write the timeout setting.
 	(config_read): Read timeout setting.

 	* mail-config-gui.c (mail_config): Add option for the settable
 	mark-as-seen timeout.
 	(mail_config_apply_clicked): Likewise.
 	(timeout_changed): New function for the timeout setting.

svn path=/trunk/; revision=4859
2000-08-16 22:56:34 +00:00
c6e25f89a5 Updated russian translation. Fixed typo in mail-ops.c.
svn path=/trunk/; revision=4852
2000-08-16 08:19:17 +00:00
533f3d7407 Close the pipes when finished; add i18n
svn path=/trunk/; revision=4846
2000-08-15 19:35:59 +00:00
e3b786b5cf Add support for copying messages
svn path=/trunk/; revision=4845
2000-08-15 19:10:45 +00:00
377513db1f Compile fix for RH7.0beta from Kenny Graunke <kwg@teleport.com>; unprototype the disabled mail functions
svn path=/trunk/; revision=4836
2000-08-14 15:18:44 +00:00
7f01f3e1d9 Use CORBA_Object_release() instead of CORBA_free() as appropriate, you
doofus.

svn path=/trunk/; revision=4830
2000-08-14 01:00:22 +00:00
e1111e8e76 Fix bug in the folder creation code: CORBA_Object_duplicate() the
CORBA listener before storing it.

svn path=/trunk/; revision=4804
2000-08-13 20:35:44 +00:00
c1f24d07e4 Updated to reflect changes to mail_do_scan_subfolders
2000-08-13  Jeffrey Stedfast  <fejj@helixcode.com>

	* component-factory.c (create_news_storage): Updated to reflect
	changes to mail_do_scan_subfolders
	(create_imap_storage): Same.

	* mail-ops.c (mail_do_scan_subfolders): No longer takes an
	add_INBOX argument

svn path=/trunk/; revision=4795
2000-08-13 04:23:42 +00:00
05a0341981 Lose a reference to the store on purpose. To be fixed later.
* mail-ops.c (do_scan_subfolders): Lose a reference to the store
	on purpose. To be fixed later.

svn path=/trunk/; revision=4794
2000-08-13 04:17:42 +00:00
ffc1f6b79e Don't leak the transport.
* mail-ops.c (do_send_mail): Don't leak the transport.

svn path=/trunk/; revision=4784
2000-08-12 22:06:52 +00:00
4824927269 Put the dont-try-to-get-mail-from-imap-sources check into a better spot
svn path=/trunk/; revision=4750
2000-08-11 19:07:13 +00:00
f5b8a56cc1 Freeze/thaw around multi-message folder operations (flag, move)
svn path=/trunk/; revision=4739
2000-08-11 16:15:46 +00:00
562e6437b5 Use camel_service_get_name rather than showing the URL to the user.
* mail-ops.c (describe_fetch_mail): Use camel_service_get_name
	rather than showing the URL to the user.

svn path=/trunk/; revision=4737
2000-08-11 15:51:57 +00:00
f0cbd6a20b Add a function to return a useful name for a folder (not just "mbox" or
* mail-tools.c (mail_tool_get_folder_name): Add a function to
	return a useful name for a folder (not just "mbox" or "mh" for
	any local folder.)

	* mail-ops.c: Use mail_tool_get_folder_name rather than
	folder->full_name when printing folder names.

svn path=/trunk/; revision=4733
2000-08-11 14:41:04 +00:00
6db1c7d22a Don't call e_setup_base_dir. It was wrong and it doesn't exist any more.
* session.c (session_init): Don't call e_setup_base_dir. It was
        wrong and it doesn't exist any more.

        * component-factory.c (owner_set_cb): Update for changed
        prototype, and record the evolution_homedir. Move call to
        mail_config_init here from session.c so it happens after
        evolution_dir is initialized.

        * mail.h: define "extern char *evolution_dir;" (formerly in
        e-util/e-setup.h)

        * component-factory.c, mail-callbacks.c, mail-config-gui.c,
        mail-config.c, mail-display.c, mail-format.c, mail-ops.c,
        mail-tools.c, session.c: Remove "e-util/e-setup.h" include.

svn path=/trunk/; revision=4712
2000-08-11 00:02:25 +00:00
44b1cb734d Add a "gboolean create" argument to pass to camel_store_get_folder.
* mail-tools.c (mail_tool_get_folder_from_urlname): Add a
	"gboolean create" argument to pass to camel_store_get_folder.

	* mail-ops.c (do_create_folder, do_setup_draftbox):
	* mail-local.c (mail_tool_local_uri_to_folder):
	* mail-vfolder.c (vfolder_uri_to_folder): Add create flag to
	mail_tool_get_folder_from_urlname calls.

svn path=/trunk/; revision=4702
2000-08-10 20:26:41 +00:00
09199ae2ea Show 'no new mail' correctly.
svn path=/trunk/; revision=4699
2000-08-10 19:34:50 +00:00
1ecabb0dc4 Fix the infinite movemail
svn path=/trunk/; revision=4696
2000-08-10 18:46:39 +00:00
8cb514d6dd Merge with camel-async.
svn path=/trunk/; revision=4687
2000-08-10 17:30:50 +00:00
ce31e66ee6 Get the from address set in the composer, if that fails ONLY THEN get the
2000-08-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (composer_send_cb): Get the from address set in the
	composer, if that fails ONLY THEN get the default from mail config

	* mail-config.c (mail_config_get_identities): New convenience
	function for getting a list of the configured identities

svn path=/trunk/; revision=4672
2000-08-09 22:19:04 +00:00
3d94ea9337 Changed to only take a FolderBrowser argument
2000-08-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-view.c (mail_view_create): Changed to only take a
	FolderBrowser argument

	* mail-ops.c (real_view_msg): Create a new FolderBrowser for each
	message being opened in a new window. Also set the
	message_list->cursor_uid and mail_display->current_message to the
	appropriate values.
	(real_view_msg): Updated to reflect changes in the mail_view_create

	* message-list.c (on_right_click): Nicify a little, add in a menu
	separator between VFolder and Filter stuff.

	* mail-ops.c (real_view_msg): Set the UID of the message that is
	being displayed

svn path=/trunk/; revision=4662
2000-08-09 19:57:28 +00:00
c8712d8115 Create a new FolderBrowser for each message being opened in a new window.
2000-08-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (real_view_msg): Create a new FolderBrowser for each
	message being opened in a new window. Also set the
	message_list->cursor_uid and mail_display->current_message to the
	appropriate values.

svn path=/trunk/; revision=4660
2000-08-09 19:49:20 +00:00