aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
Commit message (Collapse)AuthorAgeFilesLines
* Check nrow, not srow.JP Rosevear2000-08-121-13/+7
| | | | | | | | 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-6/+4
| | | | | | | | | | | | | | | | | | | * 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
* Merge with camel-async.Peter Williams2000-08-111-164/+13
| | | | svn path=/trunk/; revision=4687
* New function to replace real_create_imap_storage andJeffrey Stedfast2000-08-081-102/+27
| | | | | | | | | | | 2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> * component-factory.c (real_create_generic_storage): New function to replace real_create_imap_storage and real_create_news_storage (create_imap_storage): Updated. (create_news_storage): Updated. svn path=/trunk/; revision=4584
* s/strncasecmp/g_strncasecmpJeffrey Stedfast2000-08-081-2/+2
| | | | | | | | | | | | | | | | | | 2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> * mail-display.c: * component-factory.c: s/strncasecmp/g_strncasecmp * mail-format.c (write_headers): Get rid of kludge around subject beginning with spaces. (mail_generate_reply): Get rid of kludge around subject beginning with spaces and also use g_strncasecmp instead of strncasecmp for portability * mail-ops.c (forward_msg): Get rid of kludges around subject beginning with spaces. svn path=/trunk/; revision=4575
* Create a global reference to the Drafts mbox folder for the Composer toJeffrey Stedfast2000-08-071-3/+21
| | | | | | | | | 2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> * component-factory.c (owner_set_cb): Create a global reference to the Drafts mbox folder for the Composer to use svn path=/trunk/; revision=4561
* only whack the sig in if the file exists.Michael Meeks2000-08-041-1/+21
| | | | | | | | | | | | | | 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
* Fixed some warnings.Christopher James Lahey2000-08-011-1/+1
| | | | | | | | | | 2000-07-31 Christopher James Lahey <clahey@helixcode.com> * component-factory.c, folder-browser.c: Fixed some warnings. * message-list.c: Made the icon column non sortable. svn path=/trunk/; revision=4440
* Remove hack to pass the storage around.Not Zed2000-07-301-72/+5
| | | | | | | | | | | | | | | | | | | | | | 2000-07-29 Not Zed <NotZed@HelixCode.com> * component-factory.c (create_view): Remove hack to pass the storage around. * folder-browser-factory.c (control_activate): Changed to call renamed vfolder editor. * mail-ops.c (vfolder_edit_vfolders): renamed from vfolder_edit, call new edit function. (vfolder_editor_clicked): Removed. (filter_druid_clicked): (filter_edit): Updated for api change. (real_fetch_mail): Fixed up for api change and fucked up indent. (filter_get_folder): callback for filter driver. * mail-vfolder.c: New file to manage virtual folders. svn path=/trunk/; revision=4417
* New function to create composer with sig file set.JP Rosevear2000-07-291-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update for CamelFolder API changes. (Certain functions no longer take aDan Winship2000-07-251-2/+2
| | | | | | | | | | | | | | * message-list.c (mark_msg_seen, ml_tree_set_value_at, message_list_regenerate): Update for CamelFolder API changes. (Certain functions no longer take a CamelException.) * mail-ops.c (real_fetch_mail, real_send_mail, real_delete_msg): ditto * component-factory.c (real_create_imap_storage, real_create_news_storage): ditto svn path=/trunk/; revision=4305
* Remove GOAD support.Dan Winship2000-07-251-4/+0
| | | | | | | | | | | * component-factory.c, folder-browser-factory.c, test-mail.c: Remove GOAD support. * main.c: Remove GOAD support. (main): More "guess the build mistake" fun, this time for the failure to initialize Bonobo case. svn path=/trunk/; revision=4301
* Update the components to match the changes in the libeshell API.Ettore Perazzoli2000-07-211-0/+1
| | | | svn path=/trunk/; revision=4242
* Initial code to support IMAP folders that don't use "/" as a directoryJeffrey Stedfast2000-07-171-19/+32
| | | | | | | | | 2000-07-16 Jeffrey Stedfast <fejj@helixcode.com> * folder-browser.c, component-factory.c: Initial code to support IMAP folders that don't use "/" as a directory separator. svn path=/trunk/; revision=4185
* kill more debugging messagesDan Winship2000-07-111-3/+0
| | | | | | * kill more debugging messages svn path=/trunk/; revision=4050
* Fix syncing of the mailbox on exit so that it's done on destruction ofEttore Perazzoli2000-07-111-15/+0
| | | | | | | | | the corresponding FolderBrowser instead of using the "owner_unset" signel (the latter was broken, because the FolderBrowser is destroyed before "owner_unset" is emitted, so we have no chance to sync at that point). svn path=/trunk/; revision=4038
* Get rid of a compiler warning.Ettore Perazzoli2000-07-041-1/+5
| | | | svn path=/trunk/; revision=3881
* Fix filter_driver_new invocation.Dan Winship2000-07-031-1/+1
| | | | | | | * component-factory.c (create_vfolder_storage): Fix filter_driver_new invocation. svn path=/trunk/; revision=3862
* Pass mail_uri_to_folder and rules to filter_driver_new.Dan Winship2000-07-031-2/+1
| | | | | | | | | * mail-ops.c (real_fetch_mail): (vfolder_editor_clicked): * component-factory.c (create_vfolder_storage): Pass mail_uri_to_folder and rules to filter_driver_new. svn path=/trunk/; revision=3860
* Fix to work with new EvolutionShellClientPeter Williams2000-07-011-6/+10
| | | | svn path=/trunk/; revision=3830
* Fix stupid typos and add a missing prototype.Ettore Perazzoli2000-06-301-2/+2
| | | | svn path=/trunk/; revision=3823
* EvolutionShellClient.Ettore Perazzoli2000-06-301-5/+9
| | | | svn path=/trunk/; revision=3820
* remove some code incorrectly copied and pasted from create_vfolder_storageDan Winship2000-06-301-6/+0
| | | | | | | | | * component-factory.c (create_imap_storage, create_news_storage): remove some code incorrectly copied and pasted from create_vfolder_storage which caused vfolder creation to stop working. svn path=/trunk/; revision=3804
* Refuse to create folders not of type "mail", and correctly create an emptyDan Winship2000-06-291-4/+26
| | | | | | | | * component-factory.c (create_folder): Refuse to create folders not of type "mail", and correctly create an empty "mbox" folder for new folders in /local. svn path=/trunk/; revision=3781
* Put in a gross hack to export the shell reference elsewhere.Michael Zucchi2000-06-271-0/+5
| | | | | | | | | 2000-06-27 Michael Zucchi <zucchi@zedzone.mmc.com.au> * component-factory.c (owner_set_cb): Put in a gross hack to export the shell reference elsewhere. svn path=/trunk/; revision=3748
* Make the broken threads optionalPeter Williams2000-06-271-4/+28
| | | | svn path=/trunk/; revision=3740
* Land most of the stuff to move fetch_mail, send_mail, expunge_folder, ↵Peter Williams2000-06-241-15/+83
| | | | | | init_imap, and init_news to async operation. svn path=/trunk/; revision=3711
* Little prototype fixesPeter Williams2000-06-231-5/+2
| | | | svn path=/trunk/; revision=3708
* add handling for loading "news:" folders.Chris Toshok2000-06-231-0/+80
| | | | | | | | | | | | | 2000-06-22 Chris Toshok <toshok@helixcode.com> * folder-browser.c (folder_browser_load_folder): add handling for loading "news:" folders. * component-factory.c (create_news_storage): add a root for news source. (owner_set_cb): call create_news_storage. svn path=/trunk/; revision=3703
* Updated to prepend url-> path if it exists for that imap store.Jeffrey Stedfast2000-06-231-1/+1
| | | | | | | | | | | | 2000-06-22 Jeffrey Stedfast <fejj@helixcode.com> * folder-browser.c (folder_browser_load_folder): Updated to prepend url-> path if it exists for that imap store. * component-factory.c (create_imap_storage): Modified to not prepend a hard-coded namespace. svn path=/trunk/; revision=3701
* oops, should have checked for a NULL sources in component-factory.cJeffrey Stedfast2000-06-211-1/+1
| | | | | | (create_imap_storage) svn path=/trunk/; revision=3657
* Only fetch the summary if the folder summary doesn't already exist. WhenJeffrey Stedfast2000-06-211-1/+6
| | | | | | | | | | | | | | | | | | | | | 2000-06-20 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-folder.c (imap_get_summary): Only fetch the summary if the folder summary doesn't already exist. When the summary *does* exist, start fetching from 1, not 0. (imap_free_summary): Don't do anything here. (imap_finalize): Free the summary here instead of in imap_free_summary(). * camel-url.c (check_equal): No need to check s1 if s2 is NULL (camel_url_equal): Don't check the passwd component of the url. and in mail/component-factory.c (create_imap_storage): removal of debug statements mail/folder-browser.c (folder_browser_load_folder): improved imap service parser svn path=/trunk/; revision=3649
* working on getting IMAP folder selection workingJeffrey Stedfast2000-06-211-8/+9
| | | | svn path=/trunk/; revision=3648
* basically got IMAP into the tree viewJeffrey Stedfast2000-06-201-12/+71
| | | | svn path=/trunk/; revision=3643
* started to add code to load an IMAP folder.Jeffrey Stedfast2000-06-191-17/+37
| | | | | | | | | | | | | | | | 2000-06-18 Jeffrey Stedfast <fejj@helixcode.com> * folder-browser.c (folder_browser_load_folder): started to add code to load an IMAP folder. * component-factory.c: Started to add a create_imap_storage method so that we can eventually have our IMAP store displayed in the tree view. (create_vfolder_storage): Renamed from create_test_storage(). (owner_set_cb): Updated. svn path=/trunk/; revision=3627
* Update for CamelFolder changes.Dan Winship2000-06-161-4/+3
| | | | | | | | | * 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
* Return the result of folder_browser_load_folder. (get_prop, set_prop,Dan Winship2000-06-131-4/+3
| | | | | | | | | | | | | | | | | | | | | * folder-browser.c (folder_browser_set_uri): Return the result of folder_browser_load_folder. (get_prop, set_prop, folder_browser_properties_init): Remove. No longer needed. * folder-browser-factory.c (folder_browser_factory_new_control): Add a "uri" argument, return NULL if setting it fails. (folder_browser_factory_new_control): Remove property bag stuff. (folder_browser_factory_init, folder_browser_factory): Remove this, since we're using the component factory now. * component-factory.c (create_view): Update for folder_browser_factory_new_control change and return NOTFOUND as appropriate. * main.c (main): Don't call folder_browser_factory_init. svn path=/trunk/; revision=3532
* Implemented folder creation dialog (File -> New -> Folder). To makeEttore Perazzoli2000-06-111-1/+25
| | | | | | | | it really work though, the components should implement creation functionality by passing an appropriate function pointer in `e_shell_component_new()' for @create_folder_fn. svn path=/trunk/; revision=3504
* Initial support for creating/removing folders. This implies some newEttore Perazzoli2000-06-101-3/+10
| | | | | | | | IDL methods and new functions to implement on the component side. I have also added a simple folder creation dialog in the shell. It's quite unfinished and untested. svn path=/trunk/; revision=3491
* keep a GList of folder browsers created (owner_unset_cb): Go through theDan Winship2000-06-031-0/+17
| | | | | | | | | * component-factory.c (create_view): keep a GList of folder browsers created (owner_unset_cb): Go through the list and close each folder before exiting so they sync their summary state, etc to disk. svn path=/trunk/; revision=3393
* Quit when the shell exits. This is a kludge, but a pretty necessary oneDan Winship2000-06-011-1/+10
| | | | | | | | * component-factory.c (owner_unset_cb): Quit when the shell exits. This is a kludge, but a pretty necessary one until the refcounting bugs that keep the component from exiting properly are fixed. svn path=/trunk/; revision=3323
* Hardcode the vfolder source to just the inbox (so at least it returnsNot Zed2000-05-301-3/+4
| | | | | | | | | | | | | | | 2000-05-29 Not Zed <NotZed@HelixCode.com> * folder-browser.c (folder_browser_load_folder): Hardcode the vfolder source to just the inbox (so at least it returns something). * component-factory.c (create_test_storage): Create a vfolder dir first, and put the folders in that. (create_test_storage): Create the storage as VFolders, not "storage_name" :) svn path=/trunk/; revision=3269
* vfolder gui! So you can define them,k they show up in the list (well,Not Zed2000-05-281-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Reorganized the shell to allow dynamic registration of storages andEttore Perazzoli2000-05-251-0/+112
folder types, and changed all the components to work with the new setup. svn path=/trunk/; revision=3199