diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-24 10:44:35 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-24 10:44:35 +0000 |
commit | 5a8dabecb4c9ab93194fff4dcd9d6f12f550e02a (patch) | |
tree | f0e8b76177d47c1162f71e4aa716b61807b7e840 /libsylph/procmime.c | |
parent | ad0f146da6cc7938b169b3242de20fcaa343813f (diff) |
win32: don't uncanonicalize text files when decoding.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@775 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/procmime.c')
-rw-r--r-- | libsylph/procmime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c index da7e8b1f..91500972 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -575,6 +575,7 @@ FILE *procmime_decode_content(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) Base64Decoder *decoder; gboolean uncanonicalize = FALSE; FILE *tmpfp = outfp; +#ifndef G_OS_WIN32 ContentType content_type; content_type = procmime_scan_mime_type(mimeinfo->content_type); @@ -589,6 +590,7 @@ FILE *procmime_decode_content(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) return NULL; } } +#endif decoder = base64_decoder_new(); while (fgets(buf, sizeof(buf), infp) != NULL && @@ -604,6 +606,7 @@ FILE *procmime_decode_content(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) } base64_decoder_free(decoder); +#ifndef G_OS_WIN32 if (uncanonicalize) { rewind(tmpfp); while (fgets(buf, sizeof(buf), tmpfp) != NULL) { @@ -612,6 +615,7 @@ FILE *procmime_decode_content(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) } fclose(tmpfp); } +#endif } else if (mimeinfo->encoding_type == ENC_X_UUENCODE) { gchar outbuf[BUFFSIZE]; gint len; |