Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2007 16:10:28 -0600
From:      "Mark Kane" <mark@mkproductions.org>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        netchild@FreeBSD.org
Subject:   ports/109211: [PATCH] mail/claws-mail - Use proper "mime.types" file for attachments
Message-ID:  <1171577428.82713@amd64.localhost>
Resent-Message-ID: <200702152240.l1FMe41U070811@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         109211
>Category:       ports
>Synopsis:       [PATCH] mail/claws-mail - Use proper "mime.types" file for attachments
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 15 22:40:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Mark Kane
>Release:        FreeBSD 6.2-STABLE amd64
>Organization:
MKProductions 
>Environment:


System: FreeBSD 6.2-STABLE #2: Wed Feb 14 15:34:55 CST 2007
    mixx941@amd64.localhost:/usr/obj/usr/src/sys/AMD645200



>Description:


Hi.

By default, Claws Mail looks in /etc/ for the "mime.types" file to know what MIME types to set when sending various attachment file extensions. The "mime.types" file is located at /usr/local/etc/ on FreeBSD, so Claws Mail cannot find it by default (and attachments are not sent with the proper MIME types). 

The attached patch sets the "SYSCONFDIR" environment variable upon compiling so Claws Mail knows where the file is and can properly load it when running the application.

Thanks,

-Mark


>How-To-Repeat:





>Fix:


--- claws-mail.patch begins here ---
--- mail/claws-mail/Makefile.bak	Thu Feb 15 15:13:50 2007
+++ mail/claws-mail/Makefile	Thu Feb 15 15:21:13 2007
@@ -48,7 +48,8 @@
 CONFIGURE_ENV=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
 		CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
 		LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
-		LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
+		LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
+		SYSCONFDIR="${LOCALBASE}/etc"
 
 OPTIONS=	ALL		"Enable all options."			off \
 		ASPELL		"Enable spell checking support."	on \
--- claws-mail.patch ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1171577428.82713>