Browse Source

strip quotes around alias if any

Pi 1 year ago
parent
commit
bbe6571a35
2 changed files with 2 additions and 2 deletions
  1. 1 1
      filters/cropswap-members@shandan.one
  2. 1 1
      filters/cropswap@shandan.one

+ 1 - 1
filters/cropswap-members@shandan.one

@@ -1,7 +1,7 @@
 MEMBERGROUPREGEX=escape($MEMBERGROUP)
 foreach (tolower $ADDR) =~ /^$MEMBERGROUPREGEX$/
 {
-   foreach /^(To|Cc):\s+(.*)\s+\<$MEMBERGROUPREGEX\>$/
+   foreach /^(To|Cc):[ \f\n\r\t'"]*(.*?)[ \f\n\r\t'"]*\<$MEMBERGROUPREGEX\>$/
    {
       TOALIAS=$MATCH2
    }

+ 1 - 1
filters/cropswap@shandan.one

@@ -1,7 +1,7 @@
 ORGANIZERGROUPREGEX=escape($ORGANIZERGROUP)
 foreach (tolower $ADDR) =~ /^$ORGANIZERGROUPREGEX$/
 {
-   foreach /^(To|Cc):\s+(.*)\s+\<$ORGANIZERGROUPREGEX\>$/
+   foreach /^(To|Cc):[ \f\n\r\t'"]*(.*?)[ \f\n\r\t'"]*\<$ORGANIZERGROUPREGEX\>$/
    {
       TOALIAS=$MATCH2
    }