diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-09-11 08:05:41 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-09-11 08:05:41 +0800 |
commit | be5f37e097453112e41931e11caa421e41d0104c (patch) | |
tree | 74800992cfa354eec65a91e8b861a31db6b75bb9 /importers | |
parent | f431da35f7acf361569b89f43be4255344dc65b9 (diff) | |
download | gsoc2013-evolution-be5f37e097453112e41931e11caa421e41d0104c.tar gsoc2013-evolution-be5f37e097453112e41931e11caa421e41d0104c.tar.gz gsoc2013-evolution-be5f37e097453112e41931e11caa421e41d0104c.tar.bz2 gsoc2013-evolution-be5f37e097453112e41931e11caa421e41d0104c.tar.lz gsoc2013-evolution-be5f37e097453112e41931e11caa421e41d0104c.tar.xz gsoc2013-evolution-be5f37e097453112e41931e11caa421e41d0104c.tar.zst gsoc2013-evolution-be5f37e097453112e41931e11caa421e41d0104c.zip |
Handle Movemail
svn path=/trunk/; revision=12755
Diffstat (limited to 'importers')
-rw-r--r-- | importers/ChangeLog | 4 | ||||
-rw-r--r-- | importers/netscape-importer.c | 18 |
2 files changed, 20 insertions, 2 deletions
diff --git a/importers/ChangeLog b/importers/ChangeLog index 8220a60611..125d28d4e8 100644 --- a/importers/ChangeLog +++ b/importers/ChangeLog @@ -1,3 +1,7 @@ +2001-09-10 Iain Holmes <iain@ximian.com> + + * netscape-importer.c (netscape_import_accounts): Handle Movemail case. + 2001-09-07 Iain Holmes <iain@ximian.com> * pine-importer.c: diff --git a/importers/netscape-importer.c b/importers/netscape-importer.c index eb420b146d..400c2de370 100644 --- a/importers/netscape-importer.c +++ b/importers/netscape-importer.c @@ -413,7 +413,6 @@ netscape_import_accounts (NetscapeImporter *importer) /* Create account */ account.name = CORBA_string_dup (username); - g_free (username); account.id = id; account.transport = transport; @@ -504,6 +503,20 @@ netscape_import_accounts (NetscapeImporter *importer) CORBA_exception_free (&ev); g_strfreev (servers); return; + } else { + char *url, *path; + + /* Using Movemail */ + path = getenv ("MAIL"); + url = g_strconcat ("mbox://", path, NULL); + source.url = CORBA_string_dup (url); + g_free (url); + + source.keep_on_server = netscape_get_boolean ("mail.leave_on_server"); + source.auto_check = TRUE; + source.auto_check_time = 10; + source.save_passwd = netscape_get_boolean ("mail.remember_password"); + source.enabled = FALSE; } } account.source = source; @@ -514,7 +527,8 @@ netscape_import_accounts (NetscapeImporter *importer) CORBA_exception_free (&ev); return; } - + + g_free (username); CORBA_exception_free (&ev); } |