Detect majordomo messages
authorJamie Cameron <jcameron@webmin.com>
Mon, 3 Jan 2011 01:39:32 +0000 (17:39 -0800)
committerJamie Cameron <jcameron@webmin.com>
Mon, 3 Jan 2011 01:39:32 +0000 (17:39 -0800)
sendmail/autoreply.pl

index d67b684..2e34162 100755 (executable)
@@ -65,7 +65,9 @@ if ($header{'x-webmin-autoreply'} ||
 if ($header{'x-mailing-list'} ||
     $header{'list-id'} ||
     $header{'precedence'} =~ /junk|bulk|list/i ||
-    $header{'to'} =~ /Multiple recipients of/i) {
+    $header{'to'} =~ /Multiple recipients of/i ||
+    $header{'from'} =~ /majordomo/i ||
+    $fromline =~ /majordomo/i) {
        # Do nothing if post is from a mailing list
        exit 0;
        }