Commit Graph

204 Commits

Author SHA1 Message Date
Jeffrey Stedfast 0eaa485626 added new notebook page to the prividers config dialog for slecting text/plain or multipart/alternative
svn path=/trunk/; revision=3403
2000-06-02 20:08:16 +00:00
Dan Winship dc11e4ea91 If the date in the summary is 0, output "?".
* message-list.c (filter_date): If the date in the summary is 0,
	output "?".

svn path=/trunk/; revision=3400
2000-06-02 19:49:50 +00:00
Dan Winship a1c7c6ef0e keep a GList of folder browsers created (owner_unset_cb): Go through the
* component-factory.c (create_view): keep a GList of folder
	browsers created
	(owner_unset_cb): Go through the list and close each folder before
	exiting so they sync their summary state, etc to disk.

svn path=/trunk/; revision=3393
2000-06-02 18:46:50 +00:00
Dan Winship a9959a65c2 Use camel_service_connect, not connect_with_url, since we already passed
* mail-ops.c (fetch_mail): Use camel_service_connect, not
	connect_with_url, since we already passed the URL into
	camel_session_get_store.

svn path=/trunk/; revision=3392
2000-06-02 18:13:17 +00:00
Christopher James Lahey efc9f990dc Use camel_folder_free_summary instead of g_ptr_array_free. Unref the
2000-06-02  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c: Use camel_folder_free_summary instead of
	g_ptr_array_free.  Unref the folder when we're done with it.

svn path=/trunk/; revision=3389
2000-06-02 16:13:52 +00:00
Christopher James Lahey ad538c1743 Revert removal of e_setup_base_dir.
2000-06-02  Christopher James Lahey  <clahey@helixcode.com>

	* session.c: Revert removal of e_setup_base_dir.

svn path=/trunk/; revision=3379
2000-06-02 04:57:02 +00:00
Dan Winship a161070ec2 Connect to ETable's key_press signal. (etable_key): scroll mail on
* folder-browser.c (my_folder_browser_init): Connect to ETable's
	key_press signal.
	(etable_key): scroll mail on space/backspace.

svn path=/trunk/; revision=3375
2000-06-02 04:29:06 +00:00
Jeffrey Stedfast 0dbb51b147 spelling changes in commenst!
er, comments...I did it again!!!

svn path=/trunk/; revision=3374
2000-06-02 04:28:34 +00:00
Christopher James Lahey 1c8ef2ee53 Made sent column as wide as from column.
2000-06-02  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c: Made sent column as wide as from column.

svn path=/trunk/; revision=3373
2000-06-02 04:27:30 +00:00
Jeffrey Stedfast 6ae8bfaa44 source editor now fills in fields
svn path=/trunk/; revision=3372
2000-06-02 04:19:40 +00:00
Jeffrey Stedfast 32bbb67932 was using the wrong clist row variable in the callbacks for the sources clist
svn path=/trunk/; revision=3371
2000-06-02 04:00:46 +00:00
Dan Winship df39895417 Add a date column. (COL_SENT_WIDTH_MIN): Make this wider. (ml_value_at):
* message-list.c: Add a date column.
	(COL_SENT_WIDTH_MIN): Make this wider.
	(ml_value_at): return the sent date (as a time_t) for COL_SENT.
	(Fix COL_TO too while I'm here.)
	(ml_duplicate_value, ml_free_value, ml_initialize_value,
	ml_value_is_empty): COL_SENT is numeric now.
	(message_list_init_renderers): Create a date renderer (using
	text_filter to translate the time_t into a string).
	(message_list_init_header): Use render_date for COL_SENT.

svn path=/trunk/; revision=3365
2000-06-02 02:32:10 +00:00
Christopher James Lahey 9a36dd9a0a Don't call e_setup_base_dir.
2000-06-01  Christopher James Lahey  <clahey@helixcode.com>

	* session.c: Don't call e_setup_base_dir.

svn path=/trunk/; revision=3361
2000-06-02 02:17:53 +00:00
Dan Winship 5ab6198e11 Fix forwarding to work for people other than me. :) [Although apparently
* mail-format.c (mail_generate_forward): Fix forwarding to work
	for people other than me. :) [Although apparently it doesn't
	really.]

svn path=/trunk/; revision=3357
2000-06-02 01:08:25 +00:00
Dan Winship 9f325587d4 Add a quick hack to move the selection down a row when you delete a
* mail-ops.c (delete_msg): Add a quick hack to move the selection
	down a row when you delete a message.

svn path=/trunk/; revision=3355
2000-06-02 00:34:06 +00:00
Dan Winship 7057267267 use <blockquote> rather than <center><table border=1 width=95%> to frame
* mail-format.c (handle_message_rfc822): use <blockquote> rather
	than <center><table border=1 width=95%> to frame the embedded
	message. If <pre> text in the subtable won't fit in the 95% width,
	GtkHTML will write past the border of the table (and
	<blockquote><table border=1> causes creeping updates so it's not
	usable for now).

svn path=/trunk/; revision=3352
2000-06-02 00:20:30 +00:00
Christopher James Lahey 94b600a500 Turn off the grid in our ETable.
2000-06-01  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c (message_list_init): Turn off the grid in our
	ETable.

svn path=/trunk/; revision=3349
2000-06-01 23:56:40 +00:00
Jeffrey Stedfast 5aa154015f identity and source clists are now filled in as well as the transport notebook page in the providers_config dialog when created
svn path=/trunk/; revision=3346
2000-06-01 23:38:55 +00:00
Dan Winship 66f4e5ce1c Oops. This needs to take a message argument because we might be writing
* mail-format.c (write_headers): Oops. This needs to take a
	message argument because we might be writing headers for an
	embedded message/rfc822 subpart rather than the root document.

svn path=/trunk/; revision=3343
2000-06-01 22:35:07 +00:00
Jeffrey Stedfast 8f4bcac53f fixed a segfault in service_acceptable()
in mail-config.c

svn path=/trunk/; revision=3341
2000-06-01 22:20:29 +00:00
Jeffrey Stedfast cc8422198a Finished the configuration dialogs and renamed some Tools/ menu items
this should also fix the bug where the VFolders menu item isn't removed when using the Calendar/etc

svn path=/trunk/; revision=3336
2000-06-01 18:27:48 +00:00
Ettore Perazzoli 746f1858b4 Make the mail folder browser use EScrollFrame for a nicer look.
svn path=/trunk/; revision=3328
2000-06-01 05:34:13 +00:00
Dan Winship 185727ca81 Quit when the shell exits. This is a kludge, but a pretty necessary one
* component-factory.c (owner_unset_cb): Quit when the shell exits.
	This is a kludge, but a pretty necessary one until the refcounting
	bugs that keep the component from exiting properly are fixed.

svn path=/trunk/; revision=3323
2000-06-01 04:09:01 +00:00
Jeffrey Stedfast f0a948ea32 Closer to having a working configuration dialog working, source configuration partially works (in that it displays the dialogs) but the popup still segfaults fairly nastily
svn path=/trunk/; revision=3322
2000-06-01 04:01:39 +00:00
Dan Winship fdedf8998b Fix up memory management of x-evolution-data URLs so the URLs and/or their
* mail-format.c (free_url, handle_text_enriched,
	get_url_for_icon): Fix up memory management of x-evolution-data
	URLs so the URLs and/or their data don't get freed while there are
	still references to them.

	* message-list.c (message_list_init_header): redo the (unused)
	online status column to no longer refer to pixmaps that no longer
	exist.

svn path=/trunk/; revision=3320
2000-06-01 03:51:04 +00:00
Ettore Perazzoli 7d0efdf785 Make the toolbar look like a standard GNOME toolbar my putting it into
a GtkFrame.  Also, make sure it cannot be dragged to the left or right
of the dock, because with the current non-BonoboUIHandler system we
use it causes bad bad things to happen.

svn path=/trunk/; revision=3319
2000-06-01 03:46:13 +00:00
Jeffrey Stedfast ebdac7989a config dialog will now allow identities to be added, edited and deleted
settings are now saved when the config dialog is exited via the OK button
(only 1 identity is saved due to the fact that that is all the config file will allow)

svn path=/trunk/; revision=3316
2000-06-01 00:45:39 +00:00
Dan Winship 74ff74bf9b Initialize the "urls" hash table stored on the message and store cid and
* mail-format.c (mail_format_mime_message): Initialize the "urls"
	hash table stored on the message and store cid and other URLs
	there rather than as object data on the message.
	(get_cid): rewrite this a bunch
	(handle_text_enriched): move the code from write_iframe_string()
	into here, since it's the only place that actually needs it.
	(handle_text_html): simplify this a lot. We can use a cid: URL
	here rather than x-evolution-data.
	(get_url_for_icon): New routine to return URLs for icons, and
	cache the results, so we don't have to keep re-reading the icon
	files (and so we can't be spoofed into reading non-icon files).
	(handle_mystery, handle_audio): use get_url_for_icon.

	* mail-display.c (save_data): move the CamelMimePart filename
	extracting code from get_cid to here.
	(on_link_clicked, on_object_requested): Update for cid: changes.
	(on_url_requested): Kill off the kludgy, exploitable x-gnome-icon
	URL schema, update cid and x-evolution-data to match
	mail-format.c.

	It should now be easier to implement RFC 2557 (Content-Location,
	etc), but that RFC still pretty much sucks.

svn path=/trunk/; revision=3314
2000-05-31 20:47:22 +00:00
Dan Winship ae15900672 Redo this back to the old way: a single GtkHTML with various things inline
* mail-format.c: Redo this back to the old way: a single GtkHTML
        with various things inline in it. (Gets rid of flicker, simplifies
        some scrolling, selecting, and printing issues.)
        (handle_text_enriched, handle_text_html): Use <iframe>s for these,
        to protect the rest of the document from their possibily invalid
        HTML.
        (handle_via_bonobo): Use (new-and-improved) <object> tags for
        this, moving most of the work back into mail-display.c

        * mail-display.c (on_object_requested): Move the Bonobo embedding
        code back here again (reorganized a bit).
        (on_url_requested): add x-evolution-data handler, for iframe
        bodies.
        (mail_html_new, mail_html_end): removed
        (mail_display_set_message, mail_display_new): Update for NWO.

svn path=/trunk/; revision=3312
2000-05-31 14:29:24 +00:00
Michael Zucci 2e24bc8d33 Removed merge cruft.
svn path=/trunk/; revision=3302
2000-05-30 23:28:18 +00:00
Not Zed 9c6a4c53a9 Properly encode the search string.
2000-05-30  Not Zed  <NotZed@HelixCode.com>

        * folder-browser.c (search_set): Properly encode the search string.

svn path=/trunk/; revision=3301
2000-05-30 22:54:37 +00:00
Jeffrey Stedfast 7b37caa734 Implemented the Transport section of the configuration dialog window
and fixed several memory leaks inside of mail-config.c

svn path=/trunk/; revision=3299
2000-05-30 22:44:53 +00:00
Dan Winship b130feadab oops. use the seen and unseen icons to represent the right things. :)
svn path=/trunk/; revision=3296
2000-05-30 21:59:35 +00:00
Dan Winship 0088d69b40 use the "new" tigert pixmaps rather than the older ones. Includes a
* message-list.c: use the "new" tigert pixmaps rather than the
	older ones. Includes a "replied to" icon (which is used now), but
	no "deleted" icon (although we have the strikeout renderer for
	that now).

svn path=/trunk/; revision=3295
2000-05-30 21:58:30 +00:00
Dan Winship c7381e8f14 call e_table_model_row_changed, not e_table_model_changed so we do less
* message-list.c (message_changed): call
	e_table_model_row_changed, not e_table_model_changed so we do less
	work, and don't lose the current selection.
	(select_msg): Set up a timer to mark the displayed message as
	"seen" if it's selected for longer than 1.5 seconds (a number
	pulled out of Matt's butt).
	(ml_value_at): Use the MESSAGE_STATUS column for read/unread as
	well as deleted.

svn path=/trunk/; revision=3293
2000-05-30 21:43:40 +00:00
Christopher James Lahey f0ec699349 Added bold for unread messages.
2000-05-30  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c, message-list.h: Added bold for unread messages.

svn path=/trunk/; revision=3292
2000-05-30 20:59:12 +00:00
Jeffrey Stedfast eaddfcefea commit'd changelog :)
explains my last commit in much finer detail

svn path=/trunk/; revision=3288
2000-05-30 17:52:01 +00:00
Jeffrey Stedfast 8e70b18c3f started to add a camel provider configuration tool
svn path=/trunk/; revision=3287
2000-05-30 17:46:17 +00:00
Christopher James Lahey 0ae2ea2e32 Switched to using "cursor_change" signal instead of "row_selection" for
2000-05-30  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c: Switched to using "cursor_change" signal instead
	of "row_selection" for switching messages.  Select the first row
	(still doesn't work because of ETable.)  Adapt to some small
	ETable changes.  Set drawfocus to FALSE.

svn path=/trunk/; revision=3278
2000-05-30 13:21:41 +00:00
Not Zed bebbdbbbcb Hardcode the vfolder source to just the inbox (so at least it returns
2000-05-29  Not Zed  <NotZed@HelixCode.com>

        * folder-browser.c (folder_browser_load_folder): Hardcode the
        vfolder source to just the inbox (so at least it returns
        something).

        * component-factory.c (create_test_storage): Create a vfolder dir
        first, and put the folders in that.
        (create_test_storage): Create the storage as VFolders, not
        "storage_name" :)

svn path=/trunk/; revision=3269
2000-05-29 20:39:19 +00:00
Dan Winship 0c991132ab helper function since we need to set "modal" on the dialogs returned by
* mail-config.c (error_dialog): helper function since we need to
	set "modal" on the dialogs returned by gnome_error_dialog to make
	them work when popped up from the modal Druid.
	(service_acceptable): New function to check if the info entered on
	a store/transport page actually checks out.
	(mail_config_druid): Connect to the "next" signal on the store and
	transport pages and don't let the user continue if the data is
	bad and "check this before continuing" is checked. Also, only
	display sources/transports in the "mail" domain. (Ie, not
	"vfolder".)

svn path=/trunk/; revision=3255
2000-05-28 21:29:56 +00:00
Dan Winship fbd1a80e31 Use foo@bar' rather than <foo@bar>' for recipient with no name.
* mail-format.c (write_recipients_to_stream): Use `foo@bar' rather
	than `<foo@bar>' for recipient with no name.

svn path=/trunk/; revision=3247
2000-05-28 17:36:31 +00:00
Dan Winship 55864c766c don't put up an error message if the user cancels the password dialog.
* mail-ops.c (fetch_mail): don't put up an error message if the
	user cancels the password dialog.

svn path=/trunk/; revision=3245
2000-05-28 17:00:53 +00:00
Not Zed 5b887fe6dc vfolder gui! So you can define them,k they show up in the list (well,
after a restart), but they always come up empty - doesn't search any
folders yet.

2000-05-27  Not Zed  <NotZed@HelixCode.com>

        * Makefile.am (SHELL_OBJS): Include mail storage so we can
        initialise folders.

        * component-factory.c (create_test_storage): Parses vfolder
        defintions and adds them to the storage.  Definetly needs more
        work.

        * folder-browser-factory.c (control_activate): Add the VFolder
        druid menu item.
        (control_deactivate): And remove it.

        * mail-ops.c (vfolder_editor_clicked): For editing vfolder
        definitions (rather like filters, oddly enough :).  Tries to
        update the shell but it doesn't seem to work properly - requires a
        mail component restart to take effect.

        * folder-browser.c (folder_browser_load_folder): Handle vfolder:
        urls' appropriately and map to camel.  Still needs a way to tell
        the vfolder what folders to search! (all vfolders come up empty!).

svn path=/trunk/; revision=3241
2000-05-28 06:18:11 +00:00
Christopher James Lahey 0473e106f0 Added a COL_DELETED and made it the strikeout column for both text
2000-05-28  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c, message-list.h: Added a COL_DELETED and made it
	the strikeout column for both text renderers.

svn path=/trunk/; revision=3237
2000-05-28 04:22:13 +00:00
Dan Winship b5f4615bac Various improvements:
* mail-format.c: Various improvements:

	(call_handler_function, etc): Add a "mime_type" argument to the
	handlers, so that if a part is tagged as
	"application/octet-stream", and we figure out that it's really
	something else, the handler we call can know what that something
	else is.

	(handle_text_enriched): Small fixes to make this not do
	text/enriched-specific syntax in text/richtext or vice versa.

	(handle_mystery): Allow for mystery data that can't even be saved
	to disk. (ie, unrecognized external-body). Let the caller specify
	the URL to use.

	(handle_message_external_body): New function to deal with
	message/external-body parts. Generates URLs for anon-ftp,
	local-file, and URL access-types, and a more-useful-than-before
	descriptive message for other types.

	(handle_audio, handle_undisplayable): Use gnome_mime_get_value to
	try to get a description of the MIME type to display to the user
	rather than the raw form. (This will only work if the user has
	recent gnome-vfs installed. [If they don't, it works just like
	it used to.])

svn path=/trunk/; revision=3234
2000-05-27 22:21:37 +00:00
Dan Winship bae01d4cd8 Fix a bug (security/stability) in its usage of mail_html_write.
* mail-format.c (handle_text_html): Fix a bug (security/stability)
	in its usage of mail_html_write.

svn path=/trunk/; revision=3227
2000-05-26 22:05:38 +00:00
Dan Winship 735c913737 set CAMEL_MESSAGE_ANSWERED on a message after a successful reply.
* mail-ops.c (composer_send_cb, reply): set CAMEL_MESSAGE_ANSWERED
	on a message after a successful reply.

	* message-list.c (folder_changed): free the summary with
	camel_folder_free_summary rather than g_ptr_array_free.

svn path=/trunk/; revision=3221
2000-05-26 18:09:18 +00:00
Dan Winship 8ad057518f Update for PersistStream changes
* mail-format.c (handle_via_bonobo): Update for PersistStream
	changes

svn path=/trunk/; revision=3216
2000-05-26 14:36:45 +00:00
Ettore Perazzoli bb241192eb Reorganized the shell to allow dynamic registration of storages and
folder types, and changed all the components to work with the new
setup.

svn path=/trunk/; revision=3199
2000-05-25 05:55:59 +00:00