Standard getter for the ignoreEMail.

@param serverName the server name.
@return the e-mail address to ignore CommentAdded events from.
962054
public String getIgnoreEMail(String serverName) {
        if (serverName != null) {
            return ignoreEMails.get(serverName);
        } else {
            return null;
        }
    }
9836
protected void setServerName(String serverName) {

        if (CmsStringUtil.isEmpty(serverName) || (WILDCARD.equals(serverName))) {
            m_serverName = WILDCARD;
        } else {
            m_serverName = serverName.trim();
        }
    }
133646
public InetAddress
getAddress() {
	try {
		if (name == null)
			return InetAddress.getByAddress(address);
		else
			return InetAddress.getByAddress(name.toString(),
							address);
	} catch (UnknownHostException e) {
		return null;
	}
}
692605
public static String getLocalHostName() throws UnknownHostException {
        String preffered = System.getProperty(PREFERED_ADDRESS_PROPERTY_NAME);
        return chooseAddress(preffered).getHostName();
    }
764702
private boolean ignoreComment( ) throws IOException
    {
    	StringBuffer comment = new StringBuffer();
        int prev = 0;
        int character = 0;
        boolean endFound = false;
        boolean eofFound = false;
        while( endFound == false )
        {
            prev = character;
            character = readCharacter();
            if (character != -1) 
            {
                comment.append( (char) character );
                if ( character == '>' && prev =='%' )
                {
                   String fullComment = comment.toString(); 
                   if (fullComment.endsWith("--%>"))
                   {
                     endFound = true;
                   }
                }
            }
            else 
            {
              eofFound = endFound = true;
            }
        } // end "while"
        return eofFound;
    }
755145
@NonNull
    protected EditText getEmailPrompt(@Nullable CharSequence savedEmail) {
        final EditText userEmailView = new EditText(this);
        userEmailView.setSingleLine();
        userEmailView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);

        if (savedEmail != null) {
            userEmailView.setText(savedEmail);
        } else {
            final SharedPreferences prefs = sharedPreferencesFactory.create();
            userEmailView.setText(prefs.getString(ACRA.PREF_USER_EMAIL_ADDRESS, ""));
        }
        return userEmailView;
    }
1173252
public static InetAddress
    getByName(String name) throws UnknownHostException {
        try {
            return getByAddress(name);
        } catch (UnknownHostException e) {
            Record[] records = lookupHostName(name);
            return addrFromRecord(name, records[0]);
        }
    }
1244195
@JsonIgnore
    public Optional<Email> getPrimaryOrFirstEmail() {
        for (Email email : emails) {
            if (email.isPrimary()) {
                return Optional.of(email);
            }
        }

        if (emails.size() > 0) {
            return Optional.of(getEmails().get(0));
        }
        return Optional.absent();
    }
581512
@Programmatic
    public ApplicationUser findByEmailAddressCached(final String emailAddress) {
        return queryResultsCache.execute(new Callable<ApplicationUser>() {
            @Override public ApplicationUser call() throws Exception {
                return findByEmailAddress(emailAddress);
            }
        }, ApplicationUserRepository.class, "findByEmailAddressCached", emailAddress);
    }
359973
public static String getLocalHostName() throws SocketException, UnknownHostException {
        try {
            final String canonicalHostName = InetAddress.getLocalHost().getCanonicalHostName();
            if (isFQDN(canonicalHostName)) {
                return canonicalHostName;
            } else {
                return InetAddress.getLocalHost().getHostName();
            }
        } catch (UnknownHostException e) {
            NetworkInterface networkInterface = NetworkInterface.getNetworkInterfaces().nextElement();
            if (networkInterface == null)
                throw e;
            InetAddress ipAddress = networkInterface.getInetAddresses().nextElement();
            if (ipAddress == null)
                throw e;
            return ipAddress.getHostAddress();
        }
    }
218095
private ServerAddress createServerAddress(String group) {
		final Setting setting = checkSetting();

		if (group == null) {
			group = StrUtil.EMPTY;
		}

		final String tmpHost = setting.getByGroup("host", group);
		if (StrUtil.isBlank(tmpHost)) {
			throw new NotInitedException("Host name is empy of group: {}", group);
		}

		final int defaultPort = setting.getInt("port", group, 27017);
		return new ServerAddress(NetUtil.buildInetSocketAddress(tmpHost, defaultPort));
	}
487100
@Override
	public UpdateUser exclude(String... varnames) {
	    excludedVars.addAll(Arrays.asList(varnames));
	    return this;
	}
343084
public MailMessage defaultFrom(String email, String name) {

		if (StringUtils.isNullOrEmptyTrimmed(fromEmail)) {
			from(email, name);
		}

		if (!StringUtils.isNullOrEmptyTrimmed(email) &&
		    StringUtils.equals(fromEmail, email.trim(), true) &&
		    StringUtils.isNullOrEmptyTrimmed(fromName)) {
			from(email, name);
		}

		return this;
	}
1356033
private DnsServerAddressStream getNameServersFromCache(String hostname) {
        int len = hostname.length();

        if (len == 0) {
            // We never cache for root servers.
            return null;
        }

        // We always store in the cache with a trailing '.'.
        if (hostname.charAt(len - 1) != '.') {
            hostname += ".";
        }

        int idx = hostname.indexOf('.');
        if (idx == hostname.length() - 1) {
            // We are not interested in handling '.' as we should never serve the root servers from cache.
            return null;
        }

        // We start from the closed match and then move down.
        for (;;) {
            // Skip '.' as well.
            hostname = hostname.substring(idx + 1);

            int idx2 = hostname.indexOf('.');
            if (idx2 <= 0 || idx2 == hostname.length() - 1) {
                // We are not interested in handling '.TLD.' as we should never serve the root servers from cache.
                return null;
            }
            idx = idx2;

            DnsServerAddressStream entries = authoritativeDnsServerCache().get(hostname);
            if (entries != null) {
                // The returned List may contain unresolved InetSocketAddress instances that will be
                // resolved on the fly in query(....).
                return entries;
            }
        }
    }
954216
public String getMailServerIp() {
		Settings settings = getSettings();
		if (settings.getMailServer() == null) {
			return "127.0.0.1";
		}
		
		return settings.getMailServer().getIp();
	}
852460
public JsonResponse getEmail(String email) throws IOException {
        Email emailObj = new Email();
        emailObj.setEmail(email);
        return apiGet(emailObj);
    }
102589
public OvhModerator domain_mailingList_name_moderator_email_GET(String domain, String name, String email) throws IOException {
		String qPath = "/email/domain/{domain}/mailingList/{name}/moderator/{email}";
		StringBuilder sb = path(qPath, domain, name, email);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhModerator.class);
	}