Commit Graph

757 Commits

Author SHA1 Message Date
6db2305b33 ** Merged in camel-incremental-branch.
2000-11-02  Not Zed  <NotZed@HelixCode.com>

        ** Merged in camel-incremental-branch.

        * mail-format.c (mail_get_message_body): Jeff!  Sigh.
        We should definetly not be strduping the
        content, it has already been copied and duplicated.  Look at
        get_data_wrapper_text.

svn path=/trunk/; revision=6337
2000-11-02 03:36:48 +00:00
0109894d2a add fields search_entry and search_top.
2000-11-01  Chris Toshok  <toshok@helixcode.com>

	* subscribe-dialog.h: add fields search_entry and search_top.

	* subscribe-dialog.c: add mail-ops.c style async operations for
	getting the store (to remove deadlock in the case where a auth
	dialog is dismissed at startup and then the subscribe dialog is
	brought up), and subscribing/unsubscribing to folders.  One case
	remains, that is getting the list of all folders.
	(subscribe_search): flesh out this function
	(build_tree): use the search_top field so we can search for
	groups/folders.
	(subscribe_dialog_destroy): free search_top.
	(subscribe_dialog_construct): init search_top.

svn path=/trunk/; revision=6331
2000-11-02 01:20:43 +00:00
4f3a4c8234 Moving the executive summarys now :)
mail-summary now has clickable names to change to that view
executive summary remembers what components are running when you close.
selection now blocks ES updating so it won't be cleared.

svn path=/trunk/; revision=6330
2000-11-02 00:42:35 +00:00
f62d997329 Hmmm, someone can't spell Filder, er...I mean Filter ;-)
2000-11-01  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser-factory.c: Hmmm, someone can't spell Filder,
	er...I mean Filter ;-)

svn path=/trunk/; revision=6327
2000-11-01 23:43:44 +00:00
7362d3534b If the name is NULL or empty, then set the title to "Mail from <address>".
2000-11-01  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-autofilter.c (rule_from_message): If the name is NULL or
	empty, then set the title to "Mail from <address>". Closes
	bugzilla bug #777. Also when filtering on Subject, set the file
	name to "Subject is <subject>" rather than just "<subject>" - I
	think this is a bit more user-friendly.
	(strip_re): Use unsigned char when passing to is<type>()
	functions from ctype.h.
	(rule_add_subject): Use the "is" rule instead of "contains".

svn path=/trunk/; revision=6321
2000-11-01 21:25:04 +00:00
6babb16217 added property bag support for Bonobo
controls, support which helps only the iTip control, currently.

svn path=/trunk/; revision=6318
2000-11-01 19:50:30 +00:00
ef363f6c57 Lots of fixes and simplifications. Should get rid of the "missing icon"
* mail-display.c (pixbuf_gen_idle): Lots of fixes and
	simplifications. Should get rid of the "missing icon" problem.
	There is still a problem with some images failing to get
	thumbnails, even though they display correctly.
	(pixbuf_for_mime_type): New function to try really hard to get the
	right icon for a MIME type, including looking in mc and nautilus's
	pixmap directories.
	(on_object_requested): Always use pixbuf_gen_idle, even for
	non-image types, to prevent code duplication.

svn path=/trunk/; revision=6317
2000-11-01 19:19:31 +00:00
fa3cf53363 modified or added a bunch of .cvsignore to ignore generated files, which
* modified or added a bunch of .cvsignore to ignore
generated files, which are not in repository.
* call *textdomain() in various files only when
ENABLE_NLS is defined

svn path=/trunk/; revision=6310
2000-11-01 10:44:51 +00:00
e0668b4fde Shouldn't we be strdup'ing the content? This seems to fix the memory
2000-10-31  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-format.c (mail_get_message_body): Shouldn't we be
	strdup'ing the content? This seems to fix the memory corruption
	problems.
	(mail_generate_reply): Make sure that the last char in the
	generated reply text is '\0' (when bodt text doesn't end with a
	\n, a random char will appear otherwise).

svn path=/trunk/; revision=6306
2000-11-01 00:55:38 +00:00
a774647446 Update for camel_service_disconnect change.
* mail-config-gui.c (do_test_service): Update for
	camel_service_disconnect change.

svn path=/trunk/; revision=6304
2000-10-31 23:47:39 +00:00
3d5a9588f6 Match "is" rather than "contains" now that we have the "is"-rule.
2000-10-31  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-autofilter.c (filter_gui_add_for_mailing_list): Match "is"
	rather than "contains" now that we have the "is"-rule.

svn path=/trunk/; revision=6295
2000-10-31 18:33:37 +00:00
45915f89e2 Redo this so that it works for all pages, not just the first page. (Now
* mail-config-gui.c (config_do_query_authtypes): Redo this so that
	it works for all pages, not just the first page. (Now that this is
	finally working again, I expect Anna to finish her redesign in the
	next 15 minutes.)
	(service_page_item_new): Fix up the sizing of the Auth line to
	look more like everything else.

svn path=/trunk/; revision=6270
2000-10-30 16:51:03 +00:00
2b8e2eeaf9 Simplify this a lot by making IMAP and NNTP use the same code, now that
* mail-tools.c (mail_tool_uri_to_folder): Simplify this a lot by
	making IMAP and NNTP use the same code, now that the IMAP
	namespace doesn't need special magic handling.

svn path=/trunk/; revision=6257
2000-10-30 03:24:29 +00:00
9e6c10a18b Don't try to regenerate the message list if there is no folder. (The
* message-list.c (mail_do_regenerate_messagelist): Don't try to
	regenerate the message list if there is no folder. (The Bonobo UI
	code will call this as the callback for the "Threaded View"
	command.)

svn path=/trunk/; revision=6255
2000-10-29 20:41:55 +00:00
b23d7cd857 Sync the folder before refreshing so we don't lose flag settings.
* mail-ops.c (do_fetch_mail): Sync the folder before refreshing so
	we don't lose flag settings.

svn path=/trunk/; revision=6254
2000-10-29 20:39:18 +00:00
78a43af4b2 Check to make sure that the recipient list is neither NULL nor a 0-length
2000-10-27  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-callbacks.c (composer_send_cb): Check to make sure that the
	recipient list is neither NULL nor a 0-length list of addresses
	and pop up a dialog letting the user know why we are not allowing
	him/her to send the message.

svn path=/trunk/; revision=6238
2000-10-27 20:28:14 +00:00
fa4b2f89b7 Don't destroy a dialog after run_and_close'ing it.
* mail-display.c (write_data_to_file): Don't destroy a dialog
	after run_and_close'ing it.

svn path=/trunk/; revision=6203
2000-10-26 16:24:21 +00:00
37ffc13dcb Check for the TO recipient list being NULL and don't send.
2000-10-26  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-callbacks.c (composer_send_cb): Check for the TO recipient
	list being NULL and don't send.

svn path=/trunk/; revision=6201
2000-10-26 06:09:47 +00:00
3a69bfad53 Don't forget to unref the FilterDriver.
2000-10-25  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_send_mail): Don't forget to unref the
	FilterDriver.

	* mail-callbacks.c (apply_filters): New callback for applying
	on-demand filters. (removed the old on-demand filters callback).

	* mail-ops.c (do_filter_ondemand): Rewrote to apply "incoming"
	filters to all selected messages.
	(mail_do_filter_ondemand): No longer takes a FilterContext
	argument or a destination folder argument (why did we ever need
	this last one??) but now takes a uids argument.

	* folder-browser-factory.c: Add a MessageApplyFilters menu item.

svn path=/trunk/; revision=6190
2000-10-26 00:16:31 +00:00
2039485191 Summary is back in :D
Fixed a silly size issue for composer file selectors.

svn path=/trunk/; revision=6187
2000-10-25 23:03:33 +00:00
d09ae94056 Pass send/postpone signal handler functions to
* main.c (main): Pass send/postpone signal handler functions to
	evolution_composer_factory_init.

svn path=/trunk/; revision=6185
2000-10-25 22:43:52 +00:00
1d556fa92a Implemented. (subscribe_invert_selection): (was unselect_all) Implemented.
2000-10-25  Jeffrey Stedfast  <fejj@helixcode.com>

	* subscribe-dialog.c (subscribe_select_all): Implemented.
	(subscribe_invert_selection): (was unselect_all) Implemented.

svn path=/trunk/; revision=6181
2000-10-25 22:34:46 +00:00
6eb3e631bd Add a "flagged" column, based on the Camel "flagged" flag, for assigning
* message-list.c: Add a "flagged" column, based on the Camel
	"flagged" flag, for assigning an arbitrary "hey, I care about
	this" flag to a message.
	(ml_tree_set_value_at): Remove
	(ml_tree_is_cell_editable): No, it's not.
	(on_click): Handle the read/unread and flagged fields via the
	click handler. Among other things, this makes it not select
	a message when you change its read status.

svn path=/trunk/; revision=6173
2000-10-25 19:05:20 +00:00
9dcf5fdde9 Don't prepend "/" to the folder's full_name. Deal with hierarchy in the
* subscribe-dialog.c (folder_info_subscribed,
	subscribe_folder_info, unsubscribe_folder_info): Don't prepend "/"
	to the folder's full_name. Deal with hierarchy in the
	EvolutionStorage tree better.
	(storage_tree_path): Helper function to build a storage path from
	a CamelFolderInfo.

svn path=/trunk/; revision=6168
2000-10-25 15:29:55 +00:00
360675f54b lots of i18n fixes
svn path=/trunk/; revision=6143
2000-10-24 05:23:27 +00:00
faed5f42e4 AM_GNOME_GETTEXT doesn't use $(datadir)/locale as the locale dir. (It
uses either $(prefix)/share/locale or $(prefix)/lib/locale.) Cope with
this.

svn path=/trunk/; revision=6141
2000-10-24 03:09:37 +00:00
0887fc650f Apply outgoing filters to the message.
2000-10-23  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (do_send_mail): Apply outgoing filters to the
	message.

svn path=/trunk/; revision=6140
2000-10-24 02:53:01 +00:00
46b30bb1be Fixed a possible error in row numberings. This needs to be changed quite a
2000-10-23  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c: Fixed a possible error in row numberings.  This
	needs to be changed quite a bit anyway, but this should make
	things slightly nicer in some cases.

svn path=/trunk/; revision=6128
2000-10-23 19:44:04 +00:00
de0c82f382 Made the top of the folder browser a little prettier.
2000-10-23  Christopher James Lahey  <clahey@helixcode.com>

	* folder-browser.c: Made the top of the folder browser a little
	prettier.

	* mail-display.c, mail-vfolder.c: Made more dialogs resizable.

svn path=/trunk/; revision=6126
2000-10-23 19:31:14 +00:00
51d005f03d Don't forget to set the rule source! (eg "incoming", "demand", or
2000-10-23  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-autofilter.c (filter_gui_add_from_message): Don't forget to
	set the rule source! (eg "incoming", "demand", or "outgoing")

svn path=/trunk/; revision=6114
2000-10-23 17:32:08 +00:00
e42e84e2bf Make the vertical toolbar always visible in the message list and the
message view (patch pulled up from the evolution-0-6-branch).

svn path=/trunk/; revision=6112
2000-10-22 21:19:07 +00:00
31d8f6d63f #include <camel/camel-folder.h>
2000-10-20  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-config.h: #include <camel/camel-folder.h>

svn path=/trunk/; revision=6092
2000-10-20 23:52:48 +00:00
88cbebbb3d s/BonoboUIHandler/BonoboUIComponent/
2000-10-20  Michael Meeks  <michael@helixcode.com>

	* mail.h: s/BonoboUIHandler/BonoboUIComponent/

	* mail-callbacks.c (run_filter_ondemand): ditto.

	* session.c (forget_passwords): ditto.

svn path=/trunk/; revision=6085
2000-10-20 21:16:11 +00:00
06ef60fa04 Declare composer factory.
* evolution-mail.oafinfo: Declare composer factory.

	* main.c (main): Initialize it

svn path=/trunk/; revision=6079
2000-10-20 20:11:11 +00:00
472ffcd238 e-tree-model is now opaque. use the accessor to get the root node.
2000-10-19  Chris Toshok  <toshok@helixcode.com>

	* message-list.c (nuke_uids): e-tree-model is now opaque.  use the
	accessor to get the root node.

svn path=/trunk/; revision=6073
2000-10-20 05:24:35 +00:00
2da5643867 #include "mail-vfolder.h" (vfolder_edit_vfolders): Don't call the dummy
2000-10-19  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-callbacks.c: #include "mail-vfolder.h"
	(vfolder_edit_vfolders): Don't call the dummy vfolder_edit
	function.

	* folder-browser-factory.c: s/VFolderEdit/SetVFolder

svn path=/trunk/; revision=6053
2000-10-19 21:44:37 +00:00
172f70c641 For an imap store, just refresh the INBOX.
* mail-ops.c: (do_fetch_mail): For an imap store, just refresh the
	INBOX.

	* folder-browser-factory.c (control_deactivate): Don't sync
	non-existent folders.
	* message-list.c (nuke_uids): Don't traverse non-existent trees.

svn path=/trunk/; revision=6047
2000-10-19 20:32:54 +00:00
329fe7df32 Build fixes from Jacob, same as the other branch.
svn path=/trunk/; revision=6035
2000-10-19 17:47:39 +00:00
1a867b4dcf Clean up some old #if 0 code.
* mail-ops.c: Clean up some old #if 0 code.

svn path=/trunk/; revision=6030
2000-10-19 14:39:50 +00:00
66da354765 Get the MailConfigIdentity *before* we create a new composer object so
2000-10-19  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-format.c (mail_generate_reply): Get the MailConfigIdentity
	*before* we create a new composer object so that we can set the
	signature file.

svn path=/trunk/; revision=6026
2000-10-19 04:44:39 +00:00
94f3ed8e3a kill. (create_ondemand_hooks): die. (control_activate): remove hook.
2000-10-18  Michael Meeks  <michael@helixcode.com>

	* folder-browser-factory.c (register_ondemand): kill.
	(create_ondemand_hooks): die.
	(control_activate): remove hook.

	* test-mail.c (create_container): kill old UI handler.

svn path=/trunk/; revision=6020
2000-10-19 03:07:02 +00:00
eb914c346e Fixed some column widths.
2000-10-18  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c: Fixed some column widths.

svn path=/trunk/; revision=6013
2000-10-19 01:52:22 +00:00
a701db6108 Make all the CLists have passive titles. (identity_dialog): Make the
2000-10-18  Iain Holmes  <iain@helixcode.com>

        * mail-config-gui.c (mail_config): Make all the CLists have passive
        titles.
        (identity_dialog): Make the default button the "OK" button, and set
        the dialog to close on pressing return on the entryboxes.

svn path=/trunk/; revision=5996
2000-10-18 17:55:24 +00:00
8d91a9c1c6 Disable the optionmenu because it is empty. (service_page_item_auth_fill):
2000-10-17  Iain Holmes  <iain@helixcode.com>

        * mail-config-gui.c (service_page_item_new): Disable the optionmenu
        because it is empty.
        (service_page_item_auth_fill): Enable the optionmenu as there's stuff
        in it now.

        * mail-callbacks.c (reply_to_sender): Call check_send_configuration
        when we have the FolderBrowser because if it is done in mail_reply
        (with passing NULL) it will only be able to continue if the mailer
        has already been configured.
        (reply_to_all): Same.

svn path=/trunk/; revision=5984
2000-10-18 10:51:55 +00:00
ee5eeb1dd2 No, we REALLY dont want to perform an immediate search as the keys are
2000-10-18  Not Zed  <NotZed@HelixCode.com>

        * folder-browser.c (folder_browser_gui_init): No, we REALLY dont
        want to perform an immediate search as the keys are pressed.

        * mail-display.c (on_object_requested): Kill a minor warning with
        a cast.

        * mail-config.c: Include mising ctype.h to kill a warning.

        * message-thread.c (main): Fixed the test case for api changes.

        * message-list.c (message_list_drag_data_get): Set some flags to
        get_folder().  I dont even think this will work because
        mail_tool_get_folder doesn't handle file url's.

        * mail-vfolder.c (vfolder_uri_to_folder): Pass appropriate flags.

        * mail-ops.c (do_setup_folder): Pass appropriate flags.  Hmm,
        whats the difference between setup and create.  *shrug*
        (do_create_folder): Pass appropriate flags to get_folder.  Needs a
        way to specify the index flag.

        * mail-tools.c (mail_tool_get_folder_from_urlname): Changed create
        to flags argument.
        (mail_tool_get_local_inbox_url): Add an index argument.
        (mail_tool_get_local_inbox): honour index flag.
        (mail_tool_get_inbox): Changed for api change.
        (mail_tool_uri_to_folder): Fixed calls to store_get_folder();

        * mail-local.c (load_metainfo): Added an indexed field to the metainfo.
        (save_metainfo): And save it too.
        (do_reconfigure_folder): Honour index flag when creating the new
        folder.  Do not open the old folder with an index at all.
        (mail_local_map_uri): Add an index argument - tells if the mbox is
        indexed.
        (mail_tool_local_uri_to_folder): Create & pass flags properly.
        (#include gnome.h): Dont include all of gnome, just what we use,
        and explicity include xml-memory, so we get xmlFree().

svn path=/trunk/; revision=5979
2000-10-18 06:13:12 +00:00
08d9c142f4 Un #if 0'd out (search_full): Same. (folder_browser_gui_init): Connect
2000-10-16  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser.c (search_full_clicked): Un #if 0'd out
	(search_full): Same.
	(folder_browser_gui_init): Connect search_full and search_activate.
	(search_set): Uncomment search_full()

	* Makefile.am: Re-add `mail-search-dialogue.h' and
	`mail-search-dialogue.c'.

svn path=/trunk/; revision=5957
2000-10-17 00:07:18 +00:00
92e14ae179 fixed ChangeLog merge-conflict errors
svn path=/trunk/; revision=5956
2000-10-16 23:49:29 +00:00
1eae52cc66 Decode recipient names so that they display nicely in the To and Cc
2000-10-16  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-format.c (mail_generate_reply): Decode recipient names so
	that they display nicely in the To and Cc fields.
	(write_field_to_stream): Now takes another argument
	'value_is_encoded' so that we know if we should decode that string
	before proceding onward. Since the message subject is already
	decoded before it's passed in, we don't want to decode it again
	(wasted cpu time and/or any 8bit chars will be assumed to be
	latin1 encoded and thus the decoded value will be corrupt).

svn path=/trunk/; revision=5955
2000-10-16 23:48:14 +00:00
abd69f08ad only set the url->user field if the user string is non-NULL and not empty.
2000-10-16  Chris Toshok  <toshok@helixcode.com>

	* mail-config-gui.c (service_page_get_url): only set the url->user
	field if the user string is non-NULL and not empty.

svn path=/trunk/; revision=5953
2000-10-16 23:22:26 +00:00
1bf57bb0d6 Uh, fixed jeff's wrong fix for setting the speficiation (the function
2000-10-16  Not Zed  <NotZed@HelixCode.com>

        * message-list.c (message_list_setup_etable): Uh, fixed jeff's
        wrong fix for setting the speficiation (the function changed to
        set_state(), as can be seen in the e_table-scrolled_load_state()
        call only 2 lines above).

svn path=/trunk/; revision=5938
2000-10-16 06:31:18 +00:00