diff options
author | Tor Lillqvist <tml@novell.com> | 2005-12-18 02:35:37 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-12-18 02:35:37 +0800 |
commit | df6c612eaa2e2f1b1b691d1f56d7079c9700a826 (patch) | |
tree | 43b9e2789ee71d340483f87b4c26c9a639dab08a /mail/importers/elm-importer.c | |
parent | 20085e766ba79c4ecf7da1ba26dc6e09e2c7450d (diff) | |
download | gsoc2013-evolution-df6c612eaa2e2f1b1b691d1f56d7079c9700a826.tar.gz gsoc2013-evolution-df6c612eaa2e2f1b1b691d1f56d7079c9700a826.tar.zst gsoc2013-evolution-df6c612eaa2e2f1b1b691d1f56d7079c9700a826.zip |
importers/elm-importer.c importers/evolution-mbox-importer.c
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
Diffstat (limited to 'mail/importers/elm-importer.c')
-rw-r--r-- | mail/importers/elm-importer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mail/importers/elm-importer.c b/mail/importers/elm-importer.c index 7d8abdfa04..cf8479ef90 100644 --- a/mail/importers/elm-importer.c +++ b/mail/importers/elm-importer.c @@ -159,7 +159,6 @@ elm_supported(EImport *ei, EImportTarget *target, EImportImporter *im) const char *maildir; char *elmdir; gboolean mailexists, exists; - struct stat st; if (target->type != E_IMPORT_TARGET_HOME) return FALSE; @@ -167,7 +166,7 @@ elm_supported(EImport *ei, EImportTarget *target, EImportImporter *im) s = (EImportTargetHome *)target; elmdir = g_build_filename(s->homedir, ".elm", NULL); - exists = lstat(elmdir, &st) == 0 && S_ISDIR(st.st_mode); + exists = g_file_test(elmdir, G_FILE_TEST_IS_DIR); g_free(elmdir); if (!exists) return FALSE; @@ -181,7 +180,7 @@ elm_supported(EImport *ei, EImportTarget *target, EImportImporter *im) else elmdir = g_strdup (maildir); - mailexists = lstat(elmdir, &st) == 0 && S_ISDIR(st.st_mode); + mailexists = g_file_test(elmdir, G_FILE_TEST_IS_DIR); g_free (elmdir); return mailexists; |