Commit Graph

392 Commits

Author SHA1 Message Date
d2bd0132f7 Changed "Send" to "Compose" to avoid user confusion. Compose is a little
2000-06-29  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser-factory.c: Changed "Send" to "Compose" to
	avoid user confusion. Compose is a little more intuitive.

	* mail-ops.c (compose_msg): Renamed to avoid confusion

svn path=/trunk/; revision=3805
2000-06-29 21:06:28 +00:00
3649d5dc6d From mail:
2000-06-29  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c, mail-ops.c: Changed the name of
	e_table_select_row to e_table_set_cursor_row.

From widgets/e-table:

2000-06-29  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-click-to-add.c: Made this appear a bit better.

	* e-table-defines.h: Cleaned this up a bit, added
	ETableForeachFunc.

	* e-table-group-container.c, e-table-group-leaf.c,
	e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h,
	e-table.c, e-table.h: Changed e_table_select_row to
	e_table_set_cursor_row.  Changed e_table_get_selected_view_row to
	e_table_get_cursor_row.  Added e_table_selected_row_foreach.

	* e-table-header-item.c: Fixed some warnings.

	* e-table-sorted-variable.c: Removed some unneeded debugging print
	statments.

	* e-tree-example-1.c: Changed e_table_get_selected_view_row to
	e_table_get_cursor_row.

svn path=/trunk/; revision=3799
2000-06-29 19:22:24 +00:00
e923d2eea9 Make the broken threads optional
svn path=/trunk/; revision=3740
2000-06-26 18:21:45 +00:00
aa68bd85f1 Land most of the stuff to move fetch_mail, send_mail, expunge_folder, init_imap, and init_news to async operation.
svn path=/trunk/; revision=3711
2000-06-23 19:07:01 +00:00
4e9d56a6c0 Revert Peter's change and Chris's fix to it, since it looks like Peter
probably didn't actually intend to commit it yet...

svn path=/trunk/; revision=3699
2000-06-22 21:44:40 +00:00
c422e1f742 new function, passed as arg to mail_operation_try. (fetch_mail): add
2000-06-22  Chris Toshok  <toshok@helixcode.com>

	* mail-ops.c (fetch_mail_cleanup): new function, passed as arg to
	mail_operation_try.
	(fetch_mail): add cleanup func arg.

svn path=/trunk/; revision=3698
2000-06-22 21:42:24 +00:00
d8962e3587 Prettify the progress dialog a bit.
svn path=/trunk/; revision=3689
2000-06-22 13:42:25 +00:00
0f56e5e54e Add a confirmation dialog box for when the user tries to send a
message without a subject.

svn path=/trunk/; revision=3644
2000-06-20 04:59:16 +00:00
9c21067261 new function to do a uid to row mapping. (mark_msg_seen, select_msg,
* message-list.c (get_message_row): new function to do a uid to
	row mapping.
	(mark_msg_seen, select_msg, message_changed,
	message_list_set_folder): Update for Camel flag changes.
	(on_cursor_change_cmd): Rename "row_to_select" to "selected_row",
	and keep a "selected_uid" as well.

	* mail-ops.c (composer_send_cb): Update for Camel flag changes,
	and fix some memory-handling bugs. (Free the post_send_data when
	the composer is destroyed, not when the user clicks "send", which
	could happen never, or more than once.)
	(delete_msg): Update for Camel flag changes, and fix the "holding
	down the delete key skips some messages" bug.

svn path=/trunk/; revision=3600
2000-06-16 23:11:10 +00:00
0f13b8f0bc Update for CamelFolder changes.
* mail-ops.c (fetch_mail):
	* component-factory.c (owner_unset_cb):
	* message-list.c (message_list_set_folder): Update for CamelFolder
	changes.

svn path=/trunk/; revision=3583
2000-06-15 22:22:20 +00:00
94f0df746e New function to revert back to non-searching mode.
* folder-browser.c (folder_browser_clear_search): New function to
	revert back to non-searching mode.

	* mail-ops.c (fetch_mail): Use folder_browser_clear_search.

svn path=/trunk/; revision=3576
2000-06-15 17:31:53 +00:00
86c38b418e if the document requests an unknown URL, it's not an error; just ignore
* mail-display.c (on_url_requested): if the document requests an
	unknown URL, it's not an error; just ignore the URL.

	* mail-ops.c (fetch_mail): If there's no new mail, tell the user.

svn path=/trunk/; revision=3574
2000-06-15 15:24:40 +00:00
66cfad2033 display error from camel_folder_expunge if there is one.
* mail-ops.c (expunge_folder): display error from
	camel_folder_expunge if there is one.

svn path=/trunk/; revision=3500
2000-06-10 01:16:26 +00:00
d4d2509314 close and expunge the source folder after copying it to a local folder.
* mail-ops.c (fetch_mail): close and expunge the source folder
	after copying it to a local folder.

svn path=/trunk/; revision=3493
2000-06-09 19:45:33 +00:00
440b4825e9 Update for folder creation/existence changes.
* mail-ops.c (fetch_mail):
	* folder-browser.c (folder_browser_load_folder): Update for folder
	creation/existence changes.

	* message-list.c (message_list_set_folder): Remove the code to
	create the folder if it doesn't exist, since we don't want to do
	that.

svn path=/trunk/; revision=3455
2000-06-07 00:07:06 +00:00
ce74cc7bb1 Leave the composer window around if the message doesn't get sent.
* mail-ops.c (composer_send_cb): Leave the composer window around
	if the message doesn't get sent.

svn path=/trunk/; revision=3436
2000-06-06 00:46:33 +00:00
5e20857d1c fix some function prototypes
* mail.h, mail-ops.c: fix some function prototypes

svn path=/trunk/; revision=3433
2000-06-05 22:29:28 +00:00
a9959a65c2 Use camel_service_connect, not connect_with_url, since we already passed
* mail-ops.c (fetch_mail): Use camel_service_connect, not
	connect_with_url, since we already passed the URL into
	camel_session_get_store.

svn path=/trunk/; revision=3392
2000-06-02 18:13:17 +00:00
9f325587d4 Add a quick hack to move the selection down a row when you delete a
* mail-ops.c (delete_msg): Add a quick hack to move the selection
	down a row when you delete a message.

svn path=/trunk/; revision=3355
2000-06-02 00:34:06 +00:00
8e70b18c3f started to add a camel provider configuration tool
svn path=/trunk/; revision=3287
2000-05-30 17:46:17 +00:00
55864c766c don't put up an error message if the user cancels the password dialog.
* mail-ops.c (fetch_mail): don't put up an error message if the
	user cancels the password dialog.

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

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

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

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

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

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

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

svn path=/trunk/; revision=3241
2000-05-28 06:18:11 +00:00
735c913737 set CAMEL_MESSAGE_ANSWERED on a message after a successful reply.
* mail-ops.c (composer_send_cb, reply): set CAMEL_MESSAGE_ANSWERED
	on a message after a successful reply.

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

svn path=/trunk/; revision=3221
2000-05-26 18:09:18 +00:00
23d300e9fa connect to and disconnect from the transport.
* mail-ops.c (composer_send_cb): connect to and disconnect from
	the transport.

svn path=/trunk/; revision=3197
2000-05-25 03:17:43 +00:00
99f97dea44 Update for camel_folder_get_uids (folder_changed,
* message-list.c (select_msg): Update for camel_folder_get_uids
	(folder_changed, message_list_set_folder): Update for
	camel_folder_get_summary

	* mail-ops.c (fetch_mail): Update for camel_folder_get_uids

svn path=/trunk/; revision=3128
2000-05-19 00:47:58 +00:00
13a30fa494 Ok, so all incoming mail comes through filters, yay!
The default is just to copy to the inbox.

I wouldn't trust this code as far as i could piss up
a wall, just yet.

2000-05-16  NotZed  <NotZed@HelixCode.com>

        * mail-ops.c
        (fetch_mail): Apply filters to incoming mail ... *hold breath*
        If we are coming from a non-indexed/searchable/etc source, then
        copy it to an mbox first.  When copying mail from an mbox source,
        dont remove it aftewards, open it for append, so partially
        filtered mail isn't lost.

svn path=/trunk/; revision=3102
2000-05-17 04:10:34 +00:00
464b02c847 New menu to bring up the filter editor, and edit filters. They dont
get invoked yet though.

2000-05-16  NotZed  <NotZed@HelixCode.com>

        * mail-ops.c (filter_edit): Function to bring up the filter editor.
        (filter_druid_clicked): Save/close dialogue.

        * Makefile.am (evolution_mail_LDADD): Added libfilter.
        (INCLUDES): Add EVOLUTION_DATADIR, and fix matt's brokeneditor(tm)
        for putting spaces instead of tabs in.

svn path=/trunk/; revision=3099
2000-05-16 23:09:26 +00:00
9268ab3217 Use 6 X's to mkstemp, as required by the man page, just a temp fix, this
2000-05-12  NotZed  <NotZed@HelixCode.com>

        * mail-ops.c (fetch_mail): Use 6 X's to mkstemp, as required by
        the man page, just a temp fix, this should probably change to a
        known filename.

svn path=/trunk/; revision=3007
2000-05-12 21:51:58 +00:00
c6de9ace9f make this a little less kludgy. Use gnome_error_dialog rather than printf
* folder-browser.c (folder_browser_load_folder): make this a
	little less kludgy. Use gnome_error_dialog rather than printf on
	errors.

	* mail-ops.c (fetch_mail): Fix to work with the new shell stuff...
	sorta. Will need more fixing later when the new shell framework is
	more done.

	* mail-config.c (finish): Call gnome_config_sync so the data
	actually gets written.

svn path=/trunk/; revision=2931
2000-05-09 05:08:25 +00:00
5883763060 Don't hardcode "inbox" here.
* folder-browser-factory.c (folder_browser_factory): Don't
	hardcode "inbox" here.

	* folder-browser.c (folder_browser_set_uri): Don't hardcode
	"inbox" here either.
	(folder_browser_load_folder): Create a new store according to the
	folder browser's URI, and load the mbox file from that store.
	Parts of this are temporary.

	* session.c, mail.h: There is no longer a global store, just a
	global session.

	* mail-config.c, mail-ops.c: Update for default_session -> session
	change. fetch_mail is currently broken.

svn path=/trunk/; revision=2853
2000-05-07 03:15:22 +00:00
8fbd4ab4bd New code to configure identity, mail source, and mail transport.
* mail-config.c: New code to configure identity, mail source, and
	mail transport.
	(mail_config_druid): A druid using the config widgets. (Only
	allows configuration of a single identity, source, and transport.)

	* mail-ops.c (check_configured): New function to make sure the
	user has configured stuff, and call the	druid if not.
	(fetch_mail, send_msg, send_to_url, reply, forward_msg): Call
	check_configured
	(composer_send_cb): Make this pass the message to a CamelTransport
	rather than just printing it to stdout.

	* folder-browser-factory.c (development_warning): Add a warning
	about sending mail, since you can do that now.

svn path=/trunk/; revision=2842
2000-05-06 22:57:38 +00:00
2ef945c6e2 consolidate mail-format.h, mail-identify.h, mail-ops.h, main.h and
* mail.h: consolidate mail-format.h, mail-identify.h, mail-ops.h,
	main.h and session.h into this new file. There's no reason to have
	a .h for every .c.

svn path=/trunk/; revision=2830
2000-05-06 17:16:22 +00:00
0cb506a96a Ok, you can now delete and expunge messages ... not really pretty
(gui wise), but it works, after a fashion.

> 	* folder-browser-factory.c: Setup callback for actual delete op.
> 	(control_activate): Setup a tool menu item to expnge deleted
> 	messages.
>
> 	* mail-ops.c (delete_msg): Toggle the delete flag on a message.
> 	(expunge_folder): New function to expunge deleted messages from
> 	the current folder.

svn path=/trunk/; revision=2744
2000-05-02 03:00:56 +00:00
19a9f773ab This is no longer necessary.
* session.c (session_providers_init): This is no longer necessary.

	* mail-ops.c (fetch_mail): Remove kludge to load remote provider,
	as camel can do it by itself now.

svn path=/trunk/; revision=2692
2000-04-30 15:36:46 +00:00
f99adedeb6 Oops. Remove the part of the previous patch that wasn't supposed to
escape into the real world. :)

svn path=/trunk/; revision=2665
2000-04-27 19:06:16 +00:00
397a851038 Move text_to_html to e-util.
* mail-format.c: Move text_to_html to e-util.

	* mail-ops.c (send_to_url): New routine. Thin wrapper for
	e_msg_composer_new_from_url.

	* mail-display.c (on_link_clicked): print a warning for news or
	nntp URLs (which we'll deal with some day), and call send_to_url
	for mailto URLs.

svn path=/trunk/; revision=2664
2000-04-27 19:03:54 +00:00
4c1c537e19 rename "send" to "send_msg", to avoid name clash with the tcp function.
* folder-browser-factory.c: rename "send" to "send_msg", to avoid
	name clash with the tcp function. Connect the "forward" button.

	* mail-ops.c: rename "send" to "send_msg", to avoid name clash
	with the tcp function. Add forward_msg function.

	* mail-format.c (mail_generate_forward): support function for
	forward_msg. Pretty much a big kludge right now, pending the
	attachment/attachment-bar changes.

svn path=/trunk/; revision=2562
2000-04-23 17:15:07 +00:00
bd8d36fbcb #include "mail-format.h"
svn path=/trunk/; revision=2555
2000-04-22 18:34:58 +00:00
f5ec554c15 move msg_composer_cb and msg_composer_send_cb to mail-ops. Attach send,
* folder-browser-factory.c: move msg_composer_cb and
	msg_composer_send_cb to mail-ops. Attach send, reply, and "reply
	to all" buttons.

	* mail-ops.c (composer_send_cb, send): moved from
	folder-browser-factory.c.
	(reply_to_sender, reply_to_all): new functions to do replies.

	* mail-format.c (text_to_html): Add an "add_pre" flag, to make
	it wrap the output in <pre></pre>.
	(mail_generate_reply): New function to create a composer and build
	a reply in it.

svn path=/trunk/; revision=2554
2000-04-22 18:07:14 +00:00
e90765d2f6 Add some #includes for the non-HAVE_MKSTEMP case
* mail-ops.c: Add some #includes for the non-HAVE_MKSTEMP case

svn path=/trunk/; revision=2361
2000-04-10 15:49:55 +00:00
c4f6086c29 use camel_movemail when fetching mail from an mbox store. This leaves
* mail-ops.c (fetch_mail): use camel_movemail when fetching mail
	from an mbox store. This leaves behind temp files for now,
	because CamelMboxFolder::delete is too confused to use, and NotZed
	is rewriting CamelMboxFolder, so I'm not going to bother to try to
	fix it.

svn path=/trunk/; revision=2359
2000-04-10 14:39:15 +00:00
2b55a1e90c new file, for toolbar/menu callbacks (fetch_mail): fetch mail. Doesn't do
* mail-ops.c: new file, for toolbar/menu callbacks
	(fetch_mail): fetch mail. Doesn't do mbox locking. Many kludges.

	* folder-browser-factory.c (control_activate): use new fetch_mail
	function as the callback for the "New mail" icon. Rename check_cb
	to random_cb.

	* Makefile.am: don't build test-sources since the version in
	CVS doesn't do much and once I've fixed it it won't be a separate
	program. Add mail-ops.[ch].

svn path=/trunk/; revision=2330
2000-04-07 20:07:32 +00:00