]> xenbits.xensource.com Git - people/aperard/emesinae.git/commitdiff
test: Insert mails which are CC the list into the test archive.
authorIan Campbell <ian.campbell@citrix.com>
Tue, 2 Jul 2013 15:34:53 +0000 (16:34 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 2 Jul 2013 15:34:53 +0000 (16:34 +0100)
config/examples/test/test.sh

index bc5965b72dc2491016dd948a327718b0e91a5db4..35b99861f078c29f49bbc6e014322452b02473b1 100755 (executable)
@@ -57,7 +57,9 @@ if [ "${mode}" = "test" -o "${mode}" = "both" ] ; then
     echo Inserting control messages
     for i in control.*.test ; do
        asuser ./fakereceive.sh test-control $i
-       #asuser ./fakereceive.sh emesinae-maildrop-address $i
+        if grep -Eq '^(To|Cc): emesinae-test@list\.example\.com' $i ; then
+           asuser ./fakereceive.sh emesinae-maildrop-address $i
+        fi
     done
 
     echo Queue run 2