aboutsummaryrefslogtreecommitdiffstats
path: root/mail/importers/netscape-importer.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix file descriptor leaksJules Colding2007-05-291-1/+2
| | | | svn path=/trunk/; revision=33598
* use libedataserver/e-account-list.h instead of e-util/e-account-list.h.Simon Zheng2006-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2006-01-06 Simon Zheng <simon.zheng@sun.com> * em-account-editor.c: * em-account-prefs.c: * em-composer-utils.c: * em-folder-tree-model.h: * em-migrate.c: * em-subscribe-editor.c: * em-utils.c: * importers/netscape-importer.c: * mail-config.c: * mail-crypto.c: * mail-ops.h: * mail-send-recv.c: * mail-vfolder.c: use libedataserver/e-account-list.h instead of e-util/e-account-list.h. use libedataserver/e-account.h instead of e-util/e-account.h. svn path=/trunk/; revision=31075
* importers/elm-importer.c importers/evolution-mbox-importer.cTor Lillqvist2005-12-181-1/+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
* Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing toTor Lillqvist2005-09-281-2/+2
| | | | | | | | | | | 2005-09-28 Tor Lillqvist <tml@novell.com> * importers/netscape-importer.c (netscape_get_boolean): Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to literal ASCII strings in these cases, so just casefolding ASCII is enough. Also better for portability. svn path=/trunk/; revision=30401
* ** See #59885.Not Zed2004-06-171-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-17 Not Zed <NotZed@Ximian.com> ** See #59885. ** Moved all of the mail specific filtering stuff from filter/* to here. Renamed appropriately into em* space, etc. * em-filter-folder-element.c (emff_copy_value): implement for folders. * em-vfolder-rule.c (get_widget): read the vfolder glade from mail-config.glade. * mail-config.glade: moved the vfolder source selector here. * em-search-context.c: new mail search specific rule context. * mail-component.c (setup_search_context): use the new em_search_context. * vfolder-rule.c (validate): change error to mail context. * filter-folder.c (validate): change error to mail context. * Makefile.am (em-filter-i18n.h): added rule for i18n of mail filter type stuff. (libevolution_mail_la_SOURCES): added in the filter and vfolder rule stuff specific to mail. ** See #59885. * em-format-html-quote.[ch]: remove and remove from build, not used. * Makefile.am (libevolution_mail_la_LIBADD): add libeabutil and evolutionsmime. * mail-component-factory.c (factory): there is no mail_config anymore. svn path=/trunk/; revision=26380
* ** Dunno why i bothered, but see bug #58090.Not Zed2004-05-071-6/+36
| | | | | | | | | | | | | | | 2004-05-07 Not Zed <NotZed@Ximian.com> ** Dunno why i bothered, but see bug #58090. * importers/netscape-importer.c (netscape_filter_parse_conditions): check for custom headers properly. (netscape_filter_flatfile_get_entry): put in some validate checks. (netscape_filter_to_evol_filter): implement custom headers properly. (ns_filter_condition_types): add missing "status" string. svn path=/trunk/; revision=25820
* Removed unused and uninitialised "url" local that gets g_free-edDavid Malcolm2004-04-191-2/+1
| | | | | | | | | 2004-04-16 David Malcolm <dmalcolm@redhat.com> * importers/netscape-importer.c (netscape_import_accounts): Removed unused and uninitialised "url" local that gets g_free-ed svn path=/trunk/; revision=25507
* Updated for signature API changes.Jeffrey Stedfast2004-04-021-6/+7
| | | | | | | | | | | | | | | | | | | | | | 2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * importers/netscape-importer.c (netscape_import_accounts): Updated for signature API changes. * mail-account-gui.c: Same. * mail-signature-editor.c: Same. * em-composer-prefs.c: Same. * mail-config.c: Rewrote the signature stuff to use ESignatureList instead. Much cleaner and less broken. * em-mailer-prefs.c (em_mailer_prefs_construct): Always make the Add/Remove Header buttons de-sensitised at the start. Fixes bug #56284. svn path=/trunk/; revision=25282
* use mail-importer to import the mail tree, fix the account stuff to talkNot Zed2004-02-131-465/+247
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-33/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | | | | 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
* Updated for API change in the filter code.Jeffrey Stedfast2003-04-301-4/+4
| | | | | | | | | | 2003-04-29 Jeffrey Stedfast <fejj@ximian.com> * importers/netscape-importer.c (netscape_add_priority_workaround_filters): Updated for API change in the filter code. svn path=/trunk/; revision=21020
* 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-60/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use G_GNUC_FUNCTION instead of __FUNCTION__. (OUT): Likewise. Likewise.Ettore Perazzoli2003-03-071-1/+1
| | | | | | | | | | | | | | * importers/evolution-mbox-importer.c (IN): Use G_GNUC_FUNCTION instead of __FUNCTION__. (OUT): Likewise. * importers/netscape-importer.c (netscape_import_file): Likewise. * mail-send-recv.c (receive_done): Likewise. * mail-summary.c (SUMMARY_OUT): Likewise. (SUMMARY_IN): Likewise. (folder_changed_cb): Likewise. (message_changed_cb): Likewise. svn path=/trunk/; revision=20202
* Removed unused variables.Jeffrey Stedfast2003-02-131-7/+3
| | | | | | | | | | | | | | | | | 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
* Remove *dir defs that are in configure.in now (INCLUDES): clean up usingDan Winship2003-02-071-1/+1
| | | | | | | | | | | | | | | * Makefile.am: Remove *dir defs that are in configure.in now (INCLUDES): clean up using new *dir variables (libevolution_mail_la_LDFLAGS): remove -export-dynamic, add -module * importers/Makefile.am (INCLUDES): change EVOLUTION_DATADIR to EVOLUTION_PRIVDATADIR * importers/netscape-importer.c (netscape_import_filters): use EVOLUTION_PRIVDATADIR svn path=/trunk/; revision=19805
* update from ../../importers/. (main): Removed.Not Zed2003-02-051-0/+2185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-473/+0
| | | | svn path=/trunk/; revision=9722
* Cleaned up #includes. Remove unneccesary includes of <gnome.h>,Kjartan Maraas2001-03-301-1/+0
| | | | | | | | | | | 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
* Fix some warnings, Allow the importers to import into any folder. UpdateIain Holmes2001-03-231-2/+12
| | | | | | | | | | Fix some warnings, Allow the importers to import into any folder. Update all importers for this change. Don't emit the create_folder callback if the folder to be created already exists. This should fix the libibex crash when importing. svn path=/trunk/; revision=8912
* Changes to the netscape importer for streamlining it and not creating silly ↵Iain Holmes2001-03-201-41/+40
| | | | | | folders svn path=/trunk/; revision=8834
* All my changes to get the folder creation working, and the magic NetscapeIain Holmes2001-03-131-0/+465
importer. svn path=/trunk/; revision=8661