|
@@ -1,24 +1,25 @@
|
|
|
SIGNUPRESP="/opt/cropswap/signup.eml"
|
|
|
if (!$CONTINUE)
|
|
|
{
|
|
|
- if (/^Subject:\s*\[SIGNUP\]\s*$/)
|
|
|
+ if (/^X\-GROUP:\s*($ANYGROUPREGEX)\s*$/)
|
|
|
{
|
|
|
- TOPOSTMASTER=1
|
|
|
- CONTINUE=1
|
|
|
- }
|
|
|
- if (/^X\-GROUP:\s*($ORGANIZERGROUPREGEX)\s*$/)
|
|
|
- {
|
|
|
- TOORGANIZER=1
|
|
|
- MAILGROUP=$MATCH1
|
|
|
- }
|
|
|
- if (/^X\-GROUP:\s*($MEMBERGROUPREGEX)\s*$/)
|
|
|
- {
|
|
|
- TOMEMBER=1
|
|
|
MAILGROUP=$MATCH1
|
|
|
- }
|
|
|
- if (/^X\-GROUP\-ALIAS:\s*(.*)\s*$/)
|
|
|
- {
|
|
|
- MAILGROUPALIAS=$MATCH1
|
|
|
+ if (/^Subject:\s*\[SIGNUP\]\s*$/)
|
|
|
+ {
|
|
|
+ if (/^X\-GROUP\-ALIAS:\s*(.*)\s*$/)
|
|
|
+ {
|
|
|
+ MAILGROUPALIAS=$MATCH1
|
|
|
+ }
|
|
|
+ TOPOSTMASTER=1
|
|
|
+ CONTINUE=1
|
|
|
+ }
|
|
|
+ elsif (/^Subject:\s*\[(SUBSCRIBE|UNSUBSCRIBE)\]\s*$/)
|
|
|
+ {
|
|
|
+ SUBSCRIBE=$MATCH1
|
|
|
+ }
|
|
|
+ TOORGANIZER=($TOORGANIZER || ($MAILGROUP eq $ORGANIZERGROUP))
|
|
|
+ TOMEMBER=($TOMEMBER || ($MAILGROUP eq $MEMBERGROUP))
|
|
|
+ CONTINUE=1
|
|
|
}
|
|
|
}
|
|
|
elsif ($CONTINUE)
|