diff --git a/mail/fdm/Makefile b/mail/fdm/Makefile index 45cd988da62..6042a6fe75d 100644 --- a/mail/fdm/Makefile +++ b/mail/fdm/Makefile @@ -1,13 +1,13 @@ -# $OpenBSD: Makefile,v 1.14 2011/09/26 09:30:52 sthen Exp $ +# $OpenBSD: Makefile,v 1.15 2012/03/22 10:47:14 sthen Exp $ COMMENT= fetch, filter and deliver mail DISTNAME= fdm-1.6 -REVISION = 2 +REVISION= 3 CATEGORIES= mail -HOMEPAGE= http://fdm.sourceforge.net/ -MAINTAINER= Nicholas Marriott +HOMEPAGE= http://fdm.sourceforge.net/ +MAINTAINER= Nicholas Marriott # BSD PERMIT_PACKAGE_CDROM= Yes @@ -22,7 +22,6 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fdm/} LIB_DEPENDS += databases/tdb>=1.2.7 FAKE_FLAGS= PREFIX=${PREFIX} -USE_GROFF = Yes post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/fdm diff --git a/mail/fdm/patches/patch-deliver-smtp_c b/mail/fdm/patches/patch-deliver-smtp_c new file mode 100644 index 00000000000..1fc7f487955 --- /dev/null +++ b/mail/fdm/patches/patch-deliver-smtp_c @@ -0,0 +1,19 @@ +$OpenBSD: patch-deliver-smtp_c,v 1.1 2012/03/22 10:47:14 sthen Exp $ + +From r1.58 upstream: properly escape . when delivering to SMTP. + +--- deliver-smtp.c.orig Sun Dec 14 21:34:06 2008 ++++ deliver-smtp.c Wed Mar 21 22:59:50 2012 +@@ -160,8 +160,11 @@ deliver_smtp_deliver(struct deliver_ctx *dctx, struct + goto error; + line_init(m, &ptr, &len); + while (ptr != NULL) { +- if (len > 1) ++ if (len > 1) { ++ if (*ptr == '.') ++ io_write(io, ".", 1); + io_write(io, ptr, len - 1); ++ } + io_writeline(io, NULL); + + /* Update if necessary. */