2005-05-30 [paul] 1.0.4cvs14
[claws.git] / src / procmime.c
index 437c6bfc70addbc02f3f9f5f0c11a9863e2d35bc..96765c4ec20aedf8aee6e1b1df7a33e0265ff1bf 100644 (file)
@@ -333,8 +333,12 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo)
                while ((ftell(infp) < readend) && (fgets(buf, sizeof(buf), infp) != NULL)) {
                        len = base64_decoder_decode(decoder, buf, outbuf);
                        if (len < 0) {
-                               g_warning("Bad BASE64 content\n");
-                               break;
+                               g_warning("Bad BASE64 content.\n");
+                               fwrite(_("[Error decoding BASE64]\n"),
+                                       sizeof(gchar),
+                                       strlen(_("[Error decoding BASE64]\n")),
+                                       tmpfp);
+                               continue;
                        }
                        fwrite(outbuf, sizeof(gchar), len, tmpfp);
                }