[Commits] [SCM] claws branch, master, updated. 3.13.0-43-gb490620

claws at claws-mail.org claws at claws-mail.org
Sun Nov 8 12:41:28 CET 2015


The branch, master has been updated
       via  b490620975005ccfc65bd92fbe23fe8dc3a1427d (commit)
      from  d33faf750fc05123e509d4cd0384159bcef610ee (commit)

Summary of changes:
 AUTHORS           |    1 +
 src/gtk/authors.h |    1 +
 src/procmime.c    |    2 ++
 3 files changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit b490620975005ccfc65bd92fbe23fe8dc3a1427d
Author: Paul <paul at claws-mail.org>
Date:   Sun Nov 8 11:41:15 2015 +0000

    find correct mime type of files with no suffix, e.g. Makefile
    
    Patch by Blatinox.

diff --git a/AUTHORS b/AUTHORS
index 06fea7e..b75f349 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -306,3 +306,4 @@ contributors (in addition to the above; based on Changelog)
 	Daniel Jakots
 	Mikhail Kurinnoi
 	Arthur Huillet
+	Blatinox
diff --git a/src/gtk/authors.h b/src/gtk/authors.h
index 7322609..4651705 100644
--- a/src/gtk/authors.h
+++ b/src/gtk/authors.h
@@ -94,6 +94,7 @@ static char *CONTRIBS_LIST[] = {
 "Sébastien Bigaret",
 "Laurent Bigonville",
 "Jean-Luc Biord",
+"Blatinox",
 "Pavlo Bohmat",
 "H. Merijn Brand",
 "Eugene Brevdo",
diff --git a/src/procmime.c b/src/procmime.c
index 49efd74..cce1695 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -1104,6 +1104,8 @@ gchar *procmime_get_mime_type(const gchar *filename)
 	base = g_path_get_basename(filename);
 	if ((p = strrchr(base, '.')) != NULL)
 		ext = g_utf8_strdown(p + 1, -1);
+	else
+		ext = g_utf8_strdown(base, -1);
 	g_free(base);
 
 #ifndef G_OS_WIN32

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list