$ in mail address causes java.lang.IllegalArgumentException: Illegal group 
reference 
-------------------------------------------------------------------------------------

                 Key: JSPF-71
                 URL: https://issues.apache.org/jira/browse/JSPF-71
             Project: JAMES jSPF
          Issue Type: Bug
    Affects Versions: 0.9.6
            Reporter: Frank Stolle


The following code raises an unexpected exception:

                String heloname = "host-64-234-102-235.nctv.com"; // helo_name
                String ip = "64.234.102.235"; // client_address
                String from = "patsy{[email protected]"; // sender
                DefaultSPF spf = new DefaultSPF();
                SPFResult result = spf.checkSPF(ip, from, heloname);

java.lang.IllegalArgumentException: Illegal group reference
        at java.util.regex.Matcher.appendReplacement(Matcher.java:706)
        at 
org.apache.james.jspf.core.MacroExpand.expandMacroString(MacroExpand.java:280)
        at 
org.apache.james.jspf.core.MacroExpand.expandDomain(MacroExpand.java:231)
        at org.apache.james.jspf.core.MacroExpand.expand(MacroExpand.java:178)
        at 
org.apache.james.jspf.core.MacroExpand.checkExpand(MacroExpand.java:162)
        at 
org.apache.james.jspf.terms.ExistsMechanism.checkSPF(ExistsMechanism.java:74)
        at 
org.apache.james.jspf.executor.SynchronousSPFExecutor.execute(SynchronousSPFExecutor.java:54)
        at org.apache.james.jspf.impl.SPF.checkSPF(SPF.java:332)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to