Commit Graph

392 Commits

Author SHA1 Message Date
0425bffaf1 Set the Seen flag as well since it's safe to assume that if the user has
2002-05-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mail_reply): Set the Seen flag as well since
	it's safe to assume that if the user has replied to an email
	message that he has read it. Not always true, but usually ;-)

svn path=/trunk/; revision=16693
2002-05-06 21:17:05 +00:00
cc136a6353 If the folder's permanent_flags don't include CAMEL_MESSAGE_DELETED, don't
* mail-callbacks.c (delete_msg): If the folder's permanent_flags
	don't include CAMEL_MESSAGE_DELETED, don't do anything. (In
	particular, don't move the cursor.)

svn path=/trunk/; revision=16645
2002-04-30 17:16:30 +00:00
6d3e92a2af Do away with the goto-next-folder stuff, it's very annoying.
2002-04-26  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (next_unread_msg): Do away with the
	goto-next-folder stuff, it's very annoying.

svn path=/trunk/; revision=16607
2002-04-26 21:57:04 +00:00
f133091e60 Removed all Delivered-To headers before redirecting. Fixes bug #23635.
2002-04-18  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (redirect_get_composer): Removed all
	Delivered-To headers before redirecting. Fixes bug #23635.

svn path=/trunk/; revision=16525
2002-04-18 21:39:59 +00:00
6ac6466501 use default paper name in case of wrong translation
2002-04-18  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (do_mail_print): use default paper name in case
	of wrong translation

svn path=/trunk/; revision=16516
2002-04-18 20:38:06 +00:00
d550435b70 Setup News preferences too if it is enabled.
2002-04-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (mail_accounts_tab_construct): Setup News
	preferences too if it is enabled.

svn path=/trunk/; revision=16451
2002-04-12 19:52:41 +00:00
6b48c8e16e Set the text of the reply-to. (mail_account_gui_save): Get the reply-to
2002-04-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_new): Set the text of the
	reply-to.
	(mail_account_gui_save): Get the reply-to text here.
	(mail_account_gui_identity_complete): If there is text in the
	reply-to widget make sure it's valid.

	* mail-config.c (identity_copy): Copy the reply-to.
	(config_read): Read in the reply-to for all the accounts.
	(mail_config_write): Save the reply-to.
	(impl_GNOME_Evolution_MailConfig_addAccount): Get the reply-to.
	(identity_destroy): Free the reply-to.

svn path=/trunk/; revision=16446
2002-04-12 05:54:58 +00:00
0dd1662b86 Set the 'No' button as the default.
2002-04-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (confirm_expunge): Set the 'No' button as the
	default.

svn path=/trunk/; revision=16435
2002-04-11 04:20:27 +00:00
b064051f5f Make the drafts and sent folder buttons be EvolutionFolderSelectorButtons.
* mail-account-gui.c (mail_account_gui_new): Make the drafts and
	sent folder buttons be EvolutionFolderSelectorButtons. Remove the
	code to deal with drafts_folder_name and sent_folder_name, since
	they were only used to construct the button and aren't needed now.
	(mail_account_gui_save): Remove drafts/sent name references.
	(mail_account_gui_destroy): Likewise
	(folder_selected): Handle the "selected" signal on the folder
	selector button by updating the URI in the MailAccountGui.
	(mail_account_gui_folder_selector_button_new): Glade custom widget
	constructor.

	* mail-callbacks.c (transfer_msg): Update for
	evolution_shell_client_user_select_folder change.

	* message-browser.c (transfer_msg): Likewise. (Sigh. Why is this
	cut+pasted?)

	* mail-config.glade: Make the drafts/sent folder buttons custom
	widgets.

	* mail-config.c (account_copy): Remove drafts/sent folder name
	handling.
	(account_destroy): Likewise.
	(config_read): Likewise.
	(mail_config_write): Likewise.

	* Mail.idl (MailConfig:Account): remove drafts_folder_name and
	sent_folder_name.

svn path=/trunk/; revision=16353
2002-04-04 20:02:48 +00:00
2e55f851fb Set the window title/icon here instead.
2002-04-03  Jeffrey Stedfast  <fejj@ximian.com>

	* message-tag-followup.c (construct): Set the window title/icon
	here instead.

	* message-tag-editor.c (message_tag_editor_init): Don't set the
	title or window icon here, this is a generic class.

	* mail-format.c (handle_multipart_signed): Replace
	get_url_for_icon with the new mail_display_get_url_for_icon
	function.
	(handle_multipart_digest): Here too.
	(get_cid): Use mail_display_add_url instead.
	(get_location): Same.
	(handle_text_enriched): Here too.
	(handle_multipart_signed): And here.

	* message-tag-followup.c (message_tag_followup_i18n_name): Use the
	U_() macro, not the _() macro as it is what we really want.

	* mail-ops.c (mail_send_message): Don't cast the message into a
	CamelMedium before sending anymore.

	* mail-callbacks.c (expunge_folder): Set the followup argument to
	NULL here.
	(done_message_selected): Get the followup value here and pass it
	to the mail-display here.
	(do_mail_fetch_and_print): Again with the NULL followup here.

	* folder-browser.c (folder_browser_set_message_preview): Update to
	pass in NULL as the followup since we are setting the message to
	NULL here.
	(done_message_selected): Get and set the appropriate followup
	value here.
	(do_message_selected): Update to pass in NULL as the followup
	since we are setting the message to NULL here.

	* mail-display.c (mail_display_set_message): Now takes a followup
	tag value.
	(mail_display_init): Set md->followup to NULL.
	(mail_display_destroy): Free md->followup.
	(mail_display_add_url): New: replaces the static add_url function
	originally in mail-format.c
	(mail_display_get_url_for_icon): New: replaces get_url_for_icon
	which was originally in mail-format.c

svn path=/trunk/; revision=16334
2002-04-03 22:55:34 +00:00
c98a56ead4 Pass the UID of the message being edited to the save-draft signal handler.
2002-04-02  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (do_edit_messages): Pass the UID of the message
	being edited to the save-draft signal handler.
	(composer_save_draft_cb): Pass the old draft uid to our async
	append_message function and let the append_message callback worry
	about deleting the old draft message on success.
	(save_draft_done): Delete the old draft message if we successfully
	appended the new draft message.

svn path=/trunk/; revision=16328
2002-04-02 23:58:24 +00:00
2f4dd02ef1 Updated to respect the new mail-config options for default reply style
2002-03-27  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mail_generate_reply): Updated to respect the
	new mail-config options for default reply style that NotZed had
	started to implement before there was a gui.

svn path=/trunk/; revision=16266
2002-03-27 23:27:49 +00:00
3cdefcba37 Sync with yet-another-mail-config branch.
2002-03-26  Jeffrey Stedfast  <fejj@ximian.com>

	Sync with yet-another-mail-config branch.

	* mail-composer-prefs.c: Updated to get the right widgets and
	whatnot. Also updated to tell the evolution-config-control that
	stuff has changed.

	* mail-preferences.c: Updated to get the right widgets and
	whatnot. Also updated to tell the evolution-config-control that
	stuff has changed.

	* mail-accounts.etspec: New file needed by mail-accounts.c

svn path=/trunk/; revision=16257
2002-03-26 22:51:26 +00:00
8ae13b9883 Changed to get the address from the messageinfo of the current selected
2002-03-26  Not Zed  <NotZed@Ximian.com>

        * mail-callbacks.c (addrbook_sender): Changed to get the address
        from the messageinfo of the current selected message rather than
        from the current_message.
        (requeue_mail_reply): Only re-queue if we got a message, could
        potentially cause an infinite loop trying to get a message it
        can't.
        (reply_to_sender, reply_to_list, reply_to_all): Always pass NULL
        as the msg to mail_replay, this forces mail_reply to always load
        the message anew.  Fixes FIXME's and popup behaviour.  Basically
        this and stuff below fixes #8542.  Its probably not the nicest
        way, but it works.
        (mark_as_important): Use the flags properly, we can set all flags
        to any combination of on or off as we want, so we just need to
        call set_flags once, thats why its set flags and not set_option.
        (toggle_flags): Fixed the logic here also, so we dont have to call
        set_message_flags more than once, and also implement a true toggle
        for any number of simultaneous flags (whilst simplifying code).

        * mail-vfolder.c (vfolder_gui_add_from_mlist): Removed the 'msg'
        parameter, its not used, fixed callers.

        * folder-browser.c (on_right_click): Lookup the mlist from
        messageinfo, and change the 'no selected' logic slightly, fixes
        most of #8542.
        (filter_data_free): Free filter data struct.
        (vfolder_type_got_message): Actually create vfolder once we have
        the message we need to use for it.  Code could probably be changed
        to use messageinfo instead.
        (vfolder_type_uid): Lookup a message based on uid, and use that to
        create a vfolder based on type.
        (vfolder_subject_uid, vfolder_sender_uid, vfolder_receipient_uid,
        vfolder_mlist_uid): Callbacks for the popup menu, used to create
        rules based on the uid rather than the message, which it loads as
        required.
        (filter_type_got_message, filter_*_uid): Similar to vfolder
        stuff above.
        (filter_menu[]): Changed callbacks to popup specific ones, not
        folderbrowser specific ones used by bonobo.
        (on_right_click): Initialise callback data for the filter submenu
        so it can look up messages for callback implementation.

svn path=/trunk/; revision=16253
2002-03-26 06:55:05 +00:00
364cb04c2b Move the ComponentActionsPlaceholder into the Actions menu, instead of the
* evolution.xml: Move the ComponentActionsPlaceholder into the
Actions menu, instead of the Actions menu being in the
ComponentActionsPlaceholder.
* evolution-addressbook.xml: Updated accordingly.
* evolution-calendar.xml: Updated accordingly.
* evolution-mail-global.xml: Updated accordingly.
* evolution-mail-list.xml: Updated accordingly.
* evolution-mail-message.xml: Updated accordingly.
* evolution-mail-messagedisplay.xml: Updated accordingly.
* evolution-tasks.xml: Updated accordingly.

* evolution.xml: Add "SendReceive" verb, menu item and toolbar
button.

* evolution-mail-global.xml: Remove "MailGetSend" verb and menu
item.

* e-shell-view-menu.c (command_send_receive): New, implementation
for the "SendReceive" verb.

* e-shell.c (e_shell_send_receive): New.

* evolution-shell-component.c (impl_sendReceive): Implementation
of ShellComponent::sendReceive.
(class_init): Add the "send_receive" signal.

* evolution-shell-component.h: Added `send_receive' signal.

* Evolution-ShellComponent.idl: Added ShellComponent::sendReceive.

* component-factory.c (send_receive_cb): New, callback for the
"send_receive" signal on the EvolutionShellComponent.
(create_component): Connect.

* folder-browser-ui.c: Remove verb "MailGetSend".

* mail-callbacks.c (send_receive_mail): Removed.

* mail-send-recv.c: Remove member current_folder from struct
_send_data.
(free_send_data): No need to unref here.
(build_dialogue): Removed arg @current_folder.
(mail_send_receive): Likewise.

svn path=/trunk/; revision=16220
2002-03-21 00:07:49 +00:00
4c1a78e612 New callback to set a colour on a message.
2002-03-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (colour_msg): New callback to set a colour on a
	message.

	* folder-browser.c (on_right_click): Setup our popup icons and
	stuff. Also add a submenu for Labels.

	* mail-display.c (pixmap_press): Sync up with the new EPopupMenu
	API. Note: This code can probably now be fixed to use per-item
	closures - yay!

	* mail-accounts.c (construct): Connect to the label GtkEntry's and
	GnomeColorPickers and also to the Restore Defaults button.

	* mail-config.c (mail_config_get_label_name): New function to get
	a label's name.
	(mail_config_set_label_name): New function to set the label name.
	(mail_config_get_label_color): New function to get the label
	color.
	(mail_config_set_label_color): New function to set the label
	color.
	(config_read): Read in the config options for the labels and their
	colors.
	(mail_config_write_on_exit): Save the label options.

svn path=/trunk/; revision=16186
2002-03-16 02:22:54 +00:00
1911f19678 Implemented.
2002-03-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (next_thread): Implemented.

	* message-list.c (message_list_select_next_thread): New function
	to select the next thread.

svn path=/trunk/; revision=16165
2002-03-14 20:14:08 +00:00
fff110978a Set the folder on a folder-browser object.
2002-03-12  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser.c (folder_browser_set_folder): Set the folder on
	a folder-browser object.

	* folder-browser-window.c (folder_browser_window_new): Simple
	window to display a folder-browser.

	* mail-callbacks.c (view_digest): New callback to open a
	folder-browser-window with a digest folder.

svn path=/trunk/; revision=16127
2002-03-12 21:10:12 +00:00
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
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
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
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
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
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
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
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
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
83f26d87de use reset undo in editor
svn path=/trunk/; revision=15678
2002-02-11 21:49:56 +00:00
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
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
ee74c23472 call set_body later to allow ignored words to be sent to gtkhtml control
2002-02-07  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (mail_generate_reply): call set_body later to
	allow ignored words to be sent to gtkhtml control ahead

svn path=/trunk/; revision=15598
2002-02-07 20:30:29 +00:00
b7ac37f6b1 Bumped the required version of gal.
2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the required version of gal.

From addressbook/ChangeLog:

2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* gui/widgets/e-addressbook-view.c
	(e_addressbook_view_setup_menus): Changed this function to use the
	new GalViewMenus which takes a GalViewInstance, instead of a
	GalViewCollection.

From calendar/ChangeLog:

2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* gui/e-tasks.c (e_tasks_setup_view_menus), gui/gnome-cal.c
	(gnome_calendar_setup_view_menus): Made these use the new
	GalViewMenus stuff.

From mail/ChangeLog:

2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* folder-browser.c, folder-browser.h, folder-browser-ui.c,
	folder-browser-ui.h
	(folder_browser_ui_setup_view_menus,
	folder_browser_ui_discard_view_menus): Changed this to use the new
	GalViewMenus stuff.  Made these exported functions.

	* mail-callbacks.c, message-browser.c: Changed these to not pass
	the now removed row parameter to message_list_select.

	* mail-config.c, mail-config.h (mail_config_folder_to_safe_url):
	Refactored this out of mail_config_folder_to_cachename.

	* message-list.c, message-list.h (message_list_select): Removed
	the row argument.  Changed this to use the new function in ETree
	for finding the next cursor row that matches a test.
	(message_list_construct): Handle a failed construction of the
	ETree here.
	(message_list_setup_etree, save_tree_state): Don't load or save
	the header state.  folder-browser-ui.c deals with this now.

From views/ChangeLog:

2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* addressbook/galview.xml, calendar/galview.xml, mail/galview.xml,
	tasks/galview.xml: Added default-view parameters.

	* mail/As_Sent_Folder.galview: New galview.

	* mail/Makefile.am, mail/galview.xml: Added As_Sent_Folder
	galview.

From widgets/ChangeLog:

2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* menus/gal-view-menus.c, menus/gal-view-menus.h
	(gal_view_menus_new): Made this take a GalViewInstance instead of
	a GalViewCollection.  Reworked most of this to utilize the
	interfaces provided by GalViewInstance.

svn path=/trunk/; revision=15592
2002-02-07 11:24:08 +00:00
a184d302d5 Removed references to NEEDS_REPLY.
2002-02-06  Jeffrey Stedfast  <fejj@ximian.com>

	* message-list.c: Removed references to NEEDS_REPLY.

	* mail-callbacks.c (mark_as_needing_reply): Removed.
	(mark_as_not_needing_reply): Removed.
	(toggle_need_reply): Removed.

	* folder-browser.c (on_right_click): Remove CAN_MARK_NEEDS_REPLY
	stuff, this is going to be implemented in an entirely different
	way.

svn path=/trunk/; revision=15585
2002-02-07 00:27:24 +00:00
45e4e8c185 Dont double-free the text body data.
2002-02-06  Not Zed  <NotZed@Ximian.com>

        * mail-callbacks.c (mail_generate_reply): Dont double-free the
        text body data.

svn path=/trunk/; revision=15574
2002-02-06 01:35:22 +00:00
45c3370178 Add attachments after we've seen if the composer object is valid.
2002-01-31  Not Zed  <NotZed@Ximian.com>

        * mail-callbacks.c (mail_generate_reply): Add attachments after
        we've seen if the composer object is valid.
        (mail_generate_reply): Support new flag REPLY_NO_QUOTE - if set,
        then dont quote any of the message in the reply.

svn path=/trunk/; revision=15560
2002-02-04 02:22:18 +00:00
7078e68956 Don't bother setting the auto-cc/bcc recipients here. I'm moving the code
2002-01-31  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message): Don't bother setting
	the auto-cc/bcc recipients here. I'm moving the code to add them
	in the GUI in the composer so they will already be in the
	recipient list by this point.

svn path=/trunk/; revision=15549
2002-02-01 20:49:30 +00:00
81762a26a3 ignore spell checking of words in addresses, move set_body_text after all
2002-01-31  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (mail_generate_reply): ignore spell checking of
	words in addresses, move set_body_text after all ignored words are
	set so we don't have to spell check whole document again
	(mail_ignore_address): helper function
	(mail_ignore): ditto

svn path=/trunk/; revision=15541
2002-01-31 18:58:59 +00:00
207303df9e Pass the parent window to mail_account_editor_new().
2002-01-30  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (mail_edit): Pass the parent window to
	mail_account_editor_new().

	* mail-account-editor.c (mail_account_editor_new): Set the parent
	window here because construct() inadvertantly
	gtk_widget_show_all's the editor.

	* mail-account-gui.c (mail_account_gui_save): Use g_basename()
	rather than strrchr for '/' especially since the strrchr code
	wasn't doing any NULL checks.

svn path=/trunk/; revision=15533
2002-01-30 23:46:32 +00:00
c874c06ba8 Changed the function signature so that we can pass in whom we want to
2002-01-29  Dave West  <kat@unleashed.org>

	* mail-callbacks.c (create_msg_composer): Changed the function
	signature so that we can pass in whom we want to compose as.
	Should fix bug #10391.
	(compose_msg): Get the current profile account and pass it along
	to create_msg_composer.
	(send_to_url): Pass in a NULL profile account to cause
	create_msg_composer to use the default account.

svn path=/trunk/; revision=15518
2002-01-30 00:33:34 +00:00
865606984f New function that implements the Redirect feature.
2002-01-29  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (redirect): New function that implements the
	Redirect feature.

	* mail-ops.c (mail_send_message): If we are redirecting a message,
	get the Resent-* recipients otherwise get the normal To/Cc/Bcc
	recipients and use them in the CamelTransport::send_to() method.

	* mail-session.c (main_get_filter_driver): Set the beep_func to
	the beep_cb, not the play_sound_func. Oops ;-)

	* folder-browser-ui.c: Add Redirect bonobo verb thingy here.
	(folder_browser_ui_set_selection_state): Add MessageRedirect to
	the proper string arrays.

svn path=/trunk/; revision=15511
2002-01-29 21:06:01 +00:00
e43d51f0f3 (footer_info_free): unref footer font
svn path=/trunk/; revision=15509
2002-01-29 19:56:48 +00:00
2488e2dfc1 (do_mail_print): get rid of static global variables, as they are
not thread safe (thanks to clahey for pointing this out)

svn path=/trunk/; revision=15508
2002-01-29 19:37:29 +00:00
be2809c7b8 initialize line to 0 to make everybody happy ;-) ops, set local_font to
2002-01-29  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (do_mail_print): initialize line to 0 to make
	everybody happy ;-)
	ops, set local_font to NULL

svn path=/trunk/; revision=15506
2002-01-29 19:16:29 +00:00
2f904b426c Don't bother checking for invalid recipients anymore. If a recipient is
2002-01-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message): Don't bother checking
	for invalid recipients anymore. If a recipient is invalid, the
	transport error message will specify that now.

svn path=/trunk/; revision=15501
2002-01-29 00:43:49 +00:00
d5f73b0fdd print footer (footer_print_cb): print page number and number of pages
2002-01-28  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (do_mail_print): print footer
	(footer_print_cb): print page number and number of pages

svn path=/trunk/; revision=15499
2002-01-28 23:34:26 +00:00
57af36acc7 If the mail-display is in focus, then select-all in the mail display
2002-01-24  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (select_all): If the mail-display is in focus,
	then select-all in the mail display rather than the
	message-list. Fixes bug #19126.

svn path=/trunk/; revision=15456
2002-01-24 20:09:04 +00:00
f87bf7fa77 Simplified.
2002-01-22  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (guess_me): Simplified.

svn path=/trunk/; revision=15424
2002-01-22 20:52:16 +00:00
22604df27b Don't remove any X-Evolution* headers here, the composer already knows to
2002-01-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (do_edit_messages): Don't remove any
	X-Evolution* headers here, the composer already knows to ignore
	these. Besides, it needs to know the X-Evolution-Format header.

svn path=/trunk/; revision=15287
2002-01-10 21:25:57 +00:00
1b28e0bb92 Do proper refcounting on the draft folder.
2002-01-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_save_draft_cb): Do proper refcounting
	on the draft folder.

svn path=/trunk/; revision=15268
2002-01-09 02:16:50 +00:00
b5ca749f36 Add an Organization header.
2002-01-03  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message): Add an Organization
	header.

svn path=/trunk/; revision=15242
2002-01-03 23:54:28 +00:00