Commit Graph

439 Commits

Author SHA1 Message Date
75ea4d8ae1 eek! okay, we can't just point to a mail_display apparently...
so we're back to creating a new one for the purpose of displaying it

svn path=/trunk/; revision=4664
2000-08-09 20:03:05 +00:00
747b818cbd Support controls as well as embeddables.
* mail-display.c (on_object_requested): Support controls as well
	as embeddables.

svn path=/trunk/; revision=4663
2000-08-09 19:58:32 +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
4bbaf023cb Nicify a little, add in a menu separator between VFolder and Filter stuff.
2000-08-09  Jeffrey Stedfast  <fejj@helixcode.com>

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

svn path=/trunk/; revision=4657
2000-08-09 19:33:18 +00:00
5d297a7ac9 Set the UID of the message that is being displayed
2000-08-09  Jeffrey Stedfast  <fejj@helixcode.com>

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

svn path=/trunk/; revision=4655
2000-08-09 19:14:59 +00:00
555d9111ec Use menu stock icons instead of normal stock icons for the menu items.
svn path=/trunk/; revision=4653
2000-08-09 18:16:32 +00:00
8bfd6dadb2 (rule_match_subject): was cutting ] off mailing list names.
svn path=/trunk/; revision=4649
2000-08-09 07:39:31 +00:00
96569f50b1 (rule_match_recipients): Dont set real name if its empty for the filter name.
svn path=/trunk/; revision=4647
2000-08-09 07:22:59 +00:00
443b5a82a9 Helper function to add with confirm.
2000-08-09  Not Zed  <NotZed@HelixCode.com>

	* mail-autofilter.c (filter_gui_add_from_message): Helper function to add with confirm.

	* message-list.c (on_right_click): Added menu to install vfolders/filters from message.

svn path=/trunk/; revision=4646
2000-08-09 07:20:37 +00:00
cae0d7fb45 Remove conflict marks.
svn path=/trunk/; revision=4640
2000-08-09 05:56:30 +00:00
7a90b39325 New file to hold auto filter/vfolder stuff.
2000-08-09  Not Zed  <NotZed@HelixCode.com>

        * mail-autofilter.c: New file to hold auto filter/vfolder stuff.

svn path=/trunk/; revision=4635
2000-08-09 05:46:46 +00:00
e7697db4fc Fixed some warnings.
2000-08-09  Christopher James Lahey  <clahey@helixcode.com>

	* mail-display.c, mail-format.c, mail-ops.c: Fixed some warnings.

	* message-list.c: Fix the call to e_popup_menu_run to match the
	new signature.

svn path=/trunk/; revision=4634
2000-08-09 05:30:37 +00:00
5bdcadd4cf Use the placeholder for the "Print message..." menu item.
svn path=/trunk/; revision=4633
2000-08-09 05:28:16 +00:00
0efeeb2a5d Attached a double_click signal handler (on_double_click): Our lovely new
2000-08-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* message-list.c (message_list_init): Attached a double_click
	signal handler
	(on_double_click): Our lovely new double_click callback. Will
	display the current selected message in a new window

svn path=/trunk/; revision=4624
2000-08-09 04:11:34 +00:00
f4a16f3c8d Basic framework for saving the size of the vpaned in the main message view
svn path=/trunk/; revision=4623
2000-08-09 03:19:08 +00:00
520a2e89aa Added void as an argument to functions not needing any parameters to avoid
2000-08-08  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-config.h: Added void as an argument to functions not
	needing any parameters to avoid compile warnings.

svn path=/trunk/; revision=4622
2000-08-09 02:16:03 +00:00
491b3c3c77 Value for threaded list view is now saved via gnome-config. This means that you can FINALLY shut off the threaded view once and for all :)
svn path=/trunk/; revision=4621
2000-08-09 02:06:20 +00:00
6d34729106 Attach a signal handler to call the "changed" function when the user
* mail-config-gui.c (service_page_item_new): Attach a signal
	handler to call the "changed" function when the user clicks the
	"keep on server" checkbox.

svn path=/trunk/; revision=4620
2000-08-09 01:56:51 +00:00
b9a9cd3a86 New convenience function with params of a normal Gtk callback function. We
2000-08-08  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (view_msg): New convenience function with params of a
	normal Gtk callback function. We also now create a new
	FolderBrowser object so that the message-view window isn't tied to
	the display in the main window
	(view_message): Now calls view_msg (this function is a bonobo
	callback and can't be used with gtk widgets)
	(edit_msg): Same idea as view_msg()
	(edit_message): Again, same as view_message()

	* message-list.c (on_right_click): Callback for creating an
	e-popup-menu
	(message_list_init): Added a right_click event to trigger a pop-up
	menu to be displayed

svn path=/trunk/; revision=4619
2000-08-09 01:09:55 +00:00
01f333dee5 Add "Don't delete messages from server" button to remote SOURCEs that
* mail-config-gui.c: Add "Don't delete messages from server"
	button to remote SOURCEs that aren't STORAGEs (ie, POP).
	(provider_list): Only list SOURCEs. (ie, not mh)

	* mail-config.c: Save/load "keep_on_server" flag.

	* mail-ops.c (fetch_remote_mail): New function, split out of
	real_fetch_mail. Deals with copying mail from a remote server into
	a temporary mbox, possibly using a CamelUIDCache to leave the
	messages on the server.

svn path=/trunk/; revision=4617
2000-08-09 00:13:32 +00:00
ffaebb53fe Fix some compiler warnings.
* mail-crypto.c, mail-format.c, message-thread.c: Fix some
	compiler warnings.

svn path=/trunk/; revision=4615
2000-08-08 23:37:31 +00:00
9734f4252d Fix up format of addresses. (write_headers): Use CamelAddress functions to
* mail-format.c (mail_generate_reply): Fix up format of addresses.
	(write_headers): Use CamelAddress functions to simplify this.

svn path=/trunk/; revision=4606
2000-08-08 20:45:36 +00:00
f0c7677a42 Lets get rid of the last separator in the toolbar until we add n/p
2000-08-08  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-view.c: Lets get rid of the last separator in the toolbar
	until we add n/p

svn path=/trunk/; revision=4601
2000-08-08 18:29:03 +00:00
1c2ad0f89d Move mail_config_init after session_init, since it depends on
* main.c (main): Move mail_config_init after session_init, since
	it depends on evolution_dir being set.

svn path=/trunk/; revision=4595
2000-08-08 16:12:45 +00:00
8fed71251f Fix build by allowing includes for e-table dir
2000-08-08  JP Rosevear  <jpr@helixcode.com>

	* Makefile.am: Fix build by allowing includes for e-table dir

2000-08-08  JP Rosevear  <jpr@helixcode.com>

	* mail-ops.c (check_configured): Use config accessors
	(fetch_mail): ditto
	(composer_send_cb): ditto
	(create_msg_composer): ditto

	* mail-config-gui.h: Update API

	* mail-config.h: Update API

	* mail-config.c: Add accessor functions
	(mail_config_is_configured): accessor function
	(mail_config_get_default_identity): ditto
	(mail_config_get_default_source): ditto
	(mail_config_get_transport): ditto
	(mail_config_send_html): ditto
	(identity_copy): Make public
	(identity_destroy): ditto
	(identity_destroy_each): ditto
	(service_copy): ditto
	(service_destroy): ditto
	(service_destroy_each): ditto
	(mail_config_init): Rename from init_config and make public
	(mail_config_clear): Rename from clear_config and make public
	(mail_config_read): Rename from read_config and make public
	(mail_config_write): Reanme from write_config and make public

	* main.c (main): Call mail_config_init.

	* mail.h: Include mail-config-gui.h

	* mail-config-gui.c: Move config gui stuff here.
	(source_dialog): Kill memory leak from debug leftovers.
	Make sure returned source is NULL by default

svn path=/trunk/; revision=4592
2000-08-08 07:08:48 +00:00
b9eece78e6 Redone to show a dialogue first, and show progress of whats happening as
2000-08-07  Not Zed  <NotZed@HelixCode.com>

        * mail-local.c (local_reconfigure_folder): Redone to show a
        dialogue first, and show progress of whats happening as its done.

        * Makefile.am (glade_DATA): Added local-config.glade, for mailbox
        reconfig dialogue.

2000-08-04  Not Zed  <NotZed@HelixCode.com>

        * folder-browser.c (mail_uri_to_folder): Use local_uri_to_folder()
        for local uri's (file://).

        * mail-local.c (local_uri_to_folder): Handle looking up folder
        storage type before opening the store/folder.
        (local_reconfigure_folder): Function to reconfigure the format of
        a local mailbox into another storage format.

        * Makefile.am (evolution_mail_SOURCES): Added mail-local.c and
        missing mail-vfolder.h.

svn path=/trunk/; revision=4591
2000-08-08 03:55:11 +00:00
573ea91f0c Added mail-view.c
2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* Makefile.am: Added mail-view.c

	* folder-browser-factory.c (control_activate): Adda menu item for
	viewing the message

	* mail-view.c: New file containing methods for viewing messages in
	separate windows

	* mail-ops.c (view_message): New callback for viewing messages in
	a new window.

svn path=/trunk/; revision=4588
2000-08-08 02:08:44 +00:00
3d4dc806bf New function to replace real_create_imap_storage and
2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* component-factory.c (real_create_generic_storage): New function
	to replace real_create_imap_storage and real_create_news_storage
	(create_imap_storage): Updated.
	(create_news_storage): Updated.

svn path=/trunk/; revision=4584
2000-08-07 21:16:09 +00:00
0a9fdd8842 s/strncasecmp/g_strncasecmp
2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-display.c:
	* component-factory.c: s/strncasecmp/g_strncasecmp

	* mail-format.c (write_headers): Get rid of kludge around subject
	beginning with spaces.
	(mail_generate_reply): Get rid of kludge around subject beginning
	with spaces and also use g_strncasecmp instead of strncasecmp for
	portability

	* mail-ops.c (forward_msg): Get rid of kludges around subject
	beginning with spaces.

svn path=/trunk/; revision=4575
2000-08-07 18:32:55 +00:00
725c2912fc Get rid of kludge around subject beginning with spaces.
2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-format.c (write_headers): Get rid of kludge around subject
	beginning with spaces.
	(mail_generate_reply): Get rid of kludge around subject beginning
	with spaces and also use g_strncasecmp instead of strncasecmp for
	portability

	* mail-ops.c (forward_msg): Get rid of kludges around subject
	beginning with spaces.

svn path=/trunk/; revision=4572
2000-08-07 18:24:44 +00:00
520d69a638 Clarify that the input row is a model row, and swap it to a view row when
* message-list.c (message_list_select): Clarify that the input row
	is a model row, and swap it to a view row when finding the
	next/previous row.
	(idle_select_row): Select view row 0, not model row 0.

	* mail-ops.c (select_first_unread): Start from view row 0, not
	model row 0.

svn path=/trunk/; revision=4570
2000-08-07 17:03:06 +00:00
cf0a938afb Renamed from reply_body() so other functions can use it
2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-format.c (mail_get_message_body): Renamed from reply_body()
	so other functions can use it
	(mail_generate_reply): Updated to reflect function name changes

	* mail-ops.c (real_edit_msg): Attach a callback to the send signal

svn path=/trunk/; revision=4564
2000-08-07 08:37:07 +00:00
9739fb5219 New menu item under Actions to allow editing of messages.
2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser-factory.c (control_activate): New menu item under
	Actions to allow editing of messages.

	* mail-ops.c (edit_message): New function for editing messages.

svn path=/trunk/; revision=4563
2000-08-07 06:55:53 +00:00
dcc0eea8aa Create a global reference to the Drafts mbox folder for the Composer to
2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* component-factory.c (owner_set_cb): Create a global reference to
	the Drafts mbox folder for the Composer to use

svn path=/trunk/; revision=4561
2000-08-07 06:16:55 +00:00
eef4069b80 Desensitize ok button (sdialog_page_undone): ditto (iddialog_page_undone):
2000-08-06  JP Rosevear  <jpr@helixcode.com>

	* mail-config.c (ndialog_page_undone): Desensitize ok button
	(sdialog_page_undone): ditto
	(iddialog_page_undone): ditto
	(news_page_new): Typo - news, not mail
	(transport_page_new): Typo - transport, not source
	(identity_dialog): Set undone callback
	(source_dialog): ditto
	(news_dialog): ditto
	(mail_druid_identity_undone): Desensitize next button and
	mark done flag as false
	(mail_druid_source_undone): ditto
	(mail_druid_transport_undone): ditto
	(mail_druid_identity_done): Mark done flag as true
	(mail_druid_source_done): ditto
	(mail_druid_transport_done): ditto
	(mail_druid_prepare): Use done flag to set next button
	sensitivity, fixes #467

svn path=/trunk/; revision=4559
2000-08-06 18:10:16 +00:00
43e3ba9da9 Added support for encrypting with GnuPG. Support for PGP5 and PGP2 are
2000-08-06  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-crypto.c (mail_crypto_openpgp_encrypt): Added support for
	encrypting with GnuPG.  Support for PGP5 and PGP2 are still in
	progress.

svn path=/trunk/; revision=4557
2000-08-06 06:34:14 +00:00
51df4b80b2 Update the README and the text of the Bonobo configure check to match
* configure.in, README: Update the README and the text of the
	Bonobo configure check to match reality. Remove the 0.15 vs
	0.15-and-a-half check since we require post-0.16 now.

	* folder-browser-factory.c (control_activate): Remove bonobo 0.15
	vs 0.15-and-a-half ifdef, since we require post-0.16 now.

svn path=/trunk/; revision=4552
2000-08-05 16:37:22 +00:00
09e1677c54 Actually commit this - I though it went in already.
2000-08-03  JP Rosevear  <jpr@helixcode.com>

	* configure.in: Remove gconf check

2000-08-03  JP Rosevear  <jpr@helixcode.com>

	* mail-config.glade: Increase window size slightly, rename
	"Transport" to "Mail Transport"

	* mail-config.c (init_config): Remove gconf references
	(clear_config): ditto
	(read_config): ditto
	(write_config): ditto
	(mail_config): Null provider lists before filling them
	(mail_config_druid): ditto
	(identity_page_new): Increase spacing of vbox
	(service_page_new): ditto

	* Makefile.am: Remove gconf references.

2000-08-03  JP Rosevear  <jpr@helixcode.com>

	* e-shell.h: Remove gconf references

	* e-shell-view.h: Remove gconf references

	* main.c (idle_cb): Remove gconf references

	* Makefile.am: Remove gconf cflags and libs

	* e-shell-view.c (e_shell_view_load_settings): Change to use
	gnome-config
	(e_shell_view_save_settings): ditto

	* e-shell.c (e_shell_restore_from_settings): Change to
	use gnome_config
	(save_settings_for_views): ditto

svn path=/trunk/; revision=4530
2000-08-04 14:58:43 +00:00
ce5a8e3224 I pity da foo that committed this bug!
svn path=/trunk/; revision=4528
2000-08-04 14:13:27 +00:00
61fae09dc0 Fix a possible crash when using the quicksearch by freeing the UID
array correctly.

svn path=/trunk/; revision=4525
2000-08-04 04:04:11 +00:00
623b1de43d Everywhere unref the remote_uih having done a set_container.
svn path=/trunk/; revision=4524
2000-08-04 03:09:01 +00:00
8ec2a002e8 only whack the sig in if the file exists.
2000-08-03  Michael Meeks  <michael@helixcode.com>

	* mail-config.c (identity_page_new): only whack the sig in if the
	file exists.

	* component-factory.c (factory_fn): count running instances,
	attach destroy signal (factory_destroy): add.

	* main.c (main): pass orb around.

svn path=/trunk/; revision=4523
2000-08-04 02:00:02 +00:00
d2856de030 Yay, no more compiler warnings
2000-08-03  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (composer_send_cb): Yay, no more compiler warnings

svn path=/trunk/; revision=4521
2000-08-04 00:25:14 +00:00
2b60e44890 set config = NULL (provider_list) Eek! Initialize news to NULL! Also, use
2000-08-03  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-config.c: set config = NULL
	(provider_list) Eek! Initialize news to NULL!  Also, use
	g_slist_prepend() for "performance" gains ;-)
	(init_config): Set the config member data to NULL just to be on
	the safe side
	(clear_config): Don't bother freeing slist data if the slist is
	NULL

svn path=/trunk/; revision=4517
2000-08-03 21:49:11 +00:00
f273b40d5e Work with GtkHTML if it uses gconf
svn path=/trunk/; revision=4507
2000-08-03 17:06:28 +00:00
7792032178 Check for identity before sending ; remove gconf_init call
svn path=/trunk/; revision=4505
2000-08-03 15:35:09 +00:00
c63dfc2f51 Increase window size slightly, rename "Transport" to "Mail Transport"
2000-08-03  JP Rosevear  <jpr@helixcode.com>

	* mail-config.glade: Increase window size slightly, rename
	"Transport" to "Mail Transport"

	* mail-config.c (init_config): Remove gconf references
	(clear_config): ditto
	(read_config): ditto
	(write_config): ditto
	(mail_config): Null provider lists before filling them
	(mail_config_druid): ditto
	(identity_page_new): Increase spacing of vbox
	(service_page_new): ditto

	* Makefile.am: Remove gconf references.

svn path=/trunk/; revision=4504
2000-08-03 07:37:49 +00:00
f29b73483c Make the "test settings" button FILL rather than SHRINK so it doesn't end
* mail-config.c (service_page_item_new): Make the "test settings"
	button FILL rather than SHRINK so it doesn't end up oddly-placed.

	* mail-config-druid.glade: Make the icon background dark blue
	like the surrounding area.

svn path=/trunk/; revision=4491
2000-08-02 22:38:46 +00:00
712b10f964 Emit "model_pre_change" where appropriate.
2000-08-02  Christopher James Lahey  <clahey@helixcode.com>

	* mail-ops.c, message-list.c: Emit "model_pre_change" where
	appropriate.

svn path=/trunk/; revision=4475
2000-08-02 17:21:30 +00:00