* src/mimeview.c
fix content-type guessing by name parameter when finding
the correct viewer
+2003-11-21 [christoph] 0.9.6claws85
+
+ * src/mimeview.c
+ fix content-type guessing by name parameter when finding
+ the correct viewer
+
2003-11-21 [alfons] 0.9.6claws84
* src/main.c
no mail incorporation allowed with --offline param.
fixes bug #374, "--offline ignored"
2003-11-21 [alfons] 0.9.6claws84
* src/main.c
no mail incorporation allowed with --offline param.
fixes bug #374, "--offline ignored"
2003-11-20 [christoph] 0.9.6claws83
* src/mimeinfo.c
2003-11-20 [christoph] 0.9.6claws83
* src/mimeinfo.c
MICRO_VERSION=6
INTERFACE_AGE=0
BINARY_AGE=0
MICRO_VERSION=6
INTERFACE_AGE=0
BINARY_AGE=0
if test $EXTRA_VERSION -eq 0; then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
else
if test $EXTRA_VERSION -eq 0; then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
else
MimeViewer *viewer = NULL;
if ((partinfo->type == MIMETYPE_APPLICATION) &&
MimeViewer *viewer = NULL;
if ((partinfo->type == MIMETYPE_APPLICATION) &&
- (!g_strcasecmp(partinfo->subtype, "octet-stream")) &&
- (partinfo->name != NULL)) {
- content_type = procmime_get_mime_type(partinfo->name);
+ (!g_strcasecmp(partinfo->subtype, "octet-stream"))) {
+ const gchar *filename;
+
+ filename = procmime_mimeinfo_get_parameter(partinfo, "name");
+ if (filename != NULL)
+ content_type = procmime_get_mime_type(filename);
} else {
content_type = g_strdup_printf("%s/%s", procmime_get_type_str(partinfo->type), partinfo->subtype);
}
} else {
content_type = g_strdup_printf("%s/%s", procmime_get_type_str(partinfo->type), partinfo->subtype);
}