[Commits] [SCM] claws branch, master, updated. 3.9.0-200-g4911871

claws at claws-mail.org claws at claws-mail.org
Fri Apr 26 18:30:45 CEST 2013


The branch master of project "claws" (Claws Mail) has been updated
       via  49118714fff8db2ba6b6404501c172933070f789 (commit)
      from  f709f3e92873dd36a41f3a089244422aeed5d8f6 (commit)


- Log -----------------------------------------------------------------
commit 49118714fff8db2ba6b6404501c172933070f789
Author: Paul <paul at claws-mail.org>
Date:   Fri Apr 26 17:30:34 2013 +0100

    replace fuzzy-head fix in 3.9.0-196-g06e09c8 with simpler, better, proper fix
    
    replace fuzzy-head fix in 3.9.0-196-g06e09c8 with simpler, better, proper fix
    
    Signed-off-by: Paul <paul at claws-mail.org>

diff --git a/src/procmime.c b/src/procmime.c
index 2fe223b..e0c2dd1 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -798,16 +798,17 @@ gboolean procmime_scan_text_content(MimeInfo *mimeinfo,
 	} else if (mimeinfo->type == MIMETYPE_TEXT) {
 		while (SC_FGETS(buf, sizeof(buf), tmpfp) != NULL) {
 			str = conv_codeset_strdup(buf, src_codeset, CS_UTF_8);
-			if (!str)
-				str =  conv_codeset_strdup(buf, conv_get_locale_charset_str(), CS_UTF_8);
 			if (str) {
- 				if ((scan_ret = scan_callback(str, cb_data)) == TRUE) {
- 					g_free(str);
- 					break;
- 				}
- 				g_free(str);	
-			} else
+				if ((scan_ret = scan_callback(str, cb_data)) == TRUE) {
+					g_free(str);
+					break;
+				}
+				g_free(str);
+			} else {
 				conv_fail = TRUE;
+				if ((scan_ret = scan_callback(buf, cb_data)) == TRUE)
+					break;
+			}
 		}
 	}
 

-----------------------------------------------------------------------

Summary of changes:
 src/procmime.c |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list