projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e0c5d35
)
don't get a fright when encountering an unknown Content-Type
author
Paul
<paul@claws-mail.org>
Tue, 1 Dec 2020 16:27:48 +0000
(16:27 +0000)
committer
Paul
<paul@claws-mail.org>
Tue, 1 Dec 2020 16:27:48 +0000
(16:27 +0000)
src/procmime.c
patch
|
blob
|
history
diff --git
a/src/procmime.c
b/src/procmime.c
index da5f13f1e2534a08896d1a9841de94cb8511799c..0a40426877ac66f833eef8972914fec2ac1dcf05 100644
(file)
--- a/
src/procmime.c
+++ b/
src/procmime.c
@@
-1,6
+1,6
@@
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-20
16 Hiroyuki Yamamoto & The Claws Mail Team
+ * Copyright (C) 1999-20
20 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
*
* 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
@@
-2107,7
+2107,9
@@
static gboolean output_func(GNode *node, gpointer data)
depth = g_node_depth(node);
for (i = 0; i < depth; i++)
g_print(" ");
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;
}
return FALSE;
}