func EmailToAddr(email string) string {
	if config.Bridge.Server.SMTP.Organization != "" {
		return strings.Replace(email, config.Bridge.Server.SMTP.Domain, config.Bridge.Server.SMTP.Organization+"!", -1)
	}

	address := strings.Replace(email, "@"+config.Bridge.Server.SMTP.Domain, "!", -1)
	address = strings.Replace(address, "_", "@", -1)
	return address
}
// EmailToAddr will translate a domain on the DefaultDomain to an address string
EmailToAddr will translate a domain on the DefaultDomain to an address string
// EmailToAddr will translate a domain on the DefaultDomain to an address string
func EmailToAddr(email string) string {
	if config.Bridge.Server.SMTP.Organization != "" {
		return strings.Replace(email, config.Bridge.Server.SMTP.Domain, config.Bridge.Server.SMTP.Organization+"!", -1)
	}
	address := strings.Replace(email, "@"+config.Bridge.Server.SMTP.Domain, "!", -1)
	address = strings.Replace(address, "_", "@", -1)
	return address
}
func EmailToAddr ( email string ) string { if config . Bridge . Server . SMTP . Organization != " " { return strings . Replace ( email , config . Bridge . Server . SMTP . Domain , config . Bridge . Server . SMTP . Organization + " " , - 1 ) } address := strings . Replace ( email , " " + config . Bridge . Server . SMTP . Domain , " " , - 1 ) address = strings . Replace ( address , " " , " " , - 1 ) return address }
EmailToAddr will translate a domain on the DefaultDomain to an address string
EmailToAddr will translate a domain on the DefaultDomain to an address string