Commit Graph

227 Commits

Author SHA1 Message Date
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