aboutsummaryrefslogtreecommitdiffstats
path: root/mail/importers/pine-importer.c
Commit message (Collapse)AuthorAgeFilesLines
* ** Disable debug macros (#define d(x) x) throughout. (#569638)Matthew Barnes2009-02-011-1/+1
| | | | | | | | | 2009-01-31 Matthew Barnes <mbarnes@redhat.com> ** Disable debug macros (#define d(x) x) throughout. (#569638) svn path=/trunk/; revision=37202
* License changes from GPL to LGPLSankarasivasubramanian Pasupathilingam2008-09-161-18/+16
| | | | svn path=/trunk/; revision=36344
* fixed copyright noticesJeffrey Stedfast2008-06-211-2/+2
| | | | svn path=/trunk/; revision=35661
* ** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES andMatthew Barnes2008-06-061-3/+1
| | | | | | | | | | 2008-06-06 Matthew Barnes <mbarnes@redhat.com> ** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES and GTK_DISABLE_SINGLE_INCLUDES defined. (#536637) svn path=/trunk/; revision=35606
* ** Fixes bug #362638Matthew Barnes2007-12-211-21/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #362638 * calendar/gui/alarm-notify/alarm-notify.c: * calendar/gui/alarm-notify/alarm-notify.h: * calendar/gui/alarm-notify/alarm-queue.c: Rewrite message passing to use GThreadPool instead of EThread. * mail/mail-mt.h: Overhaul the message passing API: - Define a MailMsg type as the base message struct. - Define types for the various callback functions. - Add a priority value to each message (not yet used). - Add a reference count to each message. - Define a MailMsgInfo type for the virtual function table. - Record the size of message sub-types in MailMsgInfo. - New/changed functions: mail_msg_new() - Easier to use. mail_msg_ref() - Increase reference count. mail_msg_unref() - Decrease reference count. mail_msg_main_loop_push() } mail_msg_unordered_push() } Submit MailMsgs to various mail_msg_fast_ordered_push() } message-processing threads. mail_msg_slow_ordered_push() } * mail/mail-mt.c (mail_msg_new): Use GSlice for memory allocation. * mail/mail-mt.c (mail_msg_ref), (mail_msg_unref): New functions increment/decrement a MailMsg's reference count. * mail/mail-mt.c (mail_cancel_hood_add), (mail_cancel_hook_remove): Convert the 'cancel_hook_list' from an EDList to a GHookList and modify the API accordingly. * mail/mail-mt.c: Use GThreadPools instead of EThreads. Use GAsyncQueues instead of EMsgPorts. * mail/em-composer-utils.c: * mail/em-folder-browser.c: * mail/em-folder-properties.c: * mail/em-folder-tree.c: * mail/em-folder-utils.c: * mail/em-folder-view.c: * mail/em-format-html-print.c: * mail/em-format-html.c: * mail/em-subscribe-editor.c: * mail/em-sync-stream.c: * mail/importers/elm-importer.c: * mail/importers/mail-importer.c: * mail/importers/pine-importer.c: * mail/mail-component.c: * mail/mail-folder-cache.c: * mail/mail-mt.c: * mail/mail-ops.c: * mail/mail-ops.h: * mail/mail-send-recv.c: * mail/mail-session.c: * mail/mail-vfolder.c: * mail/message-list.c: * plugins/folder-unsubscribe/folder-unsubscribe.c: * plugins/groupwise-features/share-folder-common.c: * plugins/exchange-operations/exchange-folder.c: * plugins/mark-all-read/mark-all-read.c: * plugins/mailing-list-actions/mailing-list-actions.c: * plugins/itip-formatter/itip-formatter.c: * plugins/save-attachments/save-attachments.c: Use the new MailMsg API for messages. svn path=/trunk/; revision=34730
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-8/+8
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* Warning fixes: - NULL vs. 0 vs FALSE - ANSIfication of functionKjartan Maraas2007-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-26 Kjartan Maraas <kmaraas@gnome.org> * e-searching-tokenizer.c: (build_trie), (searcher_new), (output_token), (output_match), (merge_subpending), (searcher_next_token): * em-account-editor.c: (em_account_editor_new), (emae_load_text), (emae_check_license), (emae_auto_detect), (smime_sign_key_select), (smime_encrypt_key_select), (emae_service_url_path_changed), (emae_ssl_changed), (emae_service_provider_changed), (emae_refresh_providers), (emae_refresh_authtype), (emae_setup_service), (emae_identity_page): * em-composer-utils.c: (em_utils_send_receipt), (generate_account_hash), (em_utils_camel_address_to_destination), (reply_get_composer): * em-config.c: (em_config_new): * em-event.c: (em_event_peek): * em-filter-rule.c: (get_widget): * em-folder-browser.c: (generate_viewoption_menu), (em_folder_browser_show_preview), (get_view_query), (vfolder_setup_do), (emfb_search_search_activated), (emfb_list_key_press), (emfb_list_built): * em-folder-view.c: (em_folder_view_new), (emfv_setup_view_instance), (emfv_popup_forward), (emp_uri_popup_vfolder_sender), (emp_uri_popup_vfolder_recipient), (emfv_enable_menus): * em-format-hook.c: * em-format-html-display.c: (efhd_attachment_optional): * em-format-html.c: (em_format_html_new), (em_format_html_add_pobject), (em_format_html_find_pobject), (em_format_html_find_pobject_func), (efh_text_enriched), (efh_multipart_related), (efh_format_address), (efh_format_header): * em-icon-stream.h: * em-inline-filter.c: (emif_add_part), (emif_scan): * em-junk-hook.c: (emjh_construct_group): * em-mailer-prefs.c: (junk_plugin_setup): * em-menu.c: (em_menu_new), (em_menu_target_new_select): * em-message-browser.c: (em_message_browser_new): * em-popup.c: (em_popup_new), (em_popup_target_new_select): * em-sync-stream.c: * em-utils.c: (em_utils_save_part_to_file), (tag_editor_response), (em_utils_read_messages_from_stream), (em_utils_get_proxy_uri), (em_utils_in_addressbook): * em-vfolder-rule.c: (validate): * importers/elm-importer.c: * importers/mail-importer.c: (import_mbox_import), (import_folders_rec): * importers/pine-importer.c: * mail-component.c: (setline_done): * mail-folder-cache.c: (flush_updates): * mail-mt.c: (mail_msg_new), (checkmem), (mail_msg_check_error), (mail_msg_cancel), (mail_msg_wait), (mail_msg_init), (do_op_status): * mail-send-recv.c: (receive_status), (receive_done), (refresh_folders_get): * mail-vfolder.c: (mail_vfolder_get_sources_local), (mail_vfolder_get_sources_remote), (context_rule_added), (store_folder_renamed): * message-list.c: (e_mail_address_new), (e_mail_address_compare), (get_normalised_string), (ml_search_forward), (ml_search_backward), (ml_search_path), (message_list_select_uid), (thread_select_foreach), (message_list_copy), (ml_duplicate_value), (ml_free_value), (ml_initialize_value), (ml_value_is_empty), (ml_value_to_string), (subtree_latest), (sanitize_recipients), (ml_tree_value_at), (ml_tree_sort_value_at), (message_list_init_images), (filter_date), (build_tree), (build_flat_diff), (regen_list_regen): Warning fixes: - NULL vs. 0 vs FALSE - ANSIfication of function declarations - Remove unused bits - use unsigned ints for 1-bit bitfields - invalid pointer type - mark a global var static - mixing code and declarations svn path=/trunk/; revision=34449
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-1/+1
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* fix a bunch of Address Book stringsKarsten Bräckelmann2006-02-061-1/+1
| | | | svn path=/trunk/; revision=31413
* importers/elm-importer.c importers/evolution-mbox-importer.cTor Lillqvist2005-12-181-3/+2
| | | | | | | | | | | | | | 2005-12-17 Tor Lillqvist <tml@novell.com> * importers/elm-importer.c * importers/evolution-mbox-importer.c * importers/evolution-outlook-importer.c * importers/mail-importer.c * importers/netscape-importer.c * importers/pine-importer.c: Use GLib API when applicable. svn path=/trunk/; revision=30843
* Merge back eplugin-import-branch.Michael Zucci2005-07-121-227/+150
| | | | svn path=/trunk/; revision=29725
* addressbook/gui/component/addressbook-migrate.cHans Petter Jansson2004-12-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-12-08 Hans Petter Jansson <hpj@novell.com> * addressbook/gui/component/addressbook-migrate.c * addressbook/gui/component/select-names/e-select-names-completion.c * addressbook/gui/component/select-names/e-select-names-manager.c * addressbook/gui/component/select-names/e-select-names-model.h * addressbook/gui/contact-list-editor/e-contact-list-editor.h * addressbook/gui/contact-list-editor/e-contact-list-model.h * addressbook/gui/widgets/e-minicard.c * addressbook/gui/widgets/eab-gui-util.c * addressbook/importers/evolution-ldif-importer.c * addressbook/importers/evolution-vcard-importer.c: Include <libebook/e-destination.h> from evolution-data-server. * addressbook/util/Makefile.am: Remove e-destination.[ch] from here. * addressbook/util/e-destination.[ch]: Removed. * plugins/shared-folder/share-folder-common.c: Include <libebook/e-destination.h> from evolution-data-server. * calendar/gui/e-meeting-list-view.c * calendar/gui/e-select-names-editable.c * calendar/gui/dialogs/alarm-dialog.c * calendar/gui/dialogs/e-delegate-dialog.c: Include <libebook/e-destination.h> from evolution-data-server. * composer/e-msg-composer-hdrs.h: Include <libebook/e-destination.h> from evolution-data-server. * mail/importers/pine-importer.c: Include <libebook/e-destination.h> from evolution-data-server. svn path=/trunk/; revision=28094
* use the new e_book_new_* and e_book_open apis.Chris Toshok2004-05-201-3/+3
| | | | | | | | | | | | 2004-05-19 Chris Toshok <toshok@ximian.com> * importers/pine-importer.c (import_contacts): use the new e_book_new_* and e_book_open apis. * em-utils.c (em_utils_in_addressbook): use the new e_book_new_* and e_book_open apis. svn path=/trunk/; revision=26001
* use e_destination_export_to_vcard_attribute instead of exporting to xml,Chris Toshok2004-04-101-11/+12
| | | | | | | | | | | | | | | | | | | 2004-04-09 Chris Toshok <toshok@ximian.com> * importers/pine-importer.c (import_contact): use e_destination_export_to_vcard_attribute instead of exporting to xml, and use e_contact_set_attributes. * em-utils.c (em_utils_camel_address_to_destination): EABDestination -> EDestination. (reply_get_composer): same (post_reply_to_message): same. * em-composer-utils.c (ask_confirm_for_unwanted_html_mail): EABDestination -> EDestination. (composer_get_message): same. svn path=/trunk/; revision=25392
* fix for the weird-arsed e-contact list api. and fix a small memleak.Not Zed2004-02-171-2/+16
| | | | | | | | | 2004-02-17 Not Zed <NotZed@Ximian.com> * importers/pine-importer.c (import_contact): fix for the weird-arsed e-contact list api. and fix a small memleak. svn path=/trunk/; revision=24753
* use mail-importer to import the mail tree, fix the account stuff to talkNot Zed2004-02-131-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-13 Not Zed <NotZed@Ximian.com> * importers/netscape-importer.c: use mail-importer to import the mail tree, fix the account stuff to talk directly to mail config. Added cancel button. etc. This is completely untested apart from compiling with no warnings. * importers/mail-importer.c (import_mbox_import): dont re-use the exception for syncing. * importers/evolution-outlook-importer.c: major reworking. Some platform fixes, runs in another thread, simpler/cleaner main loop. This is completely untested apart from compiling with no warnings. * importers/evolution-mbox-importer.c (support_format_fn): we dont want to check the From_ line case insensitive! (create_control_fn): implement this weird api. 2004-02-12 Not Zed <NotZed@Ximian.com> * importers/elm-importer.c: rewrote all importing stuff. * importers/mail-importer.c (mail_importer_import_folders_sync): split out into a recursive function & entry. Now handles mozilla format stuff with a flag. (import_mbox_import): made the cameloperation properly save/restore multiple registrations. svn path=/trunk/; revision=24732
* Basically rewrote this, the import tasks run in another thread. It tellsNot Zed2004-02-111-401/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-11 Not Zed <NotZed@Ximian.com> * importers/pine-importer.c: Basically rewrote this, the import tasks run in another thread. It tells you more about what's going on, and its cancellable. (pine_store_settings): changed the meaning of the settings slightly, if set it means we've processed them already. * mail-component-factory.c (factory): hook in importer factory callback. 2004-02-10 Not Zed <NotZed@Ximian.com> * importers/*-importer.c: removed module init, just provide a new method. Updates for api changes. * Makefile.am: link mail importers in directly. * mail-importer.c: changed to do stuff in-memory with linked stuff, moved to importers/. * importers/GNOME_Evolution_Mail_Importers.server.in.in: merge all importer .server info's here, point them all to the mailer factory. Removed the others. * importers/Makefile.am: remove Mailer.idl stuff. Move all importers to a single library. svn path=/trunk/; revision=24701
* Use BASE_VERSION for repo_ids and OAFIIDs Update killev to kill theRodney Dawes2003-12-021-2/+2
| | | | | | | | | | 2003-12-01 Rodney Dawes <dobey@ximian.com> * Use BASE_VERSION for repo_ids and OAFIIDs * Update killev to kill the correct versions of gnome-spell and the GtkHTML Editor svn path=/trunk/; revision=23543
* added "folder_type" parameter to EvolutionImporterLoadFileFn.Rodrigo Moya2003-04-031-1/+1
| | | | | | | | | | | | | | | 2003-04-02 Rodrigo Moya <rodrigo@ximian.com> * importers/evolution-mbox-importer.c (load_file_fn): * importers/evolution-outlook-importer.c (load_file_fn): added "folder_type" parameter to EvolutionImporterLoadFileFn. * importers/elm-importer.c (elm_import_file): pass empty string for "folder_type" argument to GNOME_Evolution_Importer_loadFile. * importers/pine-importer.c (pine_import_file): ditto. * importers/netscape-importer.c (netscape_import_file): ditto. svn path=/trunk/; revision=20645
* ** for mail part of bug #38461.Not Zed2003-03-201-64/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-21 Not Zed <NotZed@Ximian.com> ** for mail part of bug #38461. * importers/evolution-outlook-importer.c (load_file_fn): dont pass in create flag to uri_to_folder, the folder must already exist. * importers/evolution-mbox-importer.c (folder_created_cb): Removed, we now force the caller to create the destination folder first. (load_file_fn): Dont try and create a folder if it doesn't exist. Also, use the uri directly as the destination uri, so we can import into any folder. (process_item_fn): If we dont have a folder, thats just an error, return BAD_FILE. * importers/netscape-importer.c (netscape_import_file): As below for elm_import_file. (import_next): similarly as for pine import_next. (importer_cb): just record result. (importer_timeout_fn): removed. * importers/pine-importer.c (import_next): Similar to below for the elm import_next. (pine_import_file): As below for elm_import_file. (importer_timeout_fn): removed. (importer_cb): just record the result, and exit. (import_next): change around to behave more like the elm importer, cleaning up when we're done. * importers/elm-importer.c (elm_import_file): Create the destination folder ourselves, dont pass it onto the mbox importer. Simplify logic, just do the import within a while loop, polling the g main loop as necessary, remove need for idle callbacks and other crap. (import_next): If elm_import_file fails, then just go straight to the next folder, stops it falling in a heap. (import_item_idle): removed. (importer_cb): just record result/exit. * mail-importer.c (mail_importer_create_folder): removed. (mail_importer_make_local_folder): new function to create a local-only folder from a path. It runs synchronously by using a recursive main loop. (folder_created_cb): callback for make_local_folder. svn path=/trunk/; revision=20379
* Removed unused variables.Jeffrey Stedfast2003-02-131-44/+4
| | | | | | | | | | | | | | | | | 2003-02-12 Jeffrey Stedfast <fejj@ximian.com> * importers/netscape-importer.c: Removed unused variables. * importers/pine-importer.c: Removed unused variables. (parse_address): Removed - it's unused and we have CamelAddress available to us anyway. * importers/elm-importer.c: Removed unused variables. * importers/evolution-mbox-importer.c (load_file_fn): Removed an unused variable. svn path=/trunk/; revision=19896
* track change to e_book_load_uri type.Chris Toshok2003-02-071-3/+1
| | | | | | | | | 2003-02-06 Chris Toshok <toshok@ximian.com> * importers/pine-importer.c (import_addressbook): track change to e_book_load_uri type. svn path=/trunk/; revision=19840
* update from ../../importers/. (main): Removed.Not Zed2003-02-051-0/+699
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-05 Not Zed <NotZed@Ximian.com> * importers/netscape-importer.c: update from ../../importers/. (main): Removed. (mail_importer_module_init): Setup module init fn. (factory_fn): api changes. (is_dir_empty): deprecated changes, and clean up logic. (importer_cb): pulse progress bar, use idle function for processing next item. (import_next): Remove link before recursing, also fix memleak, and api changes. (netscape_import_file): dont release importer. (*): gconf'ify * importers/elm-importer.c (elm_factory_fn): Track the evolution_intelligent_importer, so we can unref it when done. (*): gconf'ify. * importers/pine-importer.c (parse_line): use gobject stuff rather than gtkobject. (import_addressfile): close down 'properly' when finished. (importer_timeout_fn): Do most processing decisions here, either from a timeout or idle function. This prevents us getting 1 stack frame per message and per folder. Close down properly also. (importer_cb): Add a timeout, ignore the callback, or add an idle function to process the next item. (pine_import_file): dont release the importer if we can't load it, its released elsewhere, i think. (import_addressfile): step the progress bar as we go. (factory_fn): Track the evolution_intelligent_importer, so we can unref when done. (*): gconf'ify 2003-01-31 Not Zed <NotZed@Ximian.com> * importers/elm-importer.c (elm_can_import): g_file_exists -> lstat, and g_build_filename api changes. * importers/pine-importer.c: moved from ../../importers/pine-importer.c (factory_fn): oaf->bonobo_activation (mail_importer_module_init): setup factory. (main): Removed. (*): REemove bonobo config stuff. (factory_fn): destroy signal -> weak ref. (pine_destroy_cb): Fix signature for weak ref notify. (import_addressfile): use new glib filename stuff. (import_addressbook): same. (pine_can_import): and here. (import_next): and here. (scan_dir): and here (pine_create_structure): And here. (pine_can_import): g_file_exists -> lstat. (importer_cb): If there are more items, use an idle handler to drop back a few stack frames rather than recursing for each message. (import_next): unlink data from dir_list before recursing, and fix leak. 2003-01-30 Not Zed <NotZed@Ximian.com> * importers/elm-importer.c (elm_destroy_cb): Change for weak ref setup. (elm_factory_fn): destroy -> weak ref. 2003-01-29 Not Zed <NotZed@Ximian.com> * importers/elm-importer.c (importer_cb): Pass processItem off to an idle handler, so we dont blow our stacks. Also update to use progress_bar_pulse(). (import_item_idle): Get the next message here instead. (import_next): Fix a glist leak. Unlink the file before we import it too. And close the dialogue and clean up when we've run out of folders to import. 2003-01-17 Not Zed <NotZed@Ximian.com> * importers/elm-importer.c (elm_create_structure): use/free elmdir rather than double-free maildir. 2003-01-16 Not Zed <NotZed@Ximian.com> * importers/elm-importer.c: update from ../importers/elm-importer.c svn path=/trunk/; revision=19752
* Importer changesIain Holmes2001-05-091-416/+0
| | | | svn path=/trunk/; revision=9722
* Cleaned up #includes. Remove unneccesary includes of <gnome.h>,Kjartan Maraas2001-03-301-1/+5
| | | | | | | | | | | 2001-03-29 Kjartan Maraas <kmaraas@gnome.org> * *.*: Cleaned up #includes. Remove unneccesary includes of <gnome.h>, <gtk/gtk.h>, <bonobo.h> and replaced with more fine grained headers where needed. Also marked a bunch of strings for translations and added some missing prototypes. svn path=/trunk/; revision=9025
* Elm and Pine importersIain Holmes2001-03-201-0/+412
Pine compiles and is tested Elm is not compiled yet, as I have not tested it. svn path=/trunk/; revision=8833