aboutsummaryrefslogtreecommitdiffstats
path: root/mail/importers/elm-importer.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-25 14:59:30 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-26 22:28:05 +0800
commit3b2cfae1768902b60d604fa96cd546636077feb1 (patch)
tree589cdc466339ef9d1d39fe9aa5858d76708efa9f /mail/importers/elm-importer.c
parentface752169b27bad4c3cdec8395aee79e40eba7f (diff)
downloadgsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar.gz
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar.bz2
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar.lz
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar.xz
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.tar.zst
gsoc2013-evolution-3b2cfae1768902b60d604fa96cd546636077feb1.zip
Trim unused or unnecessary bits from the import framework.
Diffstat (limited to 'mail/importers/elm-importer.c')
-rw-r--r--mail/importers/elm-importer.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mail/importers/elm-importer.c b/mail/importers/elm-importer.c
index 1c28e2d82d..e6cfa6a862 100644
--- a/mail/importers/elm-importer.c
+++ b/mail/importers/elm-importer.c
@@ -145,7 +145,6 @@ elm_get_rc(EImport *ei, const gchar *name)
static gboolean
elm_supported(EImport *ei, EImportTarget *target, EImportImporter *im)
{
- EImportTargetHome *s;
const gchar *maildir;
gchar *elmdir;
gboolean mailexists, exists;
@@ -153,9 +152,7 @@ elm_supported(EImport *ei, EImportTarget *target, EImportImporter *im)
if (target->type != E_IMPORT_TARGET_HOME)
return FALSE;
- s = (EImportTargetHome *)target;
-
- elmdir = g_build_filename(s->homedir, ".elm", NULL);
+ elmdir = g_build_filename(g_get_home_dir (), ".elm", NULL);
exists = g_file_test(elmdir, G_FILE_TEST_IS_DIR);
g_free(elmdir);
if (!exists)
@@ -166,7 +163,7 @@ elm_supported(EImport *ei, EImportTarget *target, EImportImporter *im)
maildir = "Mail";
if (!g_path_is_absolute(maildir))
- elmdir = g_build_filename(s->homedir, maildir, NULL);
+ elmdir = g_build_filename(g_get_home_dir (), maildir, NULL);
else
elmdir = g_strdup (maildir);
@@ -198,7 +195,7 @@ elm_import_exec (struct _elm_import_msg *m)
maildir = "Mail";
if (!g_path_is_absolute(maildir))
- elmdir = g_build_filename(m->target->homedir, maildir, NULL);
+ elmdir = g_build_filename(g_get_home_dir (), maildir, NULL);
else
elmdir = g_strdup(maildir);