Commit Graph

2259 Commits

Author SHA1 Message Date
Radek Doulik 03ec14c7df truncate stream before saving
2002-03-08  Radek Doulik  <rodo@ximian.com>

	* mail-signature-editor.c (menu_file_save_cb): truncate stream
	before saving

svn path=/trunk/; revision=15997
2002-03-08 23:35:01 +00:00
Radek Doulik 20a28f53fc new function
2002-03-08  Radek Doulik  <rodo@ximian.com>

	* mail-config.c (mail_config_signature_set_html): new function

	* mail-accounts.c (sig_event_client): watch for HTML changed event

	* mail-signature-editor.c: added HTML check menu item to Format
	menu

svn path=/trunk/; revision=15996
2002-03-08 23:04:09 +00:00
Dan Winship e6cd7bec0e Rewrite this to not use stpcpy, which isn't portable.
* mail-config-druid.c (management_prepare): Rewrite this to not
	use stpcpy, which isn't portable.

svn path=/trunk/; revision=15991
2002-03-08 22:03:21 +00:00
Radek Doulik e4e819b0ae handle name changed event (sig_load_preview): don't run script before each
2002-03-08  Radek Doulik  <rodo@ximian.com>

	* mail-accounts.c (sig_event_client): handle name changed event
	(sig_load_preview): don't run script before each reload
	(sig_script_activate): run script only if script entry is
	activated

	* mail-signature-editor.c (mail_signature_editor): added signature
	name entry

svn path=/trunk/; revision=15989
2002-03-08 21:36:47 +00:00
Jeffrey Stedfast a9791c82f0 Re-focus the account name entry widget. (identity_prepare): If a name is
2002-03-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (management_changed): Re-focus the account
	name entry widget.
	(identity_prepare): If a name is not set, try and get the user's
	full name for them and set the text on the entry widget.
	(management_prepare): If the account name is already taken,
	generate a unique one by appending " (%d)".

svn path=/trunk/; revision=15986
2002-03-08 00:13:41 +00:00
Radek Doulik 6090a80c42 make edit button sensitive after new signature is created (sig_new_text):
2002-03-07  Radek Doulik  <rodo@ximian.com>

	* mail-account-gui.c (sig_new_html): make edit button sensitive
	after new signature is created
	(sig_new_text): ditto

svn path=/trunk/; revision=15984
2002-03-07 23:33:02 +00:00
Radek Doulik 5326b38eaa notify accounts dialog about signature content change
2002-03-07  Radek Doulik  <rodo@ximian.com>

	* mail-signature-editor.c: notify accounts dialog about signature
	content change

	* mail-accounts.c (run_script): run script only if file regular
	file exists and has x flag

svn path=/trunk/; revision=15979
2002-03-07 23:10:47 +00:00
Anna Marie Dirks 3227c579dc Made all the acclerators in the context menu on a message work. (There are
2002-03-07  Anna Marie Dirks  <anna@ximian.com>

	* folder-browser.c: Made all the acclerators in the context menu on a message work. (There are 22 different menu items here, so picking a unique accelerator for each label was tricky, and some of the choices I made are different from the ones I would have made if there weren't so many stinking menu items.)

svn path=/trunk/; revision=15978
2002-03-07 23:02:34 +00:00
Jeffrey Stedfast 1ee9660d6e Don't use an uninitialized 'id'.
2002-03-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (config_import_old_signatures): Don't use an
	uninitialized 'id'.

svn path=/trunk/; revision=15972
2002-03-07 21:09:08 +00:00
Radek Doulik 83223a05bc set initial focus to editor (do_exit): use hasUndo to avoid question
2002-03-07  Radek Doulik  <rodo@ximian.com>

	* mail-signature-editor.c (mail_signature_editor): set initial
	focus to editor
	(do_exit): use hasUndo to avoid question dialog when content is
	unchanged

svn path=/trunk/; revision=15970
2002-03-07 20:53:43 +00:00
Dan Winship d6f174ad51 Update for storage changes: explicitly create a root folder.
* component-factory.c (add_storage): Update for storage changes:
	explicitly create a root folder.

	* mail-display.c (mail_display_render): Fix the "don't scroll back
	to the top of the HTML widget when opening an attachment" hack
	again by moving it here from mail_display_redisplay(). (It has to
	happen after the gtk_html_begin.)
	(mail_display_redisplay): Pass reset_scroll arg to
	mail_display_render.

	* mail-callbacks.c (do_mail_print): Pass reset_scroll (TRUE) to
	mail_display_render.

svn path=/trunk/; revision=15967
2002-03-07 18:34:14 +00:00
Radek Doulik a1bb1ba0fe merge new signature handling
svn path=/trunk/; revision=15960
2002-03-07 00:21:59 +00:00
Dan Winship b1214384b6 Don't try to set pixmap for /Toolbar/MailCompose, since it doesn't exist
* folder-browser-ui.c: Don't try to set pixmap for
	/Toolbar/MailCompose, since it doesn't exist any more.

svn path=/trunk/; revision=15935
2002-03-05 23:29:55 +00:00
Jeffrey Stedfast b0ee069191 "use_ssl" can now be 3 options, modify the code to handle this.
2002-03-05  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (save_service): "use_ssl" can now be 3
	options, modify the code to handle this.
	(setup_service): Toggle the correct ssl option.
	(source_type_changed): Show/hide the ssl hbox container widget.
	(transport_type_changed): Same.

svn path=/trunk/; revision=15933
2002-03-05 22:56:14 +00:00
Dan Winship 4db8df6b4d Pull up assertion change from evolution-1-0-branch to allow external
* mail-folder-cache.c (mail_note_store): Pull up assertion change
	from evolution-1-0-branch to allow external storages.

svn path=/trunk/; revision=15928
2002-03-05 21:17:46 +00:00
Jeffrey Stedfast e3075a8d20 If the clicked column was column 0, enable/disable it. (mail_select):
2002-03-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (mail_unselect): If the clicked column was
	column 0, enable/disable it.
	(mail_select): Same.

svn path=/trunk/; revision=15914
2002-03-05 01:25:26 +00:00
Jeffrey Stedfast 1bd6c04cf6 Added more debugging code to help figure out why a certain image isn't
2002-03-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (load_http): Added more debugging code to help
	figure out why a certain image isn't loading - looks like
	gnome-vfs is getting a premature EOF?

svn path=/trunk/; revision=15910
2002-03-04 23:01:28 +00:00
Jeffrey Stedfast c5f85f4f33 Connect to the focus-in/out events on the message-list so that we can
2002-03-04  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser.c (my_folder_browser_init): Connect to the
	focus-in/out events on the message-list so that we can disable the
	EditInvertSelection and EditSelectThread menu items when the
	message-list is not in focus.

	* folder-browser-ui.c (folder_browser_ui_message_list_unfocus):
	New function to de-sensitize some items if the message-list is not
	in focus.
	(folder_browser_ui_message_list_focus): New function to sensitize
	some items if the message-list is not in focus.

	* mail-callbacks.c (invert_selection): Only invert the selection
	of the message-list if it is the widget in focus.

	* message-list.c (message_list_select): Do not explicitly grab the
	focus here.

svn path=/trunk/; revision=15909
2002-03-04 22:01:12 +00:00
Ettore Perazzoli dc0b9c9b6c Set X-Mailer to say "Ximian Evolution", not just "Evolution".
* mail-ops.c (mail_send_message): Set X-Mailer to say "Ximian
Evolution", not just "Evolution".

svn path=/trunk/; revision=15901
2002-03-04 18:16:30 +00:00
Jeffrey Stedfast a226b2ae86 Forward all selected messages. Fixes bug #21190.
2002-03-01  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (forward_message): Forward all selected
	messages. Fixes bug #21190.

svn path=/trunk/; revision=15882
2002-03-01 20:06:32 +00:00
Jeffrey Stedfast 22ac1344f7 Get the Content-Base if the header exists and use gtk_html_set_base to set
2002-02-26  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (handle_text_html): Get the Content-Base if the
	header exists and use gtk_html_set_base to set this base url.

	* mail-display.c (on_link_clicked): No longer need to calculate
	the full url. This is now handled by GtkHTML.
	(on_set_base): Removed.
	(on_url_requested): No longer need to calculate the full url.
	(mail_display_initialize_gtkhtml): Don't connect to the set_base
	signal anymore. We don't care.

	* mail-display.h: No longer need base_url (it was broken anyway).

svn path=/trunk/; revision=15850
2002-02-27 00:01:09 +00:00
Not Zed b0a253e060 If a related part is requested, remove it from the related undisplayed
2002-02-26  Not Zed  <NotZed@Ximian.com>

        * mail-display.c (on_url_requested): If a related part is
        requested, remove it from the related undisplayed list.

        * mail-format.c (handle_multipart_related): Check if related parts
        are displayed, if not, remove them.  For #2741.

svn path=/trunk/; revision=15837
2002-02-26 00:26:55 +00:00
Chris Toshok c08e6b2652 rename folder_browser_search_query_changed to this.
2002-02-24  Chris Toshok  <toshok@ximian.com>

        * folder-browser.c (folder_browser_search_do_search): rename
        folder_browser_search_query_changed to this.
        (folder_browser_gui_init): hook both query_changed and
        search_activated up to folder_browser_search_do_search, preserving
        current behavior.

svn path=/trunk/; revision=15829
2002-02-25 11:05:39 +00:00
Jeffrey Stedfast 843b7d2c82 Removed, this wasn't working as intended and seemed to break other
2002-02-22  Jeffrey Stedfast  <fejj@ximian.com>

	* message-list.c (on_message_list_built): Removed, this wasn't
	working as intended and seemed to break other features.

svn path=/trunk/; revision=15801
2002-02-22 19:48:43 +00:00
Ettore Perazzoli 91010cb266 Add an icon for the "New message" user creatable item.
* component-factory.c (create_component): Add an icon for the "New
message" user creatable item.

svn path=/trunk/; revision=15791
2002-02-22 02:24:05 +00:00
Jeffrey Stedfast 17815d8669 Connect to our own message_list_built signal. Focus the list and select
2002-02-21  Jeffrey Stedfast  <fejj@ximian.com>

	* message-list.c (on_message_list_built): Connect to our own
	message_list_built signal. Focus the list and select the first
	unread message (or frst message depending). Fixes bug #3900.

svn path=/trunk/; revision=15784
2002-02-22 00:13:56 +00:00
Anna Marie Dirks 18011729ae Gave the editor window a title and an icon.
2002-02-20  Anna Marie Dirks  <anna@ximian.com>

	* message-tag-editor.c (message_tag_editor_init): Gave the editor
	window a title and an icon.

svn path=/trunk/; revision=15777
2002-02-20 23:34:53 +00:00
Anna Marie Dirks 429aef17bd Changed the policy for table2 so that it does not expand/fill. This was
2002-02-20  Anna Marie Dirks  <anna@ximian.com>

	* message-tags.glade: Changed the policy for table2 so that it
	does not expand/fill. This was necessary to allow the message list
	as much growing room as possible. (And besides, there's no reason for
	table2 to expand/fill; its child widgets can't change size.

svn path=/trunk/; revision=15771
2002-02-20 16:13:49 +00:00
Jeffrey Stedfast cf945fcde2 Prompt the user to find out if he/she wants to go to the next folder with
2002-02-19  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (confirm_goto_next_folder): Prompt the user to
	find out if he/she wants to go to the next folder with unread mail
	in it.
	(find_current_folder): Find a given CamelFolderInfo node based on
	a given uri.
	(find_next_folder_r): Recursively look for a CamelFOlderInfo node
	which has unread messages.
	(find_next_folder): Given a currently selected CamelFolderInfo
	node, look for the next node containing unread messages.
	(do_evil_kludgy_goto_next_folder_hack): Find the currently
	selected folder and then find the very next folder after it that
	contains unread messages and then select it via a CORBA call to
	the shell.
	(next_unread_msg): If we fail to find an unread message in the
	message-list, prompt the user to find out if we should jump to the
	next fodler containing unread messages. If so, call
	do_evil_kludgy_goto_next_folder_hack().

	* message-list.c (message_list_select): Return a boolean value
	based on whether the call was successfull or not.

	* mail-config.c (mail_config_get_confirm_goto_next_folder):
	(mail_config_set_confirm_goto_next_folder):
	(mail_config_get_goto_next_folder):
	(mail_config_set_goto_next_folder): All new functions, yay.
	(config_read): Read in the confirm_goto_next_folder and
	goto_next_folder config options.
	(mail_config_write_on_exit): Same the options here.

svn path=/trunk/; revision=15770
2002-02-20 03:51:20 +00:00
Jeffrey Stedfast 63fb014af9 Ack, strip off the leading '/' char and also only translate if it is a
2002-02-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (basename_from_uri): Ack, strip off the
	leading '/' char and also only translate if it is a local uri,
	imap folders and other external folders will be named by the user
	so no need to translate those.

svn path=/trunk/; revision=15751
2002-02-16 01:10:56 +00:00
Jeffrey Stedfast 4801096f61 Ack, strip off the leading '/' char and also only translate if it is a
2002-02-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (basename_from_uri): Ack, strip off the
	leading '/' char and also only translate if it is a file: uri,
	imap folders and other external folders will be named by the user
	so no need to translate those.

svn path=/trunk/; revision=15750
2002-02-16 00:58:22 +00:00
Jeffrey Stedfast 40fc52b322 Ack, strip off the leading '/' char.
2002-02-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (basename_from_uri): Ack, strip off the
	leading '/' char.

svn path=/trunk/; revision=15749
2002-02-16 00:47:55 +00:00
Jeffrey Stedfast 3b87b4b273 Don't display a down-arrow if the attachment is undisplayable. Fixes bug
2002-02-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (do_attachment_header): Don't display a
	down-arrow if the attachment is undisplayable. Fixes bug #6919.
	(launch_cb): Some programs are buggy when it comes to parsing
	file: uris, so make sure we do file://%s. Fixes bug #20456.

svn path=/trunk/; revision=15747
2002-02-16 00:33:14 +00:00
Jeffrey Stedfast cf668bd306 Don't display a down-arrow if the attachment is undisplayable. Fixes bug
2002-02-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (do_attachment_header): Don't display a
	down-arrow if the attachment is undisplayable. Fixes bug #6919.

svn path=/trunk/; revision=15746
2002-02-15 23:34:13 +00:00
Jeffrey Stedfast 02976f86ea Replacement for using g_basename and also translates the basename string
2002-02-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (basename_from_uri): Replacement for using
	g_basename and also translates the basename string to fix bug
	#7160.
	(mail_account_gui_save): Use basename_from_uri().
	(folder_picker_clicked): Here too.

svn path=/trunk/; revision=15733
2002-02-15 00:15:29 +00:00
Jeffrey Stedfast e2fb2c92b5 Default the from-account to the source account. If that fails, then guess
2002-02-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mail_generate_reply): Default the from-account
	to the source account. If that fails, then guess the from-account
	based on the recipients. Fixes bug #20479.

svn path=/trunk/; revision=15728
2002-02-14 21:38:40 +00:00
Jeffrey Stedfast 69eb6f9a7b oops, Ximian is spelled Ximian, not Ximain. :-)
svn path=/trunk/; revision=15725
2002-02-14 19:11:06 +00:00
Jeffrey Stedfast de5b206ef7 added a kludge around a Nautilus bug that calls drag_data_get multiple times witht he same drag.
svn path=/trunk/; revision=15722
2002-02-14 01:30:36 +00:00
Jeffrey Stedfast 05014ce820 Implement. (drag_data_delete_cb): Implement. (do_attachment_header): Setup
2002-02-13  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (drag_data_get_cb): Implement.
	(drag_data_delete_cb): Implement.
	(do_attachment_header): Setup Drag & Drop. This implements
	bugzilla bug #1066.

svn path=/trunk/; revision=15721
2002-02-14 01:24:23 +00:00
Jeffrey Stedfast 7751734b69 Set the followup icon to use the new flag icon rather than the exclamation
2002-02-13  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-ui.c: Set the followup icon to use the new flag
	icon rather than the exclamation mark icon.

	* mail-callbacks.c (flag_for_followup): Append the selected
	messages to the clist in the followp editor.

	* message-list.c: Include the new flag-for-followup icon.

	* message-tag-followup.c (message_tag_followup_append_message):
	New method to add a message to the message-list.
	(construct): Get the message_list widget and load the flag icon
	pixmap.

svn path=/trunk/; revision=15720
2002-02-13 22:28:39 +00:00
Jeffrey Stedfast 926cc83a34 Fixed a bug.
2002-02-12  Jeffrey Stedfast  <fejj@ximian.com>

	* message-tag-followup.c (set_widget_values): Fixed a bug.

	* mail-callbacks.c (flag_for_followup): If only 1 message is
	selected and it happens to already be marked for follow-up, set
	the value of the flag on the editor so the settings are restored.

	* folder-browser-ui.c: Set the pixmaps on MarkAsRead, MarkAsUnread
	and MarkAsImportant bonobo verbs. Also connect to
	flag-for-followup verb.
	(folder_browser_ui_set_selection_state): Added MessageFollowUpFlag
	verb to the array of verb strings.

	* folder-browser.c: Set key accelerators on the follow-up
	right-click menu items to match Outlook.

svn path=/trunk/; revision=15702
2002-02-13 01:09:56 +00:00
Jeffrey Stedfast cfb7f58d26 No longer need to call e_msg_composer_show_sig_file(). This gets handled
2002-02-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (create_msg_composer): No longer need to call
	e_msg_composer_show_sig_file(). This gets handled auto-magically
	by a signal emition when the default From address chooser gets
	created.
	(do_forward_non_attached): No longer need to call it here either
	because e_msg_composer_set_body_text() now makes sure to re-show
	the signature.

svn path=/trunk/; revision=15693
2002-02-12 21:48:06 +00:00
Jeffrey Stedfast 648357cc68 Show the signature.
2002-02-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (do_forward_non_attached): Show the signature.

svn path=/trunk/; revision=15689
2002-02-12 20:47:27 +00:00
Jeffrey Stedfast 2d4d49a088 Get followup-up message-list values. Also highlight the message in red if
2002-02-11  Jeffrey Stedfast  <fejj@ximian.com>

	* message-list.c (ml_tree_value_at): Get followup-up message-list
	values. Also highlight the message in red if the due-by date is
	past due (this is what Outlook does).
	(ml_duplicate_value): Handle follow-up columns.
	(ml_free_value): Same.
	(ml_initialize_value): Here too.
	(ml_value_is_empty): And here.
	(ml_value_to_string): And finally here.

	* message-tag-followup.c (message_tag_followup_i18n_name): New
	convenience function.

svn path=/trunk/; revision=15680
2002-02-11 23:00:13 +00:00
Radek Doulik b5fe626e9d added entries for latest changes
svn path=/trunk/; revision=15679
2002-02-11 22:00:27 +00:00
Radek Doulik 83f26d87de use reset undo in editor
svn path=/trunk/; revision=15678
2002-02-11 21:49:56 +00:00
Jeffrey Stedfast af223e6f19 Implemented. (on_right_click): Do better enabling/hiding of unwanted
2002-02-11  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser.c (followup_tag_complete): Implemented.
	(on_right_click): Do better enabling/hiding of unwanted
	flag-for-followup options.

svn path=/trunk/; revision=15675
2002-02-11 16:54:59 +00:00
Jeffrey Stedfast 928749075c Set the correct drop-down menu item. (message_tag_followup_encode): Return
2002-02-09  Jeffrey Stedfast  <fejj@ximian.com>

	* message-tag-followup.c (set_widget_values): Set the correct
	drop-down menu item.
	(message_tag_followup_encode): Return NULL if the type is NONE.
	(clear_clicked): Set the drop-down menu to None.
	(type_changed): Hide the None menu item.
	(construct): Create a None menu item and set it as the default.

svn path=/trunk/; revision=15637
2002-02-09 21:22:29 +00:00
Jeffrey Stedfast f9f3d6073e New flag-for-followup tag editor dialog.
2002-02-08  Jeffrey Stedfast  <fejj@ximian.com>

	* message-tag-followup.[c,h]: New flag-for-followup tag editor
	dialog.

	* mail-callbacks.c (flag_for_followup): New callback that pops up
	a flag-for-followup editor dialog.
	(flag_followup_completed): Marks all flag-for-followup'd messages
	as 'complete'.
	(flag_followup_clear): Clears all flag-for-followup tags from the
	selected messages.

	* message-tags.glade: glade file for tag editors.

svn path=/trunk/; revision=15632
2002-02-09 02:03:07 +00:00
Jeffrey Stedfast 9fecb732de Base class for a message tag editor.
2002-02-08  Jeffrey Stedfast  <fejj@ximian.com>

	* message-tag-editor.[c,h]: Base class for a message tag editor.

	* folder-browser.c (on_right_click): Setup the hide/enable masks
	for "Flag for Follow-up"

	* mail-callbacks.c (confirm_expunge): Instead of hiding deleted
	messages and then expunging, disable the use of the message-list
	completely during the expunge operation.
	(expunged_folder): Re-enable the use of the message-list widget
	here.

svn path=/trunk/; revision=15626
2002-02-08 22:32:13 +00:00