diff options
author | jlam <jlam@pkgsrc.org> | 2006-03-21 19:50:51 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-03-21 19:50:51 +0000 |
commit | 2f377c76b4242e16baf3b6ca2fa6f41436a14638 (patch) | |
tree | 1c824c86af209eac5664a1a4400189c176daaaa3 /mail/maildrop/patches | |
parent | 6bbe74362dbd52a77b79fbb1e66d97a928108f34 (diff) | |
download | pkgsrc-2f377c76b4242e16baf3b6ca2fa6f41436a14638.tar.gz |
Add a check for whether maildrop is invoked by courier or not before
doing courier-specific things, like accepting the values of certain
environment variables for things like location of the mail folder for
local delivery. This addresses PR pkg/32369 in a way that still allows
for a future courier-mta package that just uses the maildrop package.
Diffstat (limited to 'mail/maildrop/patches')
-rw-r--r-- | mail/maildrop/patches/patch-ac | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mail/maildrop/patches/patch-ac b/mail/maildrop/patches/patch-ac new file mode 100644 index 00000000000..c24ac876b40 --- /dev/null +++ b/mail/maildrop/patches/patch-ac @@ -0,0 +1,28 @@ +$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 + |