mutt/mutt-1.5.21-mailcap.diff

22 lines
806 B
Diff

read /usr/share/mutt/mailcap as fallback by default. This allows to
set some useful defaults specifically for mutt. For example
text/html
Index: mutt-1.5.21/init.c
===================================================================
---
init.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- init.c
+++ init.c 2017-09-11 12:17:15.337988648 +0000
@@ -4248,7 +4248,8 @@ void mutt_init(int skip_sys_rc, struct L
/* Default search path from RFC1524 */
MailcapPath = safe_strdup(
"~/.mailcap:" PKGDATADIR "/mailcap:" SYSCONFDIR
- "/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap");
+ "/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap"
+ SYSCONFDIR "/mutt/mailcap");
}
Tmpdir = safe_strdup((p = getenv("TMPDIR")) ? p : "/tmp");