From be5f37e097453112e41931e11caa421e41d0104c Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 11 Sep 2001 00:05:41 +0000 Subject: Handle Movemail svn path=/trunk/; revision=12755 --- importers/ChangeLog | 4 ++++ 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 + + * netscape-importer.c (netscape_import_accounts): Handle Movemail case. + 2001-09-07 Iain Holmes * 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); } -- cgit v1.2.3