Subversion Repositories javautils

Compare Revisions

Regard whitespace Rev 23 → Rev 24

/ViaThinkSoft Java Utils/src/de/viathinksoft/utils/mail/address/EMailPreprocessor.java
File deleted
/ViaThinkSoft Java Utils/src/de/viathinksoft/utils/mail/address/EMailAddress.java
312,4 → 312,20
}
return (!IDN.toUnicode(str).equals(str));
}
 
/**
* This function "preproceses" an email address. Therefore following steps
* will be performed: 1. The email address will be trimmed (in case of user
* inputs) 2. E-Mail-Addresses with internationalized domain names will be
* converted into ASCII compatible punycode (the local part will be left as
* it is!)
*
* @author Daniel Marschall
*
*/
public static String preprocess(String eMailAddress) {
EMailAddress email = new EMailAddress(eMailAddress);
 
return email.getMailAddressPunycodedDomain();
}
}
/ViaThinkSoft Java Utils/src/de/viathinksoft/utils/mail/syntaxchecker/MailSyntaxChecker.java
14,6 → 14,7
* @version 0.1
*
*/
@Deprecated
public class MailSyntaxChecker {
 
private static final String REGEX_IP = "\\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b";