aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
Commit message (Collapse)AuthorAgeFilesLines
* Copy the passed in item before adding (mail_config_add_source): dittoJP Rosevear2000-09-031-3/+9
| | | | | | | | | | | | | | | | | | | | 2000-09-03 JP Rosevear <jpr@helixcode.com> * mail-config.c (mail_config_add_news): Copy the passed in item before adding (mail_config_add_source): ditto (mail_config_add_identity): ditto * mail-config-gui.c (mail_config): We don't actually need a notebook pointer. (identities_edit_clicked): Don't explicitly destroy, we are using gtk_clist_set_data_full now (sources_edit_clicked): ditto (news_edit_clicked): ditto (mail_config): Use gtk_clist_set_row_data_full to kill leaks svn path=/trunk/; revision=5185
* Use a configurable timeout.Richard Hult2000-08-171-0/+25
| | | | | | | | | | | | | | | | | | | | | 2000-08-16 Richard Hult <rhult@hem.passagen.se> * mail-ops.c (cleanup_display_message): Use a configurable timeout. * mail-config.c (mail_config_set_mark_as_seen_timeout): New function for the settable mark-as-seen timeout. (mail_config_mark_as_seen_timeout): Likewise. (mail_config_write): Write the timeout setting. (config_read): Read timeout setting. * mail-config-gui.c (mail_config): Add option for the settable mark-as-seen timeout. (mail_config_apply_clicked): Likewise. (timeout_changed): New function for the timeout setting. svn path=/trunk/; revision=4859
* Set config->configured to TRUEJeffrey Stedfast2000-08-141-1/+2
| | | | | | | | | 2000-08-13 Jeffrey Stedfast <fejj@helixcode.com> * mail-config.c (mail_config_write): Set config->configured to TRUE svn path=/trunk/; revision=4825
* use config->news instead of config->sources.Chris Toshok2000-08-121-2/+2
| | | | | | | | | 2000-08-11 Chris Toshok <toshok@helixcode.com> * mail-config.c (mail_config_get_default_news): use config->news instead of config->sources. svn path=/trunk/; revision=4753
* Fix some ()'s instead of voidsPeter Williams2000-08-121-16/+16
| | | | svn path=/trunk/; revision=4741
* Check nrow, not srow.JP Rosevear2000-08-121-23/+95
| | | | | | | | 2000-08-11 JP Rosevear <jpr@helixcode.com> * mail-config-gui.c (news_edit_clicked): Check nrow, not srow. svn path=/trunk/; revision=4738
* Don't call e_setup_base_dir. It was wrong and it doesn't exist any more.Dan Winship2000-08-111-1/+1
| | | | | | | | | | | | | | | | | | | * session.c (session_init): Don't call e_setup_base_dir. It was wrong and it doesn't exist any more. * component-factory.c (owner_set_cb): Update for changed prototype, and record the evolution_homedir. Move call to mail_config_init here from session.c so it happens after evolution_dir is initialized. * mail.h: define "extern char *evolution_dir;" (formerly in e-util/e-setup.h) * component-factory.c, mail-callbacks.c, mail-config-gui.c, mail-config.c, mail-display.c, mail-format.c, mail-ops.c, mail-tools.c, session.c: Remove "e-util/e-setup.h" include. svn path=/trunk/; revision=4712
* Get the from address set in the composer, if that fails ONLY THEN get theJeffrey Stedfast2000-08-101-0/+8
| | | | | | | | | | | | 2000-08-09 Jeffrey Stedfast <fejj@helixcode.com> * mail-ops.c (composer_send_cb): Get the from address set in the composer, if that fails ONLY THEN get the default from mail config * mail-config.c (mail_config_get_identities): New convenience function for getting a list of the configured identities svn path=/trunk/; revision=4672
* Basic framework for saving the size of the vpaned in the main message viewJeremy Wise2000-08-091-2/+26
| | | | svn path=/trunk/; revision=4623
* Value for threaded list view is now saved via gnome-config. This means that ↵Jeremy Wise2000-08-091-0/+32
| | | | | | you can FINALLY shut off the threaded view once and for all :) svn path=/trunk/; revision=4621
* Add "Don't delete messages from server" button to remote SOURCEs thatDan Winship2000-08-091-0/+7
| | | | | | | | | | | | | | | * mail-config-gui.c: Add "Don't delete messages from server" button to remote SOURCEs that aren't STORAGEs (ie, POP). (provider_list): Only list SOURCEs. (ie, not mh) * mail-config.c: Save/load "keep_on_server" flag. * mail-ops.c (fetch_remote_mail): New function, split out of real_fetch_mail. Deals with copying mail from a remote server into a temporary mbox, possibly using a CamelUIDCache to leave the messages on the server. svn path=/trunk/; revision=4617
* Fix build by allowing includes for e-table dirJP Rosevear2000-08-081-2069/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-08-08 JP Rosevear <jpr@helixcode.com> * Makefile.am: Fix build by allowing includes for e-table dir 2000-08-08 JP Rosevear <jpr@helixcode.com> * mail-ops.c (check_configured): Use config accessors (fetch_mail): ditto (composer_send_cb): ditto (create_msg_composer): ditto * mail-config-gui.h: Update API * mail-config.h: Update API * mail-config.c: Add accessor functions (mail_config_is_configured): accessor function (mail_config_get_default_identity): ditto (mail_config_get_default_source): ditto (mail_config_get_transport): ditto (mail_config_send_html): ditto (identity_copy): Make public (identity_destroy): ditto (identity_destroy_each): ditto (service_copy): ditto (service_destroy): ditto (service_destroy_each): ditto (mail_config_init): Rename from init_config and make public (mail_config_clear): Rename from clear_config and make public (mail_config_read): Rename from read_config and make public (mail_config_write): Reanme from write_config and make public * main.c (main): Call mail_config_init. * mail.h: Include mail-config-gui.h * mail-config-gui.c: Move config gui stuff here. (source_dialog): Kill memory leak from debug leftovers. Make sure returned source is NULL by default svn path=/trunk/; revision=4592
* Desensitize ok button (sdialog_page_undone): ditto (iddialog_page_undone):JP Rosevear2000-08-071-52/+152
| | | | | | | | | | | | | | | | | | | | | | | | 2000-08-06 JP Rosevear <jpr@helixcode.com> * mail-config.c (ndialog_page_undone): Desensitize ok button (sdialog_page_undone): ditto (iddialog_page_undone): ditto (news_page_new): Typo - news, not mail (transport_page_new): Typo - transport, not source (identity_dialog): Set undone callback (source_dialog): ditto (news_dialog): ditto (mail_druid_identity_undone): Desensitize next button and mark done flag as false (mail_druid_source_undone): ditto (mail_druid_transport_undone): ditto (mail_druid_identity_done): Mark done flag as true (mail_druid_source_done): ditto (mail_druid_transport_done): ditto (mail_druid_prepare): Use done flag to set next button sensitivity, fixes #467 svn path=/trunk/; revision=4559
* Actually commit this - I though it went in already.JP Rosevear2000-08-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-08-03 JP Rosevear <jpr@helixcode.com> * configure.in: Remove gconf check 2000-08-03 JP Rosevear <jpr@helixcode.com> * mail-config.glade: Increase window size slightly, rename "Transport" to "Mail Transport" * mail-config.c (init_config): Remove gconf references (clear_config): ditto (read_config): ditto (write_config): ditto (mail_config): Null provider lists before filling them (mail_config_druid): ditto (identity_page_new): Increase spacing of vbox (service_page_new): ditto * Makefile.am: Remove gconf references. 2000-08-03 JP Rosevear <jpr@helixcode.com> * e-shell.h: Remove gconf references * e-shell-view.h: Remove gconf references * main.c (idle_cb): Remove gconf references * Makefile.am: Remove gconf cflags and libs * e-shell-view.c (e_shell_view_load_settings): Change to use gnome-config (e_shell_view_save_settings): ditto * e-shell.c (e_shell_restore_from_settings): Change to use gnome_config (save_settings_for_views): ditto svn path=/trunk/; revision=4530
* only whack the sig in if the file exists.Michael Meeks2000-08-041-1/+2
| | | | | | | | | | | | | | 2000-08-03 Michael Meeks <michael@helixcode.com> * mail-config.c (identity_page_new): only whack the sig in if the file exists. * component-factory.c (factory_fn): count running instances, attach destroy signal (factory_destroy): add. * main.c (main): pass orb around. svn path=/trunk/; revision=4523
* set config = NULL (provider_list) Eek! Initialize news to NULL! Also, useJeffrey Stedfast2000-08-041-29/+43
| | | | | | | | | | | | | | 2000-08-03 Jeffrey Stedfast <fejj@helixcode.com> * mail-config.c: set config = NULL (provider_list) Eek! Initialize news to NULL! Also, use g_slist_prepend() for "performance" gains ;-) (init_config): Set the config member data to NULL just to be on the safe side (clear_config): Don't bother freeing slist data if the slist is NULL svn path=/trunk/; revision=4517
* Increase window size slightly, rename "Transport" to "Mail Transport"JP Rosevear2000-08-031-112/+123
| | | | | | | | | | | | | | | | | | | | 2000-08-03 JP Rosevear <jpr@helixcode.com> * mail-config.glade: Increase window size slightly, rename "Transport" to "Mail Transport" * mail-config.c (init_config): Remove gconf references (clear_config): ditto (read_config): ditto (write_config): ditto (mail_config): Null provider lists before filling them (mail_config_druid): ditto (identity_page_new): Increase spacing of vbox (service_page_new): ditto * Makefile.am: Remove gconf references. svn path=/trunk/; revision=4504
* Make the "test settings" button FILL rather than SHRINK so it doesn't endDan Winship2000-08-031-1/+1
| | | | | | | | | | * mail-config.c (service_page_item_new): Make the "test settings" button FILL rather than SHRINK so it doesn't end up oddly-placed. * mail-config-druid.glade: Make the icon background dark blue like the surrounding area. svn path=/trunk/; revision=4491
* typo fixPeter Williams2000-08-011-1/+1
| | | | svn path=/trunk/; revision=4430
* Fix a NULL-pointer strcmp noticed by peterw.Dan Winship2000-08-011-1/+2
| | | | | | | * mail-config.c (service_page_set_url): Fix a NULL-pointer strcmp noticed by peterw. svn path=/trunk/; revision=4429
* New function to create composer with sig file set.JP Rosevear2000-07-291-1673/+1691
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-07-28 JP Rosevear <jpr@arcavia.com> * e-msg-composer.c (e_msg_composer_new_with_sig_file): New function to create composer with sig file set. (e_msg_composer_get_sig_file): New function to get sig file (e_msg_composer_set_sig_file): New function to set sig file 2000-07-29 JP Rosevear <jpr@arcavia.com> * mail-format.c (mail_generate_reply): Use new mail config stuff * component-factory.c (create_imap_storage): Use new mail config stuff (create_news_storage): ditto * evolution-mail.schemas: Gconf schema for evolution mail * mail-config-druid.glade: Gladification of config druid * mail-config.h: New header with config structs. * mail-config.c: Rewrite of GUI configuration tools to use new config structs. Stores multiple identities and sources now. Still only uses the first one found. (mail_config_fetch): Returns MailConfig struct to caller for configuration queries. (mail_config): Renamed function to show mail config dialog. (mail_config_druid): Renamed function to show mail config druid. * mail-ops.c (create_msg_composer): Use e_msg_composer_new_with_sig_file and new config stuff (check_configured): Use new config stuff (fetch_mail): ditto (composer_send_cb): ditto svn path=/trunk/; revision=4413
* Lets fix Dan's kludge the Right Way (tm) (set_service_url): Only strip offJeffrey Stedfast2000-07-281-6/+7
| | | | | | | | | | | | 2000-07-27 Jeffrey Stedfast <fejj@helixcode.com> * mail-config.c: Lets fix Dan's kludge the Right Way (tm) (set_service_url): Only strip off the leading "/" from the url->path if url->host is NULL (get_service_url): Only prepend a leading "/" to the path if the host is NULL svn path=/trunk/; revision=4402
* toss in a kludge to deal with the IMAP vs mbox path problem for now.Dan Winship2000-07-281-1/+4
| | | | | | | * mail-config.c (get_service_url): toss in a kludge to deal with the IMAP vs mbox path problem for now. svn path=/trunk/; revision=4399
* Always prepend a leading "/" to the url->path. (set_service_url): AddedJeffrey Stedfast2000-07-261-11/+12
| | | | | | | | | | | | | 2000-07-25 Jeffrey Stedfast <fejj@helixcode.com> * mail-config.c (get_service_url): Always prepend a leading "/" to the url->path. (set_service_url): Added more error checking and also strip the leading '/' from the url->path (create_identity_page): Set the signature file to the one specified in the identity record, else set the default path to ~/.sugnature svn path=/trunk/; revision=4333
* Always prepend a leading "/" to the url->path. (set_service_url): AddedJeffrey Stedfast2000-07-261-6/+9
| | | | | | | | | | | 2000-07-25 Jeffrey Stedfast <fejj@helixcode.com> * mail-config.c (get_service_url): Always prepend a leading "/" to the url->path. (set_service_url): Added more error checking and also strip the leading '/' from the url->path svn path=/trunk/; revision=4332
* add textual exception printout. (set_editor_text): close pre tags & checkMichael Meeks2000-07-261-1/+9
| | | | | | | | | | | | | | | | | | | | 2000-07-25 Michael Meeks <michael@helixcode.com> * e-msg-composer.c (get_text): add textual exception printout. (set_editor_text): close pre tags & check for pre-existing sig separator. 2000-07-25 Michael Meeks <michael@helixcode.com> * mail-config.c (create_identity_page): set default signature to ~/.signature 2000-07-25 Michael Meeks <michael@helixcode.com> * backend/ebook/load-pine-addressbook.c (book_open_cb): check we opened ok. svn path=/trunk/; revision=4330
* Fix GtkOptionMenu usage so that the mail source selector looks right.Ettore Perazzoli2000-07-251-1/+5
| | | | svn path=/trunk/; revision=4314
* s/CAMEL_SERVICE_NEED_HOST/CAMEL_SERVICE_URL_NEED_HOST.Jonathan Blandford2000-07-141-1/+1
| | | | | | | | | | 2000-07-13 Jonathan Blandford <jrb@redhat.com> * mail-config.c (create_transport): s/CAMEL_SERVICE_NEED_HOST/CAMEL_SERVICE_URL_NEED_HOST. Fix obvious typo in code. svn path=/trunk/; revision=4149
* Add a "gboolean required" argument, and set its value on the entry.Dan Winship2000-07-141-16/+36
| | | | | | | | | | | | | | * mail-config.c (add_row): Add a "gboolean required" argument, and set its value on the entry. (create_source, create_transport): Create rows for URL elements if the URL ALLOWs them. Mark them required if it NEEDs them. (service_note_doneness): Only require the required fields to be filled in. Now the IMAP config page allows the user to enter a path, but doesn't require it. svn path=/trunk/; revision=4148
* fix some cut & paste bung.Chris Toshok2000-07-131-6/+6
| | | | | | | | 2000-07-12 Chris Toshok <toshok@helixcode.com> * mail-config.c (providers_config_new): fix some cut & paste bung. svn path=/trunk/; revision=4126
* add news server tab to dialog.Chris Toshok2000-07-131-11/+315
| | | | | | | | | | | | | | | | | | | 2000-07-12 Chris Toshok <toshok@helixcode.com> * mail-config.glade*: add news server tab to dialog. * mail-config.c (on_NewsServerConfigDialogButton_clicked): new function. (on_clistNewsServers_select_row): new function. (on_cmdNewsServersAdd_clicked): new function. (on_cmdNewsServersEdit_clicked): new function. (on_cmdNewsServersDelete_clicked): new function. (providers_config_new): mirror the source tab's code to fill in the news server tab. (write_config): save out the news server. (create_news_server_config_dialog): new function. (create_news_server_page): new function. svn path=/trunk/; revision=4115
* Glade files for the configuration dialog.JP Rosevear2000-07-071-245/+36
| | | | | | | | | | | 2000-07-06 JP Rosevear <jpr@arcavia.com> * mail-config.glade*: Glade files for the configuration dialog. * mail-config.c (providers_config_new): Build the dialog with glade. svn path=/trunk/; revision=3933
* Fixes brought to us by PurifyMatthew Loper2000-06-291-1/+1
| | | | svn path=/trunk/; revision=3792
* commenting out of some GDK_THREADS_*() junk that was causing a lockJeffrey Stedfast2000-06-271-1/+1
| | | | | | also fixed an assignment problem (var = void) in mail-config.c svn path=/trunk/; revision=3738
* Make this not crash if you don't have a transport configured.Dan Winship2000-06-221-1/+1
| | | | | | | * mail-config.c (create_transport_page): Make this not crash if you don't have a transport configured. svn path=/trunk/; revision=3686
* Should now correctly display the Transport page (made it set theJeffrey Stedfast2000-06-191-13/+25
| | | | | | | | | | | | | | 2000-06-19 Jeffrey Stedfast <fejj@helixcode.com> * mail-config.c (providers_config_new): Should now correctly display the Transport page (made it set the optionmenu correctly, before it would only set SMTP). (create_transport_page): Updated to set the page info to sendmail/smtp based on the url. (create_service_page): Had to add some code to set data on some objects so I could grab the objects I needed to modify in the above function. svn path=/trunk/; revision=3629
* fixed it so that source always pointed to a valueJeffrey Stedfast2000-06-141-0/+1
| | | | svn path=/trunk/; revision=3554
* Got rid of sources_max_row and identities_max_row as they are not reallyJeffrey Stedfast2000-06-131-19/+13
| | | | | | | | | | | | | 2000-06-12 Jeffrey Stedfast <fejj@helixcode.com> * mail-config.c: Got rid of sources_max_row and identities_max_row as they are not really needed (just use clist->rows) (on_cmdSourcesEdit_clicked): Modified to make 'source' point to the data being edited. (on_cmdSourcesAdd_clicked): Adds a new clist item and selects it so the editor knows where to stick the data when it's done. svn path=/trunk/; revision=3545
* added new notebook page to the prividers config dialog for slecting ↵Jeffrey Stedfast2000-06-031-0/+65
| | | | | | text/plain or multipart/alternative svn path=/trunk/; revision=3403
* spelling changes in commenst!Jeffrey Stedfast2000-06-021-1/+1
| | | | | | er, comments...I did it again!!! svn path=/trunk/; revision=3374
* source editor now fills in fieldsJeffrey Stedfast2000-06-021-0/+12
| | | | svn path=/trunk/; revision=3372
* was using the wrong clist row variable in the callbacks for the sources clistJeffrey Stedfast2000-06-021-2/+2
| | | | svn path=/trunk/; revision=3371
* identity and source clists are now filled in as well as the transport ↵Jeffrey Stedfast2000-06-021-10/+85
| | | | | | notebook page in the providers_config dialog when created svn path=/trunk/; revision=3346
* fixed a segfault in service_acceptable()Jeffrey Stedfast2000-06-021-7/+10
| | | | | | in mail-config.c svn path=/trunk/; revision=3341
* Finished the configuration dialogs and renamed some Tools/ menu itemsJeffrey Stedfast2000-06-021-5/+6
| | | | | | this should also fix the bug where the VFolders menu item isn't removed when using the Calendar/etc svn path=/trunk/; revision=3336
* Closer to having a working configuration dialog working, source ↵Jeffrey Stedfast2000-06-011-11/+181
| | | | | | configuration partially works (in that it displays the dialogs) but the popup still segfaults fairly nastily svn path=/trunk/; revision=3322
* config dialog will now allow identities to be added, edited and deletedJeffrey Stedfast2000-06-011-47/+274
| | | | | | | settings are now saved when the config dialog is exited via the OK button (only 1 identity is saved due to the fact that that is all the config file will allow) svn path=/trunk/; revision=3316
* Implemented the Transport section of the configuration dialog windowJeffrey Stedfast2000-05-311-44/+130
| | | | | | and fixed several memory leaks inside of mail-config.c svn path=/trunk/; revision=3299
* started to add a camel provider configuration toolJeffrey Stedfast2000-05-311-2/+397
| | | | svn path=/trunk/; revision=3287
* helper function since we need to set "modal" on the dialogs returned byDan Winship2000-05-291-14/+84
| | | | | | | | | | | | | | | * mail-config.c (error_dialog): helper function since we need to set "modal" on the dialogs returned by gnome_error_dialog to make them work when popped up from the modal Druid. (service_acceptable): New function to check if the info entered on a store/transport page actually checks out. (mail_config_druid): Connect to the "next" signal on the store and transport pages and don't let the user continue if the data is bad and "check this before continuing" is checked. Also, only display sources/transports in the "mail" domain. (Ie, not "vfolder".) svn path=/trunk/; revision=3255
* Updated for the GtkHTML API changes. Also fixed some compilerEttore Perazzoli2000-05-211-2/+2
| | | | | | warnings here and there. svn path=/trunk/; revision=3145
* only set the default background color if style is not NULL.Larry Ewing2000-05-111-3/+5
| | | | | | | | | 2000-05-10 Larry Ewing <lewing@helixcode.com> * mail-config.c (html_new): only set the default background color if style is not NULL. svn path=/trunk/; revision=2980
* Fill in "blah blah blah".Matthew Loper2000-05-091-6/+13
| | | | | | * mail-config.c (mail_config_druid): Fill in "blah blah blah". svn path=/trunk/; revision=2945
* make this a little less kludgy. Use gnome_error_dialog rather than printfDan Winship2000-05-091-0/+2
| | | | | | | | | | | | | | | * 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-6/+3
| | | | | | | | | | | | | | | | | | | * 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-0/+1010
* 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