Hello Pascal.
From what I understand, this regex validates either:
- A server name with brackets, so yours would be "[iwiki.cp2i.i2]" - An IP address (4 groups of 1 to 3 digits, dot separated) So maybe it will work if you add brackets to your server name? And yes, I find it a bit strange, me too. :-) Hope it helps, Guillaume Fenollar 2014-03-04 11:28 GMT+01:00 Pascal BASTIEN <[email protected]>:
Hello
I think there are a wrong regexp in sendmail function in templates/shareinline.vm (xwiki 5.4.1)
#if ($serverName.matches('\[.*\]|(\d{1,3}+\.){3}+\d{1,3}+')) #if ("$!{xwiki.getXWikiPreference('admin_email')}" != '') #set ($sender = "$!{escapetool.q($sender)} <$!{xwiki.getXWikiPreference('admin_email')}>") #else #set ($sender = "$!{escapetool.q($sender)} <[email protected]>") #end #else #set ($sender = "$!{escapetool.q($sender)} <noreply@$!{serverName}>") #end
I filled admin_email and my my nameserver is "iwiki.cp2i.i2" but i tried with "iwiki.cp2i.fr" to.
I don't understand very well the regexp (writing a regexp is simpler to read it) but when I send a mail with xwiki I felt in "#set ($sender = "$!{escapetool.q($sender)} <noreply@$!{serverName}>")" condition...
Pascal B _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users