[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-9-g75fc8437e
paul at claws-mail.org
paul at claws-mail.org
Tue Dec 1 17:28:56 CET 2020
The branch, gtk3 has been updated
via 75fc8437ef93bb5d860e58cb04b0bdbee6a9cec7 (commit)
from 25bba106ace6f702bfb7e7e074166d8df7e6d1e9 (commit)
Summary of changes:
src/procmime.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 75fc8437ef93bb5d860e58cb04b0bdbee6a9cec7
Author: paul <paul at claws-mail.org>
Date: Tue Dec 1 16:28:51 2020 +0000
don't get a fright when encountering an unknown Content-Type
diff --git a/src/procmime.c b/src/procmime.c
index 616072432..2cf585fe5 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -1,6 +1,6 @@
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2016 Hiroyuki Yamamoto & The Claws Mail Team
+ * Copyright (C) 1999-2020 the Claws Mail Team and Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -2146,7 +2146,9 @@ static gboolean output_func(GNode *node, gpointer data)
depth = g_node_depth(node);
for (i = 0; i < depth; i++)
g_print(" ");
- g_print("%s/%s (offset:%d length:%d encoding: %d)\n", typenames[mimeinfo->type], mimeinfo->subtype, mimeinfo->offset, mimeinfo->length, mimeinfo->encoding_type);
+ g_print("%s/%s (offset:%d length:%d encoding: %d)\n",
+ (mimeinfo->type < 8)? 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