phax / phase4

phase4 - AS4 client and server for integration into existing systems. Specific support for Peppol and CEF eDelivery built-in.
Apache License 2.0
154 stars 47 forks source link

Make the Message ID suffix customizable #50

Closed phax closed 3 years ago

phax commented 3 years ago

By default all the message IDs end with "@phase4". This should be extensible, so that @phase4.anyone" is possible as a suffix. It needs to be ensured, that the rules of RFC 822 are maintained

phax commented 3 years ago
addr-spec   =  local-part "@" domain        ; global address

     local-part  =  word *("." word)             ; uninterpreted
                                                 ; case-preserved

     domain      =  sub-domain *("." sub-domain)

     sub-domain  =  domain-ref / domain-literal

     domain-ref  =  atom                         ; symbolic reference

     atom        =  1*<any CHAR except specials, SPACE and CTLs>

     specials    =  "(" / ")" / "<" / ">" / "@"  ; Must be in quoted-
                 /  "," / ";" / ":" / "\" / <">  ;  string, to use
                 /  "." / "[" / "]"              ;  within a word.
phax commented 3 years ago

Fixed in 1.1.1 - MessageHelperMethods.setCustomMessageIDSuffix(String)