Commit Graph

52 Commits

Author SHA1 Message Date
09e6aacd2d transfer the current acount info, which will be regarded as the sender of
2002-12-07 leon.zhang  <leon.zhang@sun.com>

        * component-factory.c (user_create_new_item_cb):  transfer the
        current acount info, which will be regarded as the sender of
        new composer, to send_to_url().

        * mail-callbacks.h (send_to_url): Add a new parameter for parent
        folder uri.

        * mail-callbacks.c (send_to_url): Create composer base on source
        account info from parent folder physical uri.
        (post_to_url): create composer based on current account from
        parent folder physical uri.

        * mail-display.c (on_link_clicked): Apply new format of function:
        send_to_url.

        Fixes bug #35123 #35289

2003-01-24  Not Zed  <NotZed@Ximian.com>

        * mail-local.c (non_equal): We do actually need to check they are
        file url's, otherwise, all url's match.

svn path=/trunk/; revision=19611
2003-01-24 04:59:36 +00:00
a8a50b5085 Updated to call post_to_url if the id is "post".
2002-08-05  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c (user_create_new_item_cb): Updated to call
	post_to_url if the id is "post".

	* mail-callbacks.c (post_to_url): New function so that we don't
	need a FolderBrowser to post a new message.
	(post_message): Call post_to_url since they shared so much code.

svn path=/trunk/; revision=17698
2002-08-05 18:33:04 +00:00
0d27a62785 Use mail_tools_folder_to_url().
2002-07-24  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (mail_config_folder_to_safe_url): Use
	mail_tools_folder_to_url().

	* mail-tools.c (mail_tools_folder_to_url): New convenience
	function to take a CamelFolder and return the URL associated with
	it.

	* mail-callbacks.c (composer_get_message): Pass in a 'post'
	argument so we know whether or not we can ignore a NULL set of
	recipients.
	(composer_send_cb): Default send->send to TRUE unless we are in
	Post-To mode, in which case set send->send to FALSE (since we'll
	have nothing to send). Also, if we are in Post-To mode, append to
	the folder the user wants to post to rather than appending to
	Outbox.
	(composer_send_queued_cb): Only queue a send thread if send->send
	is TRUE (ie, the composer was not in Post mode - if it was in Post
	mode, then the message post has already been saved in the correct
	folder so there is nothing to do).
	(post_message): New function to create an empty composer widget in
	Post mode.
	(post_reply): New function that calls mail_reply with the new mode
	of REPLY_POST.
	(mail_generate_reply): If the mode is REPLY_POST, create a Post
	composer widget otherwise create a normal composer widget.

svn path=/trunk/; revision=17592
2002-07-25 18:21:15 +00:00
a293a2aa21 No longer need to pass a postpone_cb function into the composer
2002-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* main.c (main): No longer need to pass a postpone_cb function
	into the composer factory_init.

	* mail-send-recv.c (get_receive_type): If the provider is a
	transport, return SEND_SEND.

	* mail-config.c (mail_config_get_default_transport): If the
	default account doesn't have a transport, find the first account
	that does.

	* mail-callbacks.c (append_mail_cleanup): Don't bother freeing the
	appended_uid here.
	(composer_send_internal): New helper function that does all the
	similar work that composer_send_cb and composer_postpone_cb did.
	(composer_send_cb): Append the message to Outbox and in the async
	callback, queue a message send operation.
	(composer_postpone_cb): Removed.
	(composer_send_queued_cb): The new async callback for
	composer_send_cb(). If the append is successful, queue a message
	send operation and destroy the composer otherwise re-show the
	composer.
	(save_draft_done): g_strdup the appended uid.
	(compose_msg): Don't connect to the postpone signal anymore as it
	no longer exists.
	(send_to_url): Same.
	(mail_reply): Here too.
	(forward_get_composer): And here.
	(redirect_get_composer): Again here.
	(do_edit_messages): And finally here.

	* mail-ops.c (append_mail_free): Free the appended uid.

svn path=/trunk/; revision=17379
2002-07-05 19:38:11 +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
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
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
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
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
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
900078b311 Connect to the save-draft signal. (send_to_url): Here too. (mail_reply):
2001-12-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (compose_msg): Connect to the save-draft signal.
	(send_to_url): Here too.
	(mail_reply): And here...
	(forward_get_composer): Same.
	(do_edit_messages): And finally here.

svn path=/trunk/; revision=15081
2001-12-14 19:11:05 +00:00
b5e7713c8e Implements marking messages as "Need Reply".
Implements marking messages as "Need Reply".

2001-12-09  Jon Trowbridge  <trow@ximian.com>

	* mail-need-reply.xpm: Added a really, really ugly and
	awful icon to symbolize "message needs a reply".

	* Makefile.am (EXTRA_DIST): Added mail-need-reply.xpm.

2001-12-09  Jon Trowbridge  <trow@ximian.com>

	* camel-folder-summary.c: Add "NeedsReply" to the flag_names array
	for CAMEL_MESSAGE_NEEDS_REPLY.

	* camel-folder-summary.h: Added CAMEL_MESSAGE_NEEDS_REPLY flag.

2001-12-09  Jon Trowbridge  <trow@ximian.com>

	* vfoldertypes.xml: Add "Needs Reply" option to different status
	types.

	* filtertypes.xml: Add "Needs Reply" option to different status
	types.

2001-12-09  Jon Trowbridge  <trow@ximian.com>

	* message-list.c: #include "art/mail-need-reply.xpm".
	(ml_tree_value_at): Adjust magic numbers, show "Need Reply" icon
	if the message needs reply.
	(message_list_create_extras): Adjust magic numbers to add new
	icon.
	(on_click): Changed to toggle between unread, read, and need reply
	when the status icon is clicked.

	* mail-callbacks.c (mark_as_needing_reply): Added.
	(mark_as_not_needing_reply): Added.  Add "set" value to struct
	post_send_data.
	(composer_sent_cb): Use both "flags" and "set" elements of
	post_send_data when setting message flags.
	(mail_reply): Clear "Needs Reply" flag when we actually reply to a
	message.

	* folder-browser.c: Changed flag values to be given by
	bit-shifting (1<<5) vs. base-ten (32).  Added
	CAN_MARK_DOESNT_NEED_REPLY flag.  Added "Mark as Needing Reply"
	and "Mark as Not Needing Reply" elements to context menu.
	(on_right_click): Hide "Mark as (Not) Needing Reply" context menu
	elements as appropriate.

svn path=/trunk/; revision=14946
2001-12-10 03:50:36 +00:00
d0053fd3c7 Check that the mail-display hasn't been destroyed.
2001-12-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (stream_write_or_redisplay_when_loaded): Check
	that the mail-display hasn't been destroyed.
	(mail_display_redisplay): Same here.

2001-12-07  Dan Winship  <danw@ximian.com>

	* mail-send-recv.c (receive_update_got_store): If updating a store
	that we don't have an associated storage for, just request a
	folder tree and then free it. (For the Connector)

	* mail-callbacks.h: Add missing part of Jeff's 12-03 patch so this
	actually compiles.

svn path=/trunk/; revision=14938
2001-12-07 20:25:04 +00:00
abf50455e0 Setup the UI for the AddSenderToAddressbook ui verb thingy.
2001-12-03  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-ui.c: Setup the UI for the AddSenderToAddressbook
	ui verb thingy.

	* mail-callbacks.c (add_sender_to_addrbook): New bonobo-ui
	callback that adds a sender to the addressbook.

svn path=/trunk/; revision=14905
2001-12-06 18:31:44 +00:00
4ca07463a0 More fixing of the license texts.
svn path=/trunk/; revision=14217
2001-10-27 18:21:05 +00:00
6b011476f6 fixed bug #13151
svn path=/trunk/; revision=13858
2001-10-21 23:19:44 +00:00
bb068baabd hook up zoom functions.
2001-10-20  Larry Ewing  <lewing@ximian.com>

	* folder-browser-ui.c: hook up zoom functions.

	* mail-callbacks.h: add prototypes.

	* mail-callbacks.c (zoom_in): added.
	(zoom_out): added.
	(zoom_reset): added.

svn path=/trunk/; revision=13832
2001-10-20 22:59:16 +00:00
ff41087ad4 Hide the app->window. (do_mail_print): Set the parent of the gnome-dialog
2001-08-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (manage_subscriptions): Hide the app->window.
	(do_mail_print): Set the parent of the gnome-dialog to be the
	folder-browser so that when evolution is closed, the print dialog
	gets destroyed. Should fix bug #4781.

svn path=/trunk/; revision=11757
2001-08-08 00:22:05 +00:00
b4f3f0c102 [Bug #5225: No UI way to mark as unimportant]
2001-07-23  Jason Leach  <jleach@ximian.com>

	[Bug #5225: No UI way to mark as unimportant]

	* folder-browser.c (on_right_click): Do the necessary stuff to
	show or hide the correct "Mark Important" or "Mark as Unimportant"
	menu items depending on the status of messages that are selected.

	* folder-browser-ui.c: Add the MarkAsUnimportant verb here.

	* mail-callbacks.c (mark_as_unimportant): Simple function that's
	the callback for these new menu items.

svn path=/trunk/; revision=11316
2001-07-23 19:14:53 +00:00
fe0499e1d9 Changed to return the created window. (find_socket): Added. Copied from
2001-06-30  Jon Trowbridge  <trow@ximian.com>

        * mail-display.c (make_popup_window): Changed to return the
        created window.
        (find_socket): Added.  Copied from e-shell-view.c.  The fact
        that I'm copying this bit of code all over isn't cool.
        (html_button_press_event): Properly destroy the popup window when
        the widget inside the control is destroyed.

        * mail-callbacks.c (addrbook_sender): Added.  Implements
        the "Add sender to addressbook" right-click. (Bug #3645)
        (find_socket): Added.  Copied from e-shell-view.c.

        * folder-browser.c: Added "Add sender to addressbook" to
        context_menu[].

        * mail-display.c: (handle_embedded_address_object): Removed.
        (on_object_requested): Removed handling for embedded address
        objects.  (Which was obsolete crap.)

svn path=/trunk/; revision=10643
2001-07-01 00:41:13 +00:00
4cbcd49a8b Bump required gal version for new accessors in ETree.
2001-06-27  Peter Williams  <peterw@ximian.com>

        * configure.in (gal): Bump required gal version for new accessors
        in ETree.

mail:

2001-06-27  Peter Williams  <peterw@ximian.com>

        * folder-browser-ui.c: Uncomment EditSelectThread. Yaay!

        * mail-callbacks.c (select_thread): New function. Self-explanatory
        name. Implementation is a little hairy.

        * mail-callbacks.h: Prototype it here.

        * mail-callbacks.c (invert_selection): Here too.
        (select_all): Here too.

        * subscribe-dialog.c (subscribe_select_all): Update to use new
        ETree accessors.
        (subscribe_invert_selection): Here too.

calendar:

2001-06-27  Peter Williams  <peterw@ximian.com>

        * conduits/*/Makefile.am (INCLUDES): More srcdir != builddir
        fixes.

svn path=/trunk/; revision=10544
2001-06-27 21:22:37 +00:00
03d2f262c0 Don't pop up a progress dialog to say "I already finished this a while
* mail-mt.c (op_status_timeout): Don't pop up a progress dialog to
	say "I already finished this a while ago".

	* component-factory.c (storage_create_folder): Pass the path
	prefix to folder_created so it can add it to the folder tree in
	the right place.

	* mail-callbacks.c (folder_created): Take a path prefix.

svn path=/trunk/; revision=10508
2001-06-26 19:13:24 +00:00
57db15334b sync folders after we've gotten mail
2001-06-25  jacob berkman  <jacob@ximian.com>

	* mail-send-recv.c (free_send_data): sync folders after we've
	gotten mail

	* folder-browser-factory.c (control_activate): set the ui
	component on the folder browser
	(control_activate): update the view preview item
	(control_deactivate): don't sync the folder here
	(control_deactivate): unset the ui component of the folder browser

	* mail-callbacks.c (toggle_flags): stuff from jleach to add an
	importance keybinding
	(mark_as_important): ditto
	(toggle_as_important): again

	* mail-config.c (mail_config_get_show_preview):
	(mail_config_set_show_preview): basically a copy of
	get_thread_list() but for the preview pane

	* folder-browser.c (folder_browser_destroy): unref the our ui
	component
	(folder_browser_set_ui_component): new function for setting the ui
	component
	(save_cursor_pos):
	(set_cursor_pos): try to show the selected row when the preview
	pane is shown
	(folder_browser_set_message_preview): implement
	(folder_browser_toggle_preview): toggle the preview (duh)
	(on_key_press): add keybindings for marking as important (!), and
	hiding the preview pane (q)
	(etree_key): clean up a little bit, and make enter either show the
	preview pane or open the message
	(fb_resize_cb): only save the paned size if the preview is alread
	shown
	(folder_browser_gui_init): pass ourselves to fb_resize_cb
	(on_message_selected): only add the timeout if the preview is
	shown

svn path=/trunk/; revision=10491
2001-06-25 21:12:10 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
1072bbd659 Add Reply-to-List bonobo verbs.
2001-06-14  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-factory.c: Add Reply-to-List bonobo verbs.

	* folder-browser.c: Add Reply-to-List menu items.

	* mail-callbacks.c (mail_reply): Use an enum for specifying the
	reply mode, becaus enow we can reply-to-list.
	(reply_to_list): Implement.
	(reply_to_sender): Use REPLY_SENDER.
	(reply_to_all): Use REPLY_ALL.
	(mail_generate_reply): Handle the different modes.

svn path=/trunk/; revision=10232
2001-06-14 19:05:39 +00:00
1614f33b47 Added callbacks for Next/Previous Unread and Next/Previous Flagged
2001-05-25  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-factory.c: Added callbacks for Next/Previous
	Unread and Next/Previous Flagged message.

	* mail-callbacks.c (previous_flagged_msg): Implemented.
	(next_flagged_msg): Implemented.

svn path=/trunk/; revision=10014
2001-05-26 20:52:29 +00:00
dadc54fa98 Load http images if the user has force-loaded images too.
* mail-display.c (on_url_requested): Load http images if the user
	has force-loaded images too.
	(mail_display_redisplay): Update for normal/headers/source changes.
	(mail_display_load_images): New. Force HTTP image loading for the
	current message.

	* mail-config.c (mail_config_get_message_display_style,
	mail_config_set_message_display_style): Updated and renamed from
	mail_config_{get,set}_view_source

	* mail-callbacks.c (load_images): New.

	* folder-browser.c (folder_browser_set_message_display_style):
	Renamed and updated from folder_browser_toggle_view_source.

	* folder-browser-factory.c (verbs): Add ViewLoadImages.
	(control_activate): Update for normal/headers/source change to
	radio group.

svn path=/trunk/; revision=9820
2001-05-15 18:45:42 +00:00
b9401bbdf4 Split "Other" page into three pages, Display, Composer, and PGP. Add HTML
* mail-config.glade: Split "Other" page into three pages, Display,
	Composer, and PGP. Add HTML image stuff on the Display page and
	default forward style on the Composer page.

	* mail-config.c (mail_config_get_default_forward_style,
	mail_config_set_default_forward_style): User-specified default
	style for forwarding messages.
	(config_read, mail_config_write_on_exit): Deal with forward style.

	* mail-accounts.c: Handle HTML image display options and default
	forward style.

	* mail-callbacks.c (forward): New. Forward in the user-selected
	default style.
	(forward_inline, forward_quoted): Simplify these some. Remove the
	fallback to forward attached when forwarding multiple messages: it
	should just forward the multiple messages inline or quoted in
	those cases. (Which it doesn't yet, but that's a bug.)

	* folder-browser.c (context_menu): Remove "Forward inline" and
	make "Forward" call forward() rather than forward_attached().

	* folder-browser-factory.c: Update command/menu/toolbar/pixmap
	gunk for the "MessageForwardAttached" vs "MessageForward" split.

	* mail-session.c (mail_session_get_type):
	* mail-format.c (format_mime_part):
	* mail-account-gui.c (setup_service): Fix warnings.

svn path=/trunk/; revision=9792
2001-05-14 17:18:03 +00:00
fd660c14c6 helps to spell right ;-)
svn path=/trunk/; revision=9608
2001-04-26 23:53:54 +00:00
6722d22f5f Don't filter on Seen status. (previous_msg): Same. (next_unread_msg): New
2001-04-26  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (next_msg): Don't filter on Seen status.
	(previous_msg): Same.
	(next_unread_msg): New function that does what the old callback
	next_msg callback did (only better named).
	(previous_unread_msg): Same.

svn path=/trunk/; revision=9605
2001-04-26 23:36:10 +00:00
e2284d39dd Added "MessageSearch" verb.
2001-04-26  Jon Trowbridge  <trow@ximian.com>

	* folder-browser-factory.c: Added "MessageSearch" verb.

	* mail-callbacks.c (search_msg): Added search callback.
	(are_you_sure): Added some casts to fix compiler warnings.

	* mail-search.c: Added.  A simple search-in-message widget,
	that uses GtkHTML's searching capabilities.

2001-04-26  Jon Trowbridge  <trow@ximian.com>

	* evolution-mail.xml: Added "Search Message" to "View" menu.

svn path=/trunk/; revision=9575
2001-04-26 06:04:06 +00:00
57574f0be3 Cleaned up #includes. Remove unneccesary includes of <gnome.h>,
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* *.*: Cleaned up #includes. Remove unneccesary includes of
	<gnome.h>, <gtk/gtk.h>, <bonobo.h> and replaced with more
	fine grained headers where needed. Also marked a bunch of
	strings for translations and added some missing prototypes.

svn path=/trunk/; revision=9025
2001-03-29 20:53:17 +00:00
2a9d6b7ad6 Add Resend Message menu item.
2001-03-19  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-factory.c: Add Resend Message menu item.

	* folder-browser.c (on_right_click): Add resend to the right-click
	menu.

	* mail-callbacks.c (composer_sent_cb): Unref the message.
	(composer_postpone_cb): Unref the message here too.
	(resend_msg): New callback to allow resending of messages in the
	Sent folder.

svn path=/trunk/; revision=8816
2001-03-19 06:11:59 +00:00
f385c7c54a Added protection.
2001-03-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.h: Added protection.

	* folder-browser-factory.c: Add ActionsEmptyTrash. By the way -
	should we rename the bonobo verbs now that our menu structure has
	changed?

	* mail-callbacks.c (empty_trash): New callback to empty ALL of the
	trash folders.

svn path=/trunk/; revision=8633
2001-03-11 23:27:46 +00:00
97a894dc7d Set the Forward->Quoted callback. Also set the forward->Attachment
2001-03-08  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-factory.c: Set the Forward->Quoted callback.
	Also set the forward->Attachment callback.

	* mail-view.c (view_forward_msg): Specify FORWARD_ATTACHED.

	* mail-callbacks.c (forward_attached): Don't call
	forward_messages() anymore...never really needed to. Just handle
	it directly.
	(forward_inlined): Specify FORWARD_INLINE as the flag argument.
	(forward_quoted): New function sorta like forward_inlined except
	this forwards the message quoted.

	* mail-tools.c (mail_tool_forward_message): New function to
	prepare a message to be forwarded.

svn path=/trunk/; revision=8611
2001-03-09 00:43:35 +00:00
789ed9286e Reorganize the menus to have entries always in a consistent fashion, as
2001-02-27  Miguel de Icaza  <miguel@ximian.com>

	* gui/e-day-view.c (e_day_view_on_event_right_click): Reorganize
	the menus to have entries always in a consistent fashion, as
	reported to the genepool mailing list.
	(e_day_view_on_event_right_click): Added a FIXME comment to the
	FIXME comment without a FIXME.

	Now we use e_popup_menu.  This allows us to hide/show items on
	demand, and to sensitize/de-sensitize items depending on their
	state.

	This will also let us add icon support (when we get nice icons for
	this)

	* gui/e-week-view.c (e_week_view_show_popup_menu): Ditto.

	The files popup-menu.c and popup-menu.h can now be removed.
2001-03-01  Miguel de Icaza  <miguel@ximian.com>

	* folder-browser.c (on_right_click):  Move the context menus to
	the toplevel code;  Use enumerations for the various bitfield
	constants.

	Add support for hiding items that are not required (read/unread
	and delete/undelete).

	This requires my previous patch, as it assumes "Open" does the
	right thing instead of having two operations: Open and Edit.

2001-02-28  Miguel de Icaza  <miguel@ximian.com>

	* folder-browser.c (on_right_click): Removed draft folders op
	here, since open_msg now does the right thing (edit or view).

	* folder-browser-factory.c (update_pixmaps): Removed MessageEdit
	from here.

	* mail-callbacks.c (open_msg): New function, does the "right
	thing" to a message (either, edit or open).

	* folder-browser-factory.c: Register new command here.
	(update_pixmaps): Rename keys that have been shuffled around.
	(update_pixmaps): Rename to match new updates on xml file.

	Rename MessageOpenNewWindow to MessageOpen.  Change action from
	"view_message" to "open_message".

	* mail-callbacks.c (mark_all_as_seen): New command.  Marks all
	messages as seen.
2001-03-06  Miguel de Icaza  <miguel@ximian.com>

	* evolution-tasks.xml: Added "File/New/Task" as well.

	* evolution-mail.xml: Added "File/New/Mail Message" at the top
	with binding C-n.

	* evolution-calendar.xml: Set the binding for New Appointment to C-n

	* evolution-contact-editor.xml: Set the toolbar to hlook=text
	vlook=icon;  Set all icons priority-text to 1.

	* evolution-addressbook.xml: Added "Contact" to the New menu.

	* evolution.xml: Provide an entry point to put "New" items on the
	first level.

	We are going to need some Bonobo support to "hide" objects when
	other objects appear (like, having Mail Message bound to C-S-X in
	the global space, and when we switch to Mail, we only show the
	entry that has C-n as the binding).

2001-02-28  Miguel de Icaza  <miguel@ximian.com>

	* evolution.xml: Moved Importer after the Folder operations per
	Dan's proposal.

	* evolution-addressbook.xml: Renamed Settings/AddressBook
	Configuration to Tools/Settings.

	Make all the items have "Print" items that use the same icon
	instead of a collection of icons.

	* evolution-calendar.xml: Moved "Calendar Preferences" from
	"Settings" to "Tools/Settings".

	* evolution-mail.xml: Settings menu is fully gone.  All things
	that run a dialog now end up in "Tools" while actions end up in
	"Actions".  Hence I am right.

	Renamed "Mail Configuration..." to "Identieies and Servers"

	Move MessageMarkAsRead, MessageMarkAsUnRead
	to Edit menu.  Add MessageMarkAllAsRead.

	Remove "Print Message" from Message menu.  Remove "Print Preview
	Message" from Message menu.  Leave them on the "File" menu.

	Renamed "Reply to Sender" to "Reply" (awaiting Ettore's
	permission).

	Renamed "Messages" to "Actions".

	Open Message renamed to "Open Selected Items" (as this is what it
	actually does).

	Moved "Save Message As" to "File" menu.

	Added "Properties" to the File/Folder submenu.

	Edit menu now looks like this: Message Move, Message Copy, Select
	All, Invert Selection, Delete, Undelete, Mark as Read, Mark as
	Unread.  Some of them were moved from the "Messages" menu.

	"Forward message" shortcut changed to C-f

	Tools menu created.

	Create Rule From message moved to "Tools".

	* evolution.xml: Added Tools menu.  Moved Edit/Customize to
	Tools/Customize Toolbar.

	Added File/Folder submenu.  Duplicate "New Folder" in here.

2001-02-28  Miguel de Icaza  <miguel@ximian.com>

	* menus/gal-view-menus.c (build_menus): Add translation string
	here.

svn path=/trunk/; revision=8572
2001-03-06 21:08:56 +00:00
7ac8a9c5e8 Use mail_storage_create_folder
2001-02-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (do_scan_subfolders): Use mail_storage_create_folder

	* mail-callbacks.c (mail_storage_create_folder): Convenience
	function so we can keep all the evolution_storage_add_new_folder()
	code in one place as much as possible.

	* subscribe-dialog.c (recursive_add_folder): Use 'name' rather
	than the no-description bs since that's what all the other places
	do.

	* mail-callbacks.c (folder_created): New callback to handle the
	"folder_created" signal - handles CamelFolderInfo's recursively.
	(folder_deleted): Same but for "folder_deleted".

	* component-factory.c (storage_create_folder): Instead of doing
	the evolution_storage_new_folder() stuff by hand, pass it off to
	the new callback: folder_created(). At some point this will be
	unecessary as we'll attach this callback to the "folder_created"
	signal.

svn path=/trunk/; revision=8247
2001-02-15 23:54:16 +00:00
7d82a41220 Re-add non-static forward_messages. mail-view.c needs it.
* mail-callbacks.[ch]: Re-add non-static forward_messages.
	mail-view.c needs it.

svn path=/trunk/; revision=8175
2001-02-11 19:09:54 +00:00
7004fae0eb Don't leak memory. (forward_messages): change doinline to be a gboolean
2001-02-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (forward_inlined): Don't leak memory.
	(forward_messages): change doinline to be a gboolean argument.

svn path=/trunk/; revision=8172
2001-02-11 07:00:07 +00:00
8b2495dcd4 Fix spelling.
* folder-browser-factory.c:
	* mail-callbacks.c (send_receive_mail): Fix spelling.

svn path=/trunk/; revision=7760
2001-01-23 22:55:59 +00:00
6e62c05946 Added the next/previous toolbar buttons.
2001-01-18  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-factory.c: Added the next/previous toolbar
	buttons.

	* mail-callbacks.c (next_msg): New callback so we can have a next
	toolbar button.
	(previous_msg): Same but for previous.

svn path=/trunk/; revision=7630
2001-01-19 02:05:33 +00:00
67be94cbd5 Setup a cancellation handle. (do_fetch_mail): REgister for cancellation
2001-01-16  Not Zed  <NotZed@Ximian.com>

        * mail-ops.c (mail_do_fetch_mail): Setup a cancellation handle.
        (do_fetch_mail): REgister for cancellation here.
        (cleanup_fetch_mail): And unregister for cancellation here.
        (mail_get_message): Add a cancel handle.
        (get_message_get): Register/deregister for cancel.
        (get_message_free): & clean up.

        * mail-mt.c (mail_msg_received): Removed debuggng.

        * mail-callbacks.c (stop_threads): Callback for stopping.

        * folder-browser-factory.c: Add a stop button verb thingy.
        (control_activate): Disable the stop button by default.

svn path=/trunk/; revision=7527
2001-01-16 03:57:24 +00:00
c37da13423 Call mail-callbacks.c:forward_messages(), so the behaviour is the same as
2001-01-03  Not Zed  <NotZed@HelixCode.com>

        * mail-view.c (view_forward_msg): Call
        mail-callbacks.c:forward_messages(), so the behaviour is the same
        as from the folder browser.

        * mail-callbacks.c (forward_messages): New function to forward
        messages, attached or not.
        (forward_inlined): Changed to use new forward-messages
        implementation.
        (forward_attached): Likewise.
        (do_forward_attach): Callback for forwarding as attachment, once
        we have built it.
        (do_forward_inline): Likewise, for inline, once we have retrieved
        the message.
        (forward_message): Removed.

        * mail-ops.c (mail_build_attachment): New function to build an
        attachment of messages.
        (mail_do_attach_message): Removed, functionality superceeded by
        above.
        (mail_do_forward_message): Removed.  Likewise.
        (mail_create_folder): Started work on an alternative
        implementation of create_folder, but not sure about it yet.

        * mail-tools.c (mail_tool_generate_forward_subject): Remove locking.
        (mail_tool_make_message_attachment): Free the description when done.

svn path=/trunk/; revision=7232
2001-01-03 11:52:04 +00:00
bfb8c33969 Make inline forwarding not be the default anymore.
svn path=/trunk/; revision=6771
2000-12-04 10:52:55 +00:00
f22ac8e3a0 Added the SaveAs bonobo menu verb thingy.
2000-11-28  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser-factory.c: Added the SaveAs bonobo menu verb
	thingy.

	* mail-callbacks.c (save_msg): New callback for saving messages.
	(save_msg_ok):

	* folder-browser.c (on_right_click): Add a Save Ass menu item.

	* mail-ops.c (cleanup_save_messages): Save all emails to the path
	given.

svn path=/trunk/; revision=6699
2000-11-28 20:37:43 +00:00
64f95feb7d Added a new Forward as Attachment bonobo menu item verb.
2000-11-15  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser-factory.c: Added a new Forward as Attachment
	bonobo menu item verb.

	* mail-view.c (view_forward_msg): Updated to reflect changes to
	mail_do_forward_message(). It now forwards the message without
	attaching it - is this what we want?

	* mail-ops.c (mail_do_view_message_sources): New async function to
	display message source dialog windows.
	(setup_forward_messages): If we were asked not to forward the
	message(s) as attachment(s) and the user chose more than a single
	message, then default to making each message an attachment.
	(cleanup_forward_messages): If we aren't forwarding the message as
	an attachment, then quote the text and set the composer's body
	with it.

	* mail-callbacks.c (view_source): New callback to view the message
	source of all messages that are currently selected.
	(forward_attach): New callback to forward a message as an
	attachment (forward_msg is now for forwarding a message without it
	being an attachment).
	(forward_message): Convenience function for forwarding messages.

svn path=/trunk/; revision=6585
2000-11-16 00:36:07 +00:00
d893466560 Updated to have the same menu items as the new right-click menu -
2000-11-06  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser-factory.c: Updated to have the same menu items as
	the new right-click menu - eventually these 2 menus should be the
	same.

	* folder-browser.c (on_right_click): Now correctly handles the
	case of multiple selection.

	* mail-callbacks.c (enumerate_msg): Make public so it can be used
	in other source files (it's a useful function!)

svn path=/trunk/; revision=6419
2000-11-06 20:05:25 +00:00