diff -Nur smeserver-vacation-1.1/root/usr/local/bin/vacation smeserver-vacation-1.1_bz8742/root/usr/local/bin/vacation --- smeserver-vacation-1.1/root/usr/local/bin/vacation 2014-12-24 10:04:10.100000000 +0100 +++ smeserver-vacation-1.1_bz8742/root/usr/local/bin/vacation 2014-12-24 10:06:32.588000000 +0100 @@ -413,30 +413,28 @@ $header = ; $header =~ s/\n\s+/ /g; # Join continuation lines - $* = 1; # Multi line matching within a string - - exit(0) if ($header =~ /^Precedence:\s+(bulk|junk|list)/i); - exit(0) if ($header =~ /^From.*-REQUEST\@/i); - exit(0) if ($header =~ /^Mailing-List:/i); - exit(0) if ($header =~ /^X-Spam-Status:\s+Yes/i); + exit(0) if ($header =~ /^Precedence:\s+(bulk|junk|list)/im); + exit(0) if ($header =~ /^From.*-REQUEST\@/im); + exit(0) if ($header =~ /^Mailing-List:/im); + exit(0) if ($header =~ /^X-Spam-Status:\s+Yes/im); if ($check_to_and_cc) { - ($to) = ($header =~ /To:\s+(.*)/i); - ($cc) = ($header =~ /Cc:\s+(.*)/i); + ($to) = ($header =~ /To:\s+(.*)/im); + ($cc) = ($header =~ /Cc:\s+(.*)/im); $to .= ', ' . $cc if $cc; $to = lc($to); for (@aliases) { - ++$alias_match if $to =~ /\b$_\b/; + ++$alias_match if $to =~ /\b$_\b/im; } exit(0) unless $alias_match; } - ($subject) = ($header =~ /^Subject:\s+(.*)/); - $subject =~ s/\s*$//; # Remove trailing spaces + ($subject) = ($header =~ /^Subject:\s+(.*)/m); + $subject =~ s/\s*$//m; # Remove trailing spaces $subject = "(No subject)" unless $subject; }