diff options
author | Jesse Vincent <jesse@bestpractical.com> | 2001-01-18 01:18:59 +0300 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2001-01-18 01:18:59 +0300 |
commit | 3e025c3a6c19c3eaf5ee6af17f437918dfd8f624 (patch) | |
tree | adf43d934be545fed9c4b92e474e75950dfef2e4 | |
parent | abeba6dfe0996e1c38873fdb288dd411c2478343 (diff) |
Headers in incoming mail are now parsed case insensitively.rt-1.0.7
Version is now 1.0.7
-rwxr-xr-x | Makefile | 2 | ||||
-rwxr-xr-x | NEWS | 5 | ||||
-rwxr-xr-x | lib/rt/ui/mail/manipulate.pm | 12 |
3 files changed, 12 insertions, 7 deletions
@@ -11,7 +11,7 @@ RTGROUP = rt RT_VERSION_MAJOR = 1 RT_VERSION_MINOR = 0 -RT_VERSION_PATCH = 6 +RT_VERSION_PATCH = 7 RT_VERSION = $(RT_VERSION_MAJOR).$(RT_VERSION_MINOR).$(RT_VERSION_PATCH) @@ -3,6 +3,11 @@ Jan 8 2000 Fixed setting due dates via the web ui, thanks to Thomas Koester +Dec 11 2000 +----------- + +Mail headers are now parsed case insensitively, as they should be. + Dec 1 2000 ---------- diff --git a/lib/rt/ui/mail/manipulate.pm b/lib/rt/ui/mail/manipulate.pm index 5525266299..8b26fc9524 100755 --- a/lib/rt/ui/mail/manipulate.pm +++ b/lib/rt/ui/mail/manipulate.pm @@ -260,26 +260,26 @@ sub parse_headers { $subject =~ s/\($rt::req[$serial_num]{'queue_id'}\)//i; } - elsif (($line =~ /^Subject: (.*)/s) and (!$subject)){ + elsif (($line =~ /^Subject: (.*)/si) and (!$subject)){ $subject=$1; } - elsif (($line =~ /^Reply-To: (.*)/s)) { + elsif (($line =~ /^Reply-To: (.*)/si)) { $replyto = $1; } - elsif ($line =~ /^From: (.*)/s) { + elsif ($line =~ /^From: (.*)/si) { $from = $1; } - elsif ($line =~ /^Sender: (.*)/s){ + elsif ($line =~ /^Sender: (.*)/si){ $sender = $1; } - elsif ($line =~ /^Date: (.*)/s) { + elsif ($line =~ /^Date: (.*)/si) { $time_in_text = $1; } - elsif ($line =~ /^Precedence: (.*)/s) { + elsif ($line =~ /^Precedence: (.*)/si) { $precedence = $1; } |