[Commits] [SCM] claws branch, master, updated. 3.17.8-10-gdfb4cf27d

paul at claws-mail.org paul at claws-mail.org
Wed Dec 2 10:08:40 CET 2020


The branch, master has been updated
       via  dfb4cf27d9df2de52b8cbf49aa857200692a5b84 (commit)
      from  fb209d5d8f1171d60dfff59eba155c7fe708a7b8 (commit)

Summary of changes:
 src/procmime.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit dfb4cf27d9df2de52b8cbf49aa857200692a5b84
Author: Paul <paul at claws-mail.org>
Date:   Wed Dec 2 09:08:35 2020 +0000

    add midsing 'model'; eliminate use of raw number

diff --git a/src/procmime.c b/src/procmime.c
index 0a4042687..5449e70f0 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -2096,6 +2096,7 @@ static gchar *typenames[] = {
     "application",
     "message",
     "multipart",
+    "model",
     "unknown",
 };
 
@@ -2108,7 +2109,7 @@ static gboolean output_func(GNode *node, gpointer data)
 	for (i = 0; i < depth; i++)
 		g_print("    ");
 	g_print("%s/%s (offset:%d length:%d encoding: %d)\n", 
-		(mimeinfo->type < 8)? typenames[mimeinfo->type] : "unknown", 
+		(mimeinfo->type <= MIMETYPE_UNKNOWN)? typenames[mimeinfo->type] : "unknown", 
 		mimeinfo->subtype, mimeinfo->offset, mimeinfo->length, mimeinfo->encoding_type);
 
 	return FALSE;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list