/** * @see org.apache.james.protocols.smtp.SMTPSession#useAddressBracketsEnforcement() */ public boolean useAddressBracketsEnforcement() { return theConfigData.useAddressBracketsEnforcement(); }
if (session.getConfiguration().useAddressBracketsEnforcement() && (!recipient.startsWith("<") || !recipient.endsWith(">"))) { LOGGER.info("Error parsing recipient address: Address did not start and end with < >{}", getContext(session, null, recipient)); if (session.getConfiguration().useAddressBracketsEnforcement() || (recipient.startsWith("<") && recipient.endsWith(">"))) { recipient = recipient.substring(1, recipient.length() - 1);
if (session.getConfiguration().useAddressBracketsEnforcement() && (!sender.startsWith("<") || !sender.endsWith(">"))) { LOGGER.info("Error parsing sender address: {}: did not start and end with < >", sender);