Commit Graph

1099 Commits

Author SHA1 Message Date
7d8ca744f7 Check the full list of IDs instead of just the default id and if we find
2001-02-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (list_add_addresses): Check the full list of
	IDs instead of just the default id and if we find an address
	matching one of the user's ids, then save it.
	(mail_generate_reply): Try to guess which account to use based
	upon the list of To and Cc addresses and pass that as the 'From'
	address to e_msg_composer_set_headers().
	(forward_get_composer): Updated to reflect changes to
	e-msg-composer.

svn path=/trunk/; revision=8166
2001-02-11 04:14:17 +00:00
ac9abd5e60 Getting almost full and proper use of xml-i18n-tools.
Removed all files where glade writes strings.
Changed Makefile.am to not distribute them.
Changed all glade files to not write strings to those files.

Removed *.desktop and evolution.keys files, because they are generated.
Added them to .cvsignore
Added *.desktop.in evolution.keys.in files without transalted strings.
Added all existing entries from desktop files to po files.
Changed Makefile.am to distribute only .in files, and merge translations into
desktop files.

Removed obsolete files from po/ dir

svn path=/trunk/; revision=8164
2001-02-11 02:56:16 +00:00
fa2c19fdd1 Updates for CamelStore changes, small memory leak fixes. (lookup_folder):
* mail-local.c: Updates for CamelStore changes, small memory leak
	fixes.
	(lookup_folder): Removed (and moved into the reconfigure code)
	since this method no longer exists in CamelStore.
	(do_reconfigure_folder, etc): Update the info in the
	MailLocalStore after reconfiguring.
	(mail_local_lookup_folder): Removed

	* local-config.glade: fix padding of the label_format

	* message-list.c (ml_tree_value_at): Don't keep message infos
	reffed across calls, since this can cause badness after a
	reconfigure. Instead, just strdup the needed values and free those
	on the next call.

	* mail-tools.c (mail_tool_get_root_of_store): Unused, remove.
	(mail_tool_get_inbox): use camel_store_get_inbox.

	* evolution-outlook-importer.c (load_file_fn):
	* evolution-mbox-importer.c (load_file_fn): Use
	mail_tool_get_local_inbox() instead of mail_importer_get_folder()

	* mail-importer.c (mail_importer_get_folder): Removed

svn path=/trunk/; revision=8147
2001-02-09 16:45:09 +00:00
210c0386a9 New location for this function.
2001-02-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mail_generate_reply): New location for this
	function.

	* mail-format.c: Removed mail_generate_reply as it's ONLY ever
	used in mail-callbacks.c.

	* mail-ops.c (fetch_mail_fetch): Reworked some keep-mail-on-server
	logic so that we ALWAYS look for a cached array of UIDs that we
	may have downloaded previously so as not to download them again
	even if we will be deleting them off the server. This fixes bug
	#1344.

svn path=/trunk/; revision=8137
2001-02-09 02:51:22 +00:00
896d495a2a Reworked some keep-mail-on-server logic so that we ALWAYS look for a
2001-02-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (fetch_mail_fetch): Reworked some keep-mail-on-server
	logic so that we ALWAYS look for a cached array of UIDs that we
	may have downloaded previously so as not to download them again
	even if we will be deleting them off the server. This fixes bug
	#1344.

svn path=/trunk/; revision=8135
2001-02-09 02:21:18 +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
11c5b60d8c Set the sensitivity of the spin button based on the state of the checkbox.
2001-02-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (construct): Set the sensitivity of the spin
	button based on the state of the checkbox.

svn path=/trunk/; revision=8130
2001-02-09 00:12:52 +00:00
5db2a79dbb more reasonable default for the auto-check minutes spin box
svn path=/trunk/; revision=8129
2001-02-09 00:09:24 +00:00
cd2628ec5b Properly do defaults here. (mail_config_write): Removed some of the
2001-02-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (config_read): Properly do defaults here.
	(mail_config_write): Removed some of the settings being saved
	here.
	(mail_config_write_on_exit): Save those settings here instead.

svn path=/trunk/; revision=8128
2001-02-09 00:03:19 +00:00
18df0dfdf2 Cast the CamelMedium to a CamelMimePart before performing actions on it as
2001-02-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (on_object_requested): Cast the CamelMedium to a
	CamelMimePart before performing actions on it as if it were a
	CamelMimePart.

	* mail-config-druid.c (druid_finish): Save the auto-check settings.
	(construct): Initialize auto-check widgets.
	(mail_config_druid_get_auto_check): New function
	(mail_config_druid_get_auto_check_minutes): New functions

	* mail-config.c (config_read): Read in whether or not to check
	every x minutes.
	(mail_config_write): Save auto-check config data and SSL.

svn path=/trunk/; revision=8126
2001-02-08 22:57:34 +00:00
5e15f4ae88 Use "contains" because the subject might be broken into subparts and using
2001-02-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-autofilter.c (rule_add_subject): Use "contains" because the
	subject might be broken into subparts and using the "is" rule will
	then fail ;-)

svn path=/trunk/; revision=8101
2001-02-08 03:51:34 +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
4bac88ea16 Check current_message for NULL - this fixes a bug running under SunOS (not
2001-02-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-mt.c (set_view_data): Check current_message for NULL - this
	fixes a bug running under SunOS (not a major deal tho as it's in a
	debug printf).

svn path=/trunk/; revision=8093
2001-02-08 00:22:34 +00:00
c7b13889e7 Oops, save the seen_timeout variable.
2001-02-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (mail_config_write_on_exit): Oops, save the
	seen_timeout variable.

svn path=/trunk/; revision=8046
2001-02-07 04:17:02 +00:00
71c965734e Added libmenus.la.
2001-02-06  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (evolution_mail_LDADD): Added libmenus.la.

	* folder-browser-factory.c (control_activate): Added GalView menus
	here.

	* message-list.c, message-list.h (message_list_get_layout): Made
	message_list_get_layout export.

svn path=/trunk/; revision=8041
2001-02-07 03:25:28 +00:00
842b4ef4fc Change how the attachments are displayed.
Fix a minor memory leak in message-list.c

svn path=/trunk/; revision=8039
2001-02-07 01:52:41 +00:00
c789892dc1 Updated to checkfor "(none)".
2001-02-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (set_defaults): Updated to checkfor
	"(none)".

	* mail-account-editor.c (entry_changed): Make sure the email
	address is valid.

	* mail-config-druid.c (identity_check): Check to make sure we have
	a valid email address.
	(is_email): New function to check a string to see if it's a valid
	email address.

svn path=/trunk/; revision=8034
2001-02-06 23:15:06 +00:00
2a8a66ab47 added mail-send-recv.h
svn path=/trunk/; revision=8030
2001-02-06 22:34:19 +00:00
2fd6f5acb5 We are now going to use a file descriptor and a CamelMimeParser rather
2001-02-05  Jeffrey Stedfast  <fejj@ximian.com>

	* evolution-mbox-importer.c: We are now going to use a file
	descriptor and a CamelMimeParser rather than a FILE pointer.
	(load_file_fn): Open the file descriptor and initialize the
	CamelMimeParser.
	(importer_destroy_cb): Unref the mime parser.
	(support_format_fn): Use an fd and use a case-insensitive
	comparison as well as elimate a buffer overrun.
	(process_item_fn): Process 1 CamelMimeMessage per invocation so as
	to not lock up Iain's GUI and to work similar to the way Iain
	originally coded it.

svn path=/trunk/; revision=8006
2001-02-06 01:16:03 +00:00
c854c40b39 oops, forgot to add this file
svn path=/trunk/; revision=8004
2001-02-05 23:33:07 +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
11f8fdd1cc fixed up the display a bit
svn path=/trunk/; revision=8001
2001-02-05 22:58:35 +00:00
4e52135a24 New function to handle inline pgp-signatures.
2001-02-05  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (try_inline_pgp_sig): New function to handle
	inline pgp-signatures.

svn path=/trunk/; revision=7996
2001-02-05 22:23:04 +00:00
f5ab714264 Keep track of the CheckSettings check boxes. (transport_next): Connect if
2001-02-05  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (construct): Keep track of the CheckSettings
	check boxes.
	(transport_next): Connect if the user says so.
	(incoming_next): Same. Also, don't jump to the next page if
	test-settings fails.

svn path=/trunk/; revision=7984
2001-02-05 21:06:54 +00:00
7301749d71 Updated to not connect when getting a list of authtypes. (transport_next):
2001-02-05  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (incoming_next): Updated to not connect when
	getting a list of authtypes.
	(transport_next): No longer connects - again, this is
	useless. Read the apply_changes argument for the reason why.

	* mail-account-editor.c (apply_changes): Updated. Set the
	'connect' argument to FALSE for now, this basically means that the
	call is worthless tho so it may be best to either get rid of the
	checks altogether or else make it connect.
	(source_auth_init): Don't connect here, it's just plain annoying.
	(transport_construct_authmenu): Same here.

	* mail-config.c (mail_config_check_service): Now takes a connect
	argument.

svn path=/trunk/; revision=7981
2001-02-05 20:13:59 +00:00
5011c8574c Fix dodgy libxml allocation pollution, and potential faults on NULL
2001-02-03  Michael Meeks  <michael@helixcode.com>

	* mail-local.c (load_metainfo): Fix dodgy libxml allocation
	pollution, and potential faults on NULL attributes.

svn path=/trunk/; revision=7949
2001-02-03 22:56:15 +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
601872effd Fix typo.
2001-01-30  Kjartan Maraas  <kmaraas@gnome.org>

	* folder-browser.c: Fix typo.

svn path=/trunk/; revision=7913
2001-01-30 15:14:39 +00:00
171de13904 Cast the camel_stream_mem_new() to a CamelStreamMem.
2001-01-29  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-importer.c (mail_importer_add_line): Cast the
	camel_stream_mem_new() to a CamelStreamMem.

svn path=/trunk/; revision=7905
2001-01-30 03:51:20 +00:00
9934a4b6d0 Return efence ifdefs to 0 for solaris build
2001-01-29  JP Rosevear  <jpr@ximian.com>

	* main.c: Return efence ifdefs to 0 for solaris build

svn path=/trunk/; revision=7895
2001-01-29 20:56:27 +00:00
66b038a31f (build_tree): Oops, turn on BROKEN_ETREE again.
svn path=/trunk/; revision=7888
2001-01-29 09:53:23 +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
6fd48a6f47 Turns out that I was wrong about the g_get_real_name mem leak, god damn
2001-01-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (set_defaults): Turns out that I was wrong
	about the g_get_real_name mem leak, god damn glib for not
	following the const char* standard.

svn path=/trunk/; revision=7882
2001-01-29 00:46:18 +00:00
8e1a4026c9 Use UTF-8. (set_defaults): Use UTF-8 and also fixed a memory leak by
2001-01-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (management_prepare): Use UTF-8.
	(set_defaults): Use UTF-8 and also fixed a memory leak by freeing
	the string returned by g_get_real_name().
	(mail_config_druid_get_account_name): Use UTF-8.
	(mail_config_druid_get_full_name): Same.
	(mail_config_druid_get_email_address): Same.
	(mail_config_druid_get_organization): Same.

	* mail-account-editor.c (apply_changes): Save UTF-8 strings rather
	than gtk strings.
	(construct): Use the UTF-8 convenience functions to set the gtk
	entries for the ID fields.

svn path=/trunk/; revision=7881
2001-01-29 00:18:43 +00:00
39495e7f53 Update copyrights.
svn path=/trunk/; revision=7879
2001-01-28 13:47:11 +00:00
e0b74b2ce5 Make the advanced search dialog use stock buttons. Make the OK button
the default button in the advanced search and vfolder dialogs.

svn path=/trunk/; revision=7878
2001-01-28 13:42:12 +00:00
c861496b41 Make the vfolder and "advanced search" dialogs a bit larger for better
usability.

svn path=/trunk/; revision=7871
2001-01-28 10:20:51 +00:00
d8c95a55bc Changed to use mail_save_part to save the data in another thread.
2001-01-28  Not Zed  <NotZed@Ximian.com>

        * mail-display.c (write_data_to_file): Changed to use
        mail_save_part to save the data in another thread.
        (save_data_cb): Hide the fileselector once we have a button press,
        and are saving stuff.

        * mail-ops.c (mail_save_part): New function to save a part content
        asynchronously.

svn path=/trunk/; revision=7867
2001-01-28 03:53:08 +00:00
a2befe96e6 Don't handle home and end keys since %ETable deals with them now.
2001-01-27  Christopher James Lahey  <clahey@helixcode.com>

	* folder-browser.c (etable_key): Don't handle home and end keys
	since %ETable deals with them now.

svn path=/trunk/; revision=7865
2001-01-27 22:23:06 +00:00
613b4a4b5c Protect against NULL address pointers. (subject_compare): Same but for
2001-01-27  Jeffrey Stedfast  <fejj@ximian.com>

	* message-list.c (address_compare): Protect against NULL address
	pointers.
	(subject_compare): Same but for subject pointers.

svn path=/trunk/; revision=7863
2001-01-27 20:19:21 +00:00
1d01cfbf2e warnings go byebye
svn path=/trunk/; revision=7856
2001-01-27 13:30:57 +00:00
50cedfaadd Try a control before an embeddable instead of an embeddable before a
control when embedding something in the mail display.

svn path=/trunk/; revision=7845
2001-01-27 03:39:24 +00:00
93c8da913b Check for a NULL service->url as we obviously can't subscribe to folders
2001-01-26  Jeffrey Stedfast  <fejj@ximian.com>

	* subscribe-dialog.c (populate_store_foreach): Check for a NULL
	service->url as we obviously can't subscribe to folders on a
	non-existant mail source :-)
	(subscribe_do_get_store): Check for a NULL url here too, not that
	we should need it anymore (due to the above fix) but it doesn't
	hurt. Also, should we wait on the thread? Probably doesn't matter.

svn path=/trunk/; revision=7844
2001-01-27 03:13:30 +00:00
62ec012904 Fix some compile problems and stop the blank mail appearing with the mbox
importer

svn path=/trunk/; revision=7843
2001-01-27 03:05:54 +00:00
061393816b Fix an uninitialized variable use.
* mail-identify.c (mail_identify_mime_part): Fix an uninitialized
	variable use.

svn path=/trunk/; revision=7838
2001-01-26 17:00:05 +00:00
5be14f15c3 (Fixing an old FIXME)
2001-01-26  Jason Leach  <jasonleach@usa.net>

	(Fixing an old FIXME)

	* component-factory.c (create_vfolder_storage): removing
	create_vfolder_storage, replacing call to it with
	vfolder_create_storage.

svn path=/trunk/; revision=7837
2001-01-26 11:46:31 +00:00
54ac4051e9 Define BROKEN_ETREE again, till we get this stuff fixed better.
2001-01-26  Not Zed  <NotZed@Ximian.com>

	* message-list.c (build_tree): Define BROKEN_ETREE again, till we
	get this stuff fixed better.

2001-01-25  Not Zed  <NotZed@Ximian.com>

	* folder-browser.c: Moved teh "sender contains" item to the end of
	the list, so the gui doesn't suddenly change on everyone.  Fixed
	the sender-contains search string to be a valid s-exp (ha, didn't
	test it even once eh ettore?!)
	(search_save): Dont have the sender contains as the default case
	(which well, never gets called anyway), oops i guess i should've
	reviewed the patch a little more.

svn path=/trunk/; revision=7835
2001-01-26 09:16:29 +00:00
66c8e42323 Fix the "sender contain" quicksearch rule by adding a missing
parenthesis; also make it the last item on the OptionMenu instead of
the first one.

svn path=/trunk/; revision=7834
2001-01-26 06:09:43 +00:00