Commit Graph

71 Commits

Author SHA1 Message Date
b2ae704032 update for CamelStream changes.
* mail-format.c: update for CamelStream changes.

svn path=/trunk/; revision=2631
2000-04-26 14:40:43 +00:00
23bcb0bbd8 add a convert_space_hack flag, which turns N spaces into N-1  s and a
* mail-format.c (text_to_html): add a convert_space_hack flag,
	which turns N spaces into N-1  s and a space.
	(handle_text_plain): Check for "format=flowed" in the
	Content-Type.
	(handle_text_plain_flowed): Spinoff of handle_text_plain to deal
	with RFC 2646 flowed text. (All the examples I can find of it
	are generated by Eudora, but it's a pretty cool idea that ought
	to be used more widely.)

svn path=/trunk/; revision=2618
2000-04-26 00:36:31 +00:00
11ca787488 Now that we're not limited to a single GtkHTML for the display, there's no
* mail-format.c, mail-display.c: Now that we're not limited to
	a single GtkHTML for the display, there's no reason to embed
	Bonobo objects for unrecognized content-types in GtkHTML rather
	than embedded them into the vbox directly. So do that.

	Meanwhile, fix up the handler-selection code so that we can
	declare which built-in handlers are more desirable than external
	handlers and which are less. (Of course, eventually we'll want
	this to be customizable.) Add some cleverness to
	handle_multipart_alternative as well so it doesn't accept an
	alternative which we can display generically over one we can
	display specifically.

svn path=/trunk/; revision=2616
2000-04-25 23:00:52 +00:00
abc010d5a5 (reply_body): Make this deal better with multiparts.
svn path=/trunk/; revision=2612
2000-04-25 19:10:02 +00:00
a8b75db188 (setup_function_table): pass unknown text subtypes to
handle_text_plain.
	(handle_multipart_appledouble): new handler. Just ignores the
	first (application/applefile) part and tries to display the
	second part. Since the second part is usually
	application/octet-stream, this doesn't work very well still
	usually.

svn path=/trunk/; revision=2611
2000-04-25 19:09:19 +00:00
a595bef604 Fix some bugs that crept into reply generation. This needs a lot more work
* mail-format.c (reply_body): Fix some bugs that crept into reply
	generation. This needs a lot more work to deal correctly with
	complicated bodies.

svn path=/trunk/; revision=2602
2000-04-25 15:29:12 +00:00
9713f20bc8 Redo large chunks of this. The mail display now consists of a vbox in a
* mail-display.c, mail-format.c: Redo large chunks of this. The
	mail display now consists of a vbox in a scrolled window, in which
	we put multiple GtkHTML objects. This means broken HTML in one
	part can't corrupt other parts. The headers now scroll with the
	body. Unrecognized attachments look prettier, but still don't do
	anything, and will probably be changed later. We can also now
	display nested message/rfc822 parts and multipart/alternatives
	with multipart subparts. Oh, and text/{richtext,enriched}, since
	we had all these ancient sample messages that use it and the lack
	of support annoyed me. :)

	Bonobo embeddables are broken right now, but I don't think that's
	my fault.

svn path=/trunk/; revision=2601
2000-04-25 14:59:08 +00:00
4c1c537e19 rename "send" to "send_msg", to avoid name clash with the tcp function.
* folder-browser-factory.c: rename "send" to "send_msg", to avoid
	name clash with the tcp function. Connect the "forward" button.

	* mail-ops.c: rename "send" to "send_msg", to avoid name clash
	with the tcp function. Add forward_msg function.

	* mail-format.c (mail_generate_forward): support function for
	forward_msg. Pretty much a big kludge right now, pending the
	attachment/attachment-bar changes.

svn path=/trunk/; revision=2562
2000-04-23 17:15:07 +00:00
76160580a6 Change cid expectations to match current camel reality.
* mail-display.c (on_url_requested): Change cid expectations to
	match current camel reality.

svn path=/trunk/; revision=2558
2000-04-22 22:38:57 +00:00
034b50a321 call glade_gnome_init, for composer.
* main.c (main): call glade_gnome_init, for composer.

svn path=/trunk/; revision=2556
2000-04-22 18:46:49 +00:00
f5ec554c15 move msg_composer_cb and msg_composer_send_cb to mail-ops. Attach send,
* folder-browser-factory.c: move msg_composer_cb and
	msg_composer_send_cb to mail-ops. Attach send, reply, and "reply
	to all" buttons.

	* mail-ops.c (composer_send_cb, send): moved from
	folder-browser-factory.c.
	(reply_to_sender, reply_to_all): new functions to do replies.

	* mail-format.c (text_to_html): Add an "add_pre" flag, to make
	it wrap the output in <pre></pre>.
	(mail_generate_reply): New function to create a composer and build
	a reply in it.

svn path=/trunk/; revision=2554
2000-04-22 18:07:14 +00:00
8ff61b81c5 deal with cid: URLs. (find_cid): helper routine for above. (This could be
* mail-display.c (on_url_requested): deal with cid: URLs.
	(find_cid): helper routine for above. (This could be much better.)
	(mail_display_init): connect url_requested signal

	* mail-format.c (handle_multipart_related): Make this work.

svn path=/trunk/; revision=2542
2000-04-21 05:12:05 +00:00
dc1d13533c ref the message we display, since we're going to unref it when we remove
* mail-display.c (mail_display_set_message): ref the message we
	display, since we're going to unref it when we remove it. Fixes a
	bug that showed up with the new camel code, but it's not obvious
	if it's due to a bug or a feature in the new code.

svn path=/trunk/; revision=2541
2000-04-21 05:01:35 +00:00
a54e4b1074 Oops, remove some debug i put there.
2000-04-20  NotZed  <NotZed@HelixCode.com>

	* message-list.c:
	(ml_row_count): Oops, remove some debug i put there.

svn path=/trunk/; revision=2535
2000-04-21 00:05:24 +00:00
6b5b1f6de9 Add libibex.la to link.
2000-04-20  NotZed  <NotZed@HelixCode.com>

        * Makefile.am (evolution_mail_LDADD): Add libibex.la to link.

        * message-list.h: Removed folder summary.

        * message-list.c: Dont include folder-summary anymore.
        (select_msg): Changed to use folder, not summary in
        summary_get_message_info().  God this code is grotty.
        (ml_value_at): Ditto.
        (ml_value_at): Changed to use new interface.  Hmm, this returns a
        static variable, that seems wrong.
        (message_list_set_folder): Remove folder summary.

svn path=/trunk/; revision=2530
2000-04-20 23:47:40 +00:00
61c60ece01 update for bonobo change, and remove a now-unused variable.
* mail-display.c: update for bonobo change, and remove a
	now-unused variable.

svn path=/trunk/; revision=2525
2000-04-20 17:32:25 +00:00
7aa932f07e new function, actually calls select_msg. (on_row_selection_cmd): register
* message-list.c (on_row_selection_idle): new function, actually
	calls select_msg.
	(on_row_selection_cmd): register an idle instead of calling
	select_msg directly.  this fixes the lag before the row is
	selected - selection is instantaneous now, with message loading
	happening afterward.

	* message-list.h: add row_to_select and an idle_id to the message
	list to make the select_msg call happen in an idle func.

svn path=/trunk/; revision=2470
2000-04-17 07:59:16 +00:00
ece07d1b3a no more e_cell_set_editable. this info always comes from the model.
* message-list.c (message_list_init_renderers): no more
	e_cell_set_editable.  this info always comes from the model.

svn path=/trunk/; revision=2469
2000-04-17 06:51:45 +00:00
b172457252 Moved from camel/camel-formatter, and changed slightly. (More to come.)
2000-04-14  Dan Winship  <danw@helixcode.com>

	* mail-format.[ch]: Moved from camel/camel-formatter, and changed
	slightly. (More to come.)

	* html-stream.[ch]: No longer necessary. mail-format uses
	GtkHTMLStreamHandles directly.

	* mail-display.[ch]: update for new message formatting code.

svn path=/trunk/; revision=2438
2000-04-14 21:11:56 +00:00
ff436c34dc use gnome_app_fill_toolbar_with_data, so we get the beautiful gnome
* folder-browser-factory.c (control_activate): use
	gnome_app_fill_toolbar_with_data, so we get the beautiful gnome
	toolbar.

svn path=/trunk/; revision=2427
2000-04-14 16:49:49 +00:00
da9fc39c3f Fix up the warning message a bit. (folder_browser_factory): Make the
* folder-browser-factory.c (development_warning): Fix up the
	warning message a bit.
	(folder_browser_factory): Make the warning bypassable.

svn path=/trunk/; revision=2425
2000-04-14 14:43:00 +00:00
3ef836d8a7 Fix the embarassing cursor bug.
Fix the embarassing cursor bug.

svn path=/trunk/; revision=2404
2000-04-12 04:50:02 +00:00
e90765d2f6 Add some #includes for the non-HAVE_MKSTEMP case
* mail-ops.c: Add some #includes for the non-HAVE_MKSTEMP case

svn path=/trunk/; revision=2361
2000-04-10 15:49:55 +00:00
c4f6086c29 use camel_movemail when fetching mail from an mbox store. This leaves
* mail-ops.c (fetch_mail): use camel_movemail when fetching mail
	from an mbox store. This leaves behind temp files for now,
	because CamelMboxFolder::delete is too confused to use, and NotZed
	is rewriting CamelMboxFolder, so I'm not going to bother to try to
	fix it.

svn path=/trunk/; revision=2359
2000-04-10 14:39:15 +00:00
01bf08bdbc + * addressbook/gui/component/addressbook.c (addressbook_factory):
+	Added gtk_widget_push/pop_colormap/visual, which I assume is
+	necessary for canvas use.
+
+	* folder-browser.c (folder_browser_new): set folder_browser->uri
+	to NULL, so that we know when to free it.
+
+	* e-table-col.c (e_table_col_new_with_pixbuf): ref etc->ecell,
+	like in e_table_col_new, since that same ECell is unref'd in
+	etc_destroy().
+

svn path=/trunk/; revision=2350
2000-04-09 06:47:20 +00:00
e41189606e Add more beautiful art from Miggue, the Diego Rivera of the next
2000-04-07  Miguel de Icaza  <miguel@gnu.org>

	* message-list.c (states_pixmaps): Add more beautiful art from
	Miggue, the Diego Rivera of the next millenium.
	(message_list_init_header): Use the beautiful art.

	* pixmaps: Miguel rediscovers the "transparent" concept.

svn path=/trunk/; revision=2335
2000-04-07 21:58:59 +00:00
59606c2849 + * folder-browser.c (folder_browser_destroy): Unref the shell
+	interface that we have a handle to.
+
+	* folder-browser-factory.c (control_destroy_cb): New function;
+	destroys a folder-browser when its control is destroyed.
+	(folder_browser_factory): Hook up to the above.
+
+	* e-shell-view.c (destroy_folder_view): New function;
+	Bonobo_Unknown_unref's the controls that have the views in them.
+	(esv_destroy): Calls the above for each folder_view in the
+	hashtable.
+	(get_view): unref the ServiceRepository interface of the control
+	when we're done with it.
+

svn path=/trunk/; revision=2333
2000-04-07 21:42:56 +00:00
2b55a1e90c new file, for toolbar/menu callbacks (fetch_mail): fetch mail. Doesn't do
* mail-ops.c: new file, for toolbar/menu callbacks
	(fetch_mail): fetch mail. Doesn't do mbox locking. Many kludges.

	* folder-browser-factory.c (control_activate): use new fetch_mail
	function as the callback for the "New mail" icon. Rename check_cb
	to random_cb.

	* Makefile.am: don't build test-sources since the version in
	CVS doesn't do much and once I've fixed it it won't be a separate
	program. Add mail-ops.[ch].

svn path=/trunk/; revision=2330
2000-04-07 20:07:32 +00:00
bbc6d63ef0 Load the icons from the installation path, not form the GNOME-libs
2000-04-06  Miguel de Icaza  <miguel@gnu.org>

	* shell/e-shortcut.c (shell_icon_cb): Load the icons from the
	installation path, not form the GNOME-libs installation prefix.
	(shell_icon_cb): Memory leak fix.

	* shell/Makefile.am (imagesdir): Pass the EVOLUTION_IMAGES
	installation directory here.

	* art/Makefile.am (images_DATA): Renamed from pixmaps to images.

2000-04-06  Miguel de Icaza  <miguel@gnu.org>

	* message-list.c: Stick pixmaps here.

	* mail-display.c (embeddable_destroy_cb): Replaced C++ comments
	with C comments.

	* message-list.c (load_internal_images): New function, loads images.
	(message_list_init_renderers): Load images, fix previous attempt
	at loading images.

	* Makefile.am (dist-hook): Added distribution of pixmaps.

	* pixmaps: New directory, used to hold the XPMs we ship with.

	* pixmaps/envelope-closed.xpm, pixmaps/envelope-open.xpm: Tigert's
	envelopes incorporated.
2000-04-06  Miguel de Icaza  <miguel@gnu.org>

	* e-cell-text.c: Killed ARG_EDITABLE.
	(ect_event): Updated to new editable setup.
	(e_cell_text_new): Kill editable argument.

	* e-cell-toggle.c (etog_event): Handle editability here

	* e-cell-text.h: Removed editable bit field from here, it is now
	taken care at the e-cell level.

	* e-cell.c (e_cell_set_editable): New function.
	(e_cell_init): Set editable to TRUE by default.

	* test-check.c (check_test): update to new api

	* test-table.c (table_browser_test): ditto.
	(do_e_table_demo): ditto.

	* test-cols.c (multi_cols_test): ditto

svn path=/trunk/; revision=2302
2000-04-06 06:46:20 +00:00
98690e9f75 update to new property API.
svn path=/trunk/; revision=2278
2000-04-01 20:54:32 +00:00
74b6039c52 remove debugging printf()s that no longer seem useful
svn path=/trunk/; revision=2274
2000-04-01 04:16:39 +00:00
4435a5db63 Call bonobo_control_frame_activate on the folder_view every time it is
* shell/e-shell-view.c (e_shell_view_set_view): Call
	bonobo_control_frame_activate on the folder_view every time it
	is displayed, and bonobo_control_frame_deactivate every time it is
	hidden.

	* folder-browser-factory.c (control_activate): build a toolbar.
	(control_deactivate): and hide it.

svn path=/trunk/; revision=2250
2000-03-30 00:22:56 +00:00
bd46ea2926 quiet warnings when building in ../po
* mail-display.c: quiet warnings when building in ../po

svn path=/trunk/; revision=2204
2000-03-28 03:02:12 +00:00
b91ef9d4eb Memory leak fix.
2000-03-26  Miguel de Icaza  <miguel@gnu.org>

	* folder-browser-factory.c (folder_browser_set_shell): Memory leak
	fix.

svn path=/trunk/; revision=2175
2000-03-27 03:27:49 +00:00
1e77b479c3 update for summary changes. Hey, neat, it really does make it more
* message-list.c (select_msg, ml_value_at): update for summary
	changes. Hey, neat, it really does make it more efficient.

svn path=/trunk/; revision=2160
2000-03-25 05:20:41 +00:00
58aa78c64b Updated .cvsignore files
svn path=/trunk/; revision=2151
2000-03-23 03:45:27 +00:00
c8ca65e286 Minor cleanup & commenting.
* mail-display.c: Minor cleanup & commenting.

	* folder-browser-factory.c: Minor cleanup & warning elimination.

svn path=/trunk/; revision=2134
2000-03-21 17:43:42 +00:00
d433fb48d2 display message size
2000-03-21  bertrand  <bertrand@helixcode.com>

	* message-list.c (ml_value_at): display message size

2000-03-21  bertrand  <bertrand@helixcode.com>

	* providers/mbox/camel-mbox-summary.c
	(camel_mbox_summary_append_internal_to_external): copy the size field

	* providers/mbox/camel-mbox-folder.c (_get_message_by_uid): initialize
	message_info to NULL

	* camel-folder-summary.h: added the size field.

	* providers/mbox/camel-mbox-summary.h:
	added the received_date field.

svn path=/trunk/; revision=2133
2000-03-21 15:28:36 +00:00
5bc23d188a Properly ref & sink the table and header models.
2000-03-20  Christopher James Lahey  <clahey@helixcode.com>

        * message-list.c: Properly ref & sink the table and header models.

svn path=/trunk/; revision=2126
2000-03-21 02:54:37 +00:00
20bac51868 First cut at a mail source selection wizard. Basically a rigged demo at
* mail-sources.c: First cut at a mail source selection wizard.
	Basically a rigged demo at this point. Doesn't use camel to get
	its information, and is not yet complete or integrated with the
	mail component. Did I mention that the code is ugly?

svn path=/trunk/; revision=2117
2000-03-14 18:23:12 +00:00
2a3293368b i2000-03-13 bertrand <bertrand@helixcode.com>
* folder-browser-factory.c (folder_browser_set_shell):
	for testing and demonstration purpose, immediately
	register a fake service.

2000-03-13  bertrand  <bertrand@helixcode.com>

	* shell/e-shell.c (EShell_register_service):
	test implementation. Show the uri and the type
	of service that	has just been registered.


Test the registering mechanism. Actually seems to work well.

svn path=/trunk/; revision=2112
2000-03-13 06:53:48 +00:00
b380094567 once we have the bonobo control widget, disable the autoactivation and
2000-03-13  bertrand  <bertrand@helixcode.com>

	* shell/e-shell-view.c (get_view):
	once we have the bonobo control widget,
	disable the autoactivation and activate
	the control frame.

2000-03-12  bertrand  <bertrand@helixcode.com>

	* folder-browser-factory.c (folder_browser_factory_init):
	name change.
	(control_activate_cb): when the control is activated,
	it merges its own UI with the remote UIHandler.
	(control_add_menu): sample menu merging.
	(folder_browser_factory): connect the control "activate" signal.


(Bonobo control / shell view) UIMenu merging.

svn path=/trunk/; revision=2110
2000-03-13 05:04:31 +00:00
b21cd06a46 name change
2000-03-12  bertrand  <bertrand@helixcode.com>

	* shell/e-shell-view.c (get_view): name change

2000-03-12  bertrand  <bertrand@helixcode.com>

	* folder-browser-factory.c (folder_browser_factory_init):
	name change.

	* evolution-mail.gnorba:
	name changes

svn path=/trunk/; revision=2109
2000-03-13 01:56:12 +00:00
4ec9945f05 added the get_e_folder_type function.
2000-03-12  bertrand  <bertrand@helixcode.com>

	* shell/e-folder.c (e_folder_get_folder_type): added the
	get_e_folder_type function.

2000-03-12  bertrand  <bertrand@helixcode.com>

	* folder-browser.h: added a reference to an
	Evolution::Shell object.

	* folder-browser-factory.c (folder_browser_set_shell):
	(folder_browser_control_add_service_repository_interface):
	(folder_browser_factory): the folder-browser control now
	implements the Evolution/ServiceRepository interface.

Sync for matt

svn path=/trunk/; revision=2108
2000-03-13 00:10:21 +00:00
0bfae7d16b added a warning so that the user knows that this version may crash his
2000-03-07  bertrand  <bertrand@helixcode.com>

	* folder-browser-factory.c (development_warning):
	added a warning so that the user knows that this
	version may crash his mails.

svn path=/trunk/; revision=2078
2000-03-07 18:38:08 +00:00
7c164f12b9 More changes than a man can remember.
The UI works now.

svn path=/trunk/; revision=2074
2000-03-06 09:38:42 +00:00
645f69dcf6 Added a prototype message listing.
2000-03-05  Christopher James Lahey  <clahey@helixcode.com>

        * message-list.c: Added a prototype message listing.

svn path=/trunk/; revision=2059
2000-03-05 14:51:49 +00:00
391ccf4561 Set up the column headers properly.
2000-03-04  Christopher James Lahey  <clahey@helixcode.com>

        * message-list.c: Set up the column headers properly.

        * folder-browser.c: Show the folder_browser widget.

svn path=/trunk/; revision=2050
2000-03-04 23:12:14 +00:00
399bef75b8 Define ml_duplicate_value and ml_free_value correctly.
2000-03-04  Christopher James Lahey  <clahey@helixcode.com>

        * message-list.c: Define ml_duplicate_value and ml_free_value
        correctly.

svn path=/trunk/; revision=2048
2000-03-04 22:27:47 +00:00
6500f64181 Use g_int_compare and g_str_compare as we should be instead of g_int_equal
2000-03-04  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c: Use g_int_compare and g_str_compare as we should
	be instead of g_int_equal and g_str_equal.

svn path=/trunk/; revision=2046
2000-03-04 21:38:40 +00:00