X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sendlib.c;h=e47825ce2295c87544a9669bcc79de47c0813b2b;hp=7369e84109d8b702f9e20901c56e738be3c0086a;hb=19457d3e9b0b827930530f5e8f4f04dd745d685f;hpb=ce31869e540c4f27d4a398482a44856f314883da diff --git a/sendlib.c b/sendlib.c index 7369e84..e47825c 100644 --- a/sendlib.c +++ b/sendlib.c @@ -892,7 +892,7 @@ int mutt_lookup_mime_type (BODY * att, const char *path) szf = str_len (path); - for (count = 0; count < 3; count++) { + for (count = 0; count < 4; count++) { /* * can't use strtok() because we use it in an inner loop below, so use * a switch statement here instead. @@ -907,6 +907,9 @@ int mutt_lookup_mime_type (BODY * att, const char *path) case 2: strfcpy (buf, PKGDATADIR "/mime.types", sizeof (buf)); break; + case 3: + strfcpy (buf, SYSCONFDIR "/mime.types", sizeof (buf)); + break; default: debug_print (1, ("Internal error, count = %d.\n", count)); goto bye; /* shouldn't happen */