aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
Commit message (Collapse)AuthorAgeFilesLines
* Land most of the stuff to move fetch_mail, send_mail, expunge_folder, ↵Peter Williams2000-06-241-72/+191
| | | | | | init_imap, and init_news to async operation. svn path=/trunk/; revision=3711
* Revert Peter's change and Chris's fix to it, since it looks like PeterDan Winship2000-06-231-62/+23
| | | | | | probably didn't actually intend to commit it yet... svn path=/trunk/; revision=3699
* new function, passed as arg to mail_operation_try. (fetch_mail): addChris Toshok2000-06-231-1/+7
| | | | | | | | | | 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
* Prettify the progress dialog a bit.Peter Williams2000-06-221-23/+56
| | | | svn path=/trunk/; revision=3689
* Add a confirmation dialog box for when the user tries to send aEttore Perazzoli2000-06-201-0/+28
| | | | | | message without a subject. svn path=/trunk/; revision=3644
* new function to do a uid to row mapping. (mark_msg_seen, select_msg,Dan Winship2000-06-171-33/+51
| | | | | | | | | | | | | | | | | | * 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
* Update for CamelFolder changes.Dan Winship2000-06-161-9/+2
| | | | | | | | | * 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
* New function to revert back to non-searching mode.Dan Winship2000-06-161-0/+2
| | | | | | | | | * 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
* if the document requests an unknown URL, it's not an error; just ignoreDan Winship2000-06-151-0/+8
| | | | | | | | | * 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
* display error from camel_folder_expunge if there is one.Dan Winship2000-06-101-3/+0
| | | | | | | * mail-ops.c (expunge_folder): display error from camel_folder_expunge if there is one. svn path=/trunk/; revision=3500
* close and expunge the source folder after copying it to a local folder.Dan Winship2000-06-101-0/+3
| | | | | | | * mail-ops.c (fetch_mail): close and expunge the source folder after copying it to a local folder. svn path=/trunk/; revision=3493
* Update for folder creation/existence changes.Dan Winship2000-06-071-7/+4
| | | | | | | | | | | | * 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
* Leave the composer window around if the message doesn't get sent.Dan Winship2000-06-061-6/+9
| | | | | | | * mail-ops.c (composer_send_cb): Leave the composer window around if the message doesn't get sent. svn path=/trunk/; revision=3436
* fix some function prototypesDan Winship2000-06-061-4/+7
| | | | | | * mail.h, mail-ops.c: fix some function prototypes svn path=/trunk/; revision=3433
* Use camel_service_connect, not connect_with_url, since we already passedDan Winship2000-06-031-2/+1
| | | | | | | | * 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
* Add a quick hack to move the selection down a row when you delete aDan Winship2000-06-021-1/+10
| | | | | | | * 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
* started to add a camel provider configuration toolJeffrey Stedfast2000-05-311-4/+14
| | | | svn path=/trunk/; revision=3287
* don't put up an error message if the user cancels the password dialog.Dan Winship2000-05-291-1/+2
| | | | | | | * mail-ops.c (fetch_mail): don't put up an error message if the user cancels the password dialog. svn path=/trunk/; revision=3245
* vfolder gui! So you can define them,k they show up in the list (well,Not Zed2000-05-281-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* set CAMEL_MESSAGE_ANSWERED on a message after a successful reply.Dan Winship2000-05-271-8/+27
| | | | | | | | | | * 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
* connect to and disconnect from the transport.Dan Winship2000-05-251-3/+8
| | | | | | | * mail-ops.c (composer_send_cb): connect to and disconnect from the transport. svn path=/trunk/; revision=3197
* Update for camel_folder_get_uids (folder_changed,Dan Winship2000-05-191-8/+9
| | | | | | | | | | * 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
* Ok, so all incoming mail comes through filters, yay!NotZed2000-05-171-64/+90
| | | | | | | | | | | | | | | | | | 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
* New menu to bring up the filter editor, and edit filters. They dontNotZed2000-05-171-0/+38
| | | | | | | | | | | | | | | 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
* Use 6 X's to mkstemp, as required by the man page, just a temp fix, thisNotZed2000-05-131-1/+1
| | | | | | | | | | 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
* make this a little less kludgy. Use gnome_error_dialog rather than printfDan Winship2000-05-091-36/+16
| | | | | | | | | | | | | | | * 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
* Don't hardcode "inbox" here.Dan Winship2000-05-071-4/+6
| | | | | | | | | | | | | | | | | | | * 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
* New code to configure identity, mail source, and mail transport.Dan Winship2000-05-071-40/+114
| | | | | | | | | | | | | | | | | | | * 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
* consolidate mail-format.h, mail-identify.h, mail-ops.h, main.h andDan Winship2000-05-071-5/+1
| | | | | | | | * 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
* Ok, you can now delete and expunge messages ... not really prettyMichael Zucci2000-05-021-0/+42
| | | | | | | | | | | | | | (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
* This is no longer necessary.Dan Winship2000-04-301-13/+1
| | | | | | | | | * 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
* Oops. Remove the part of the previous patch that wasn't supposed toDan Winship2000-04-281-24/+8
| | | | | | escape into the real world. :) svn path=/trunk/; revision=2665
* Move text_to_html to e-util.Dan Winship2000-04-281-8/+36
| | | | | | | | | | | | | * 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
* rename "send" to "send_msg", to avoid name clash with the tcp function.Dan Winship2000-04-241-1/+18
| | | | | | | | | | | | | | * 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
* #include "mail-format.h"Dan Winship2000-04-231-0/+1
| | | | svn path=/trunk/; revision=2555
* move msg_composer_cb and msg_composer_send_cb to mail-ops. Attach send,Dan Winship2000-04-231-0/+61
| | | | | | | | | | | | | | | | | * 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
* Add some #includes for the non-HAVE_MKSTEMP caseDan Winship2000-04-101-0/+5
| | | | | | * mail-ops.c: Add some #includes for the non-HAVE_MKSTEMP case svn path=/trunk/; revision=2361
* use camel_movemail when fetching mail from an mbox store. This leavesDan Winship2000-04-101-14/+76
| | | | | | | | | | * 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
* new file, for toolbar/menu callbacks (fetch_mail): fetch mail. Doesn't doDan Winship2000-04-081-0/+185
* 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