Think it's a bug.
otrs/Kernel/System/CheckItem.pm:
--- CheckItem.pm.orig 2008-01-18 13:21:40.897753856 +0300
+++ CheckItem.pm 2008-01-18 13:21:48.478601392 +0300
@@ -61,7 +61,7 @@
}
my $Error = '';
# email address syntax check
- if ($Param{Address} !~
/^(()|([a-zA-Z0-9]+([a-zA-Z0-9_+\.&%-]*[a-zA-Z0-9_'\.-]+)?@([a-zA-Z0-9]+([a-zA-Z0-9\.-]*[a-zA-Z0-9]+)?\.+[a-zA-Z]{2,8}|\[\d+\.\d+\.\d+\.\d+])))$/)
{
+ if ($Param{Address} !~
/^(()|([a-zA-Z0-9_]+([a-zA-Z0-9_+\.&%-]*[a-zA-Z0-9_'\.-]+)?@([a-zA-Z0-9]+([a-zA-Z0-9\.-]*[a-zA-Z0-9]+)?\.+[a-zA-Z]{2,8}|\[\d+\.\d+\.\d+\.\d+])))$/)
{
$Error = "Invalid syntax";
}
--
Best regards ,
Andrey Feldman
Nils Breunese (Lemonbit) ?????:
Cronfy wrote:
OTRS does not want to send email to address where local part starts with
underscore, i.e. '[EMAIL PROTECTED]' - there is invalid syntax it says.
The address is valid. Is this a bug or a feature? How can I make
OTRS pass such email addresses? Thanks in advance.
The regex that checks e-mail addresses is probably not entirely
correct. Some mail regexes only check for @ and whether the part after
the @ has a dot. A completely RFC-compliant regex is pretty large. See
http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html for instance.
Maybe OTRS could use the Email::Address perl module:
http://search.cpan.org/perldoc?Email::Address
I don't know if this check can be turned off in OTRS. Otherwise the
regex needs to be changed. You can file a bug report at
http://bugs.otrs.org/
Nils Breunese.
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support or consulting for your OTRS system?
=> http://www.otrs.com/
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support or consulting for your OTRS system?
=> http://www.otrs.com/