|
@@ -18,16 +18,6 @@ if ($TEST)
|
|
{
|
|
{
|
|
import MAILDROPDIR
|
|
import MAILDROPDIR
|
|
}
|
|
}
|
|
-POSTMASTER="postmaster@localhost"
|
|
|
|
-
|
|
|
|
-# bi-directional group
|
|
|
|
-# From subscribed member -> other subscribed members
|
|
|
|
-MEMBERGROUP="cropswap-members@shandan.one"
|
|
|
|
-
|
|
|
|
-# uni-directional group
|
|
|
|
-# From anyone -> organizers
|
|
|
|
-# From organizers -> subscribed members
|
|
|
|
-ORGANIZERGROUP="cropswap@shandan.one"
|
|
|
|
|
|
|
|
UNHANDLED=5
|
|
UNHANDLED=5
|
|
BADREQUEST=4
|
|
BADREQUEST=4
|
|
@@ -35,12 +25,25 @@ UNREGISTERED=3
|
|
UNSUBSCRIBED=2
|
|
UNSUBSCRIBED=2
|
|
FATAL=1
|
|
FATAL=1
|
|
|
|
|
|
|
|
+MAILGROUP=""
|
|
|
|
+MAILGROUPALIAS=""
|
|
|
|
+
|
|
|
|
+POSTMASTER="postmaster@localhost"
|
|
|
|
+# uni-directional group
|
|
|
|
+# From anyone -> organizers
|
|
|
|
+# From organizers -> subscribed members
|
|
|
|
+ORGANIZERGROUP="cropswap@shandan.one"
|
|
|
|
+# bi-directional group
|
|
|
|
+# From subscribed member -> other subscribed members
|
|
|
|
+MEMBERGROUP="cropswap-members@shandan.one"
|
|
|
|
+
|
|
foreach /^(To|Cc):.*/
|
|
foreach /^(To|Cc):.*/
|
|
{
|
|
{
|
|
ADDR=getaddr($MATCH)
|
|
ADDR=getaddr($MATCH)
|
|
include "$FILTERDIR/$MEMBERGROUP"
|
|
include "$FILTERDIR/$MEMBERGROUP"
|
|
include "$FILTERDIR/$ORGANIZERGROUP"
|
|
include "$FILTERDIR/$ORGANIZERGROUP"
|
|
include "$FILTERDIR/$POSTMASTER"
|
|
include "$FILTERDIR/$POSTMASTER"
|
|
|
|
+ include "$FILTERDIR/subscriptions"
|
|
}
|
|
}
|
|
|
|
|
|
if ($TOMEMBER && $TOORGANIZER)
|
|
if ($TOMEMBER && $TOORGANIZER)
|
|
@@ -71,8 +74,7 @@ SLIST="$LISTDIR/slist"
|
|
gdbmopen($MLIST, "R")
|
|
gdbmopen($MLIST, "R")
|
|
TO=gdbmfetch($TOALIAS)
|
|
TO=gdbmfetch($TOALIAS)
|
|
gdbmclose
|
|
gdbmclose
|
|
-
|
|
|
|
-HANDLE=1
|
|
|
|
|
|
+DISPATCH=1
|
|
if ($TOPOSTMASTER)
|
|
if ($TOPOSTMASTER)
|
|
{
|
|
{
|
|
include "$FILTERDIR/$POSTMASTER"
|
|
include "$FILTERDIR/$POSTMASTER"
|