diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-01-27 11:05:54 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-01-27 11:05:54 +0800 |
commit | 62ec012904d2004a0b486b10ddfdb05b98f05c3a (patch) | |
tree | a84f8eb44661b0679f8d76b7953262c8897fa096 /mail/evolution-outlook-importer.c | |
parent | 8c1c8274963543c45ba3717d1156d9edaa78cdc2 (diff) | |
download | gsoc2013-evolution-62ec012904d2004a0b486b10ddfdb05b98f05c3a.tar.gz gsoc2013-evolution-62ec012904d2004a0b486b10ddfdb05b98f05c3a.tar.zst gsoc2013-evolution-62ec012904d2004a0b486b10ddfdb05b98f05c3a.zip |
Fix some compile problems and stop the blank mail appearing with the mbox
importer
svn path=/trunk/; revision=7843
Diffstat (limited to 'mail/evolution-outlook-importer.c')
-rw-r--r-- | mail/evolution-outlook-importer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/evolution-outlook-importer.c b/mail/evolution-outlook-importer.c index 04b2e8a3b0..47f88aceb8 100644 --- a/mail/evolution-outlook-importer.c +++ b/mail/evolution-outlook-importer.c @@ -45,7 +45,7 @@ typedef struct { char *filename; gboolean oe4; /* Is file OE4 or not? */ FILE *handle; - fpos_t pos; + long pos; off_t size; gboolean busy; @@ -80,7 +80,7 @@ process_item_fn (EvolutionImporter *eimporter, oe_msg_segmentheader *header; gboolean more = TRUE; char *cb, *sfull, *s; - fpos_t end_pos = 0; + long end_pos = 0; int i; if (oli->busy == TRUE) { @@ -134,7 +134,7 @@ process_item_fn (EvolutionImporter *eimporter, mail_importer_add_line (importer, "\n", TRUE); oli->pos = end_pos; - fsetpos (oli->handle, &oli->pos); + fseek (oli->handle, oli->pos, SEEK_SET); g_free (header); g_free (sfull); @@ -221,7 +221,7 @@ load_file_fn (EvolutionImporter *eimporter, OutlookImporter *oli; MailImporter *importer; struct stat buf; - fpos_t pos = 0x54; + long pos = 0x54; oli = (OutlookImporter *) closure; importer = (MailImporter *) oli; @@ -249,7 +249,7 @@ load_file_fn (EvolutionImporter *eimporter, oli->size = buf.st_size; /* Set the fposition to the begining */ - fsetpos (oli->handle, &pos); + fseek (oli->handle, pos, SEEK_SET); oli->pos = pos; importer->mstream = NULL; |