pkgsrc/mail/maildrop/patches/patch-ac

29 lines
636 B
Text
Raw Normal View History

$NetBSD: patch-ac,v 1.1 2006/03/21 19:50:51 jlam Exp $
--- maildrop/main.C.orig 2005-05-12 11:23:54.000000000 -0400
+++ maildrop/main.C
@@ -616,6 +616,14 @@ Buffer value;
{
const char *p;
+ /*
+ * To allow one maildrop to be used by both courier MTA
+ * and others, we require courier MTA to set COURIER_MTA
+ * in the environment before running maildrop.
+ */
+ if (getenv("COURIER_MTA"))
+ { /* COURIER_MTA */
+
if ((p=getenv("HOME")) && *p)
maildrop.init_home=p;
@@ -640,6 +648,8 @@ Buffer value;
if ((p=getenv("MAILDIRQUOTA")) && *p)
maildrop.init_quota=p;
+
+ } /* COURIER_MTA */
}
#endif