From df6c612eaa2e2f1b1b691d1f56d7079c9700a826 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 17 Dec 2005 18:35:37 +0000 Subject: importers/elm-importer.c importers/evolution-mbox-importer.c 2005-12-17 Tor Lillqvist * 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 --- mail/importers/evolution-outlook-importer.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mail/importers/evolution-outlook-importer.c') diff --git a/mail/importers/evolution-outlook-importer.c b/mail/importers/evolution-outlook-importer.c index ca04678260..04f14bfc01 100644 --- a/mail/importers/evolution-outlook-importer.c +++ b/mail/importers/evolution-outlook-importer.c @@ -34,6 +34,9 @@ #include #include +#include +#include + #include #include #include @@ -51,6 +54,8 @@ #include #include +#include + #include "mail/em-folder-selection-button.h" #include "mail/mail-component.h" @@ -154,7 +159,7 @@ support_format_fn(EvolutionImporter *importer, const char *filename, void *data) Taken from liboe 0.92 (STABLE) Copyright (C) 2000 Stephan B. Nedregård (stephan@micropop.com) */ - handle = fopen (filename, "rb"); + handle = g_fopen (filename, "rb"); if (handle == NULL) return FALSE; /* Can't open file: Can't support it :) */ @@ -332,7 +337,7 @@ import_outlook_import(struct _mail_msg *mm) int fd; off_t pos; - fd = open(m->path, O_RDONLY); + fd = g_open(m->path, O_RDONLY|O_BINARY, 0); if (fd == -1) { g_warning("cannot find source file to import '%s': %s", m->path, g_strerror(errno)); goto fail; -- cgit