int level = PropUtil.getIntProperty(props, prefix + ".compress.level", Deflater.DEFAULT_COMPRESSION); int strategy = PropUtil.getIntProperty(props, prefix + ".compress.strategy", Deflater.DEFAULT_STRATEGY);
if (props == null) props = new Properties(); // empty int cto = PropUtil.getIntProperty(props, prefix + ".connectiontimeout", -1); Socket socket = null; if (localaddrstr != null) localaddr = InetAddress.getByName(localaddrstr); int localport = PropUtil.getIntProperty(props, prefix + ".localport", 0); int to = PropUtil.getIntProperty(props, prefix + ".timeout", -1); try { sfPort = PropUtil.getIntProperty(props, prefix + sfPortName, -1);
if (props == null) props = new Properties(); // empty int cto = PropUtil.getIntProperty(props, prefix + ".connectiontimeout", -1); Socket socket = null; if (localaddrstr != null) localaddr = InetAddress.getByName(localaddrstr); int localport = PropUtil.getIntProperty(props, prefix + ".localport", 0); int to = PropUtil.getIntProperty(props, prefix + ".timeout", -1); try { sfPort = PropUtil.getIntProperty(props, prefix + sfPortName, -1);
@Override String getInitialResponse(String host, String authzid, String user, String passwd) throws MessagingException, IOException { ntlm = new Ntlm(getNTLMDomain(), getLocalHost(), user, passwd, logger); flags = PropUtil.getIntProperty( session.getProperties(), "mail." + name + ".auth.ntlm.flags", 0); String type1 = ntlm.generateType1Msg(flags); return type1; }
String getInitialResponse(String host, String authzid, String user, String passwd) throws MessagingException, IOException { ntlm = new Ntlm(getNTLMDomain(), getLocalHost(), user, passwd, logger); flags = PropUtil.getIntProperty( session.getProperties(), "mail." + name + ".auth.ntlm.flags", 0); String type1 = ntlm.generateType1Msg(flags); return type1; }
socksPort = PropUtil.getIntProperty(props, prefix + ".socks.port", socksPort); err = "Using SOCKS host, port: " + socksHost + ", " + socksPort; socket.setSoTimeout(to); int writeTimeout = PropUtil.getIntProperty(props, prefix + ".writetimeout", -1); if (writeTimeout != -1) { // wrap original
proxyPort = PropUtil.getIntProperty(props, prefix + ".proxy.port", proxyPort); err = "Using web proxy host, port: " + proxyHost + ", " + proxyPort; socksPort = PropUtil.getIntProperty(props, prefix + ".socks.port", socksPort); err = "Using SOCKS host, port: " + socksHost + ", " + socksPort; socket.setSoTimeout(to); int writeTimeout = PropUtil.getIntProperty(props, prefix + ".writetimeout", -1); if (writeTimeout != -1) { // wrap original
int level = PropUtil.getIntProperty(props, prefix + ".compress.level", Deflater.DEFAULT_COMPRESSION); int strategy = PropUtil.getIntProperty(props, prefix + ".compress.strategy", Deflater.DEFAULT_STRATEGY);
int size = PropUtil.getIntProperty(props, "mail." + name + ".connectionpoolsize", -1); if (size > 0) { int connectionPoolTimeout = PropUtil.getIntProperty(props, "mail." + name + ".connectionpooltimeout", -1); if (connectionPoolTimeout > 0) { int serverTimeout = PropUtil.getIntProperty(props, "mail." + name + ".servertimeout", -1); if (serverTimeout > 0) { int pruning = PropUtil.getIntProperty(props, "mail." + name + ".pruninginterval", -1); if (pruning > 0) {
@Override protected synchronized boolean protocolConnect(String host, int portNum, String user, String passwd) throws MessagingException { // check for non-null values of host, password, user if (host == null || passwd == null || user == null) return false; // if port is not specified, set it to value of mail.pop3.port // property if it exists, otherwise default to 110 if (portNum == -1) portNum = PropUtil.getIntProperty(session.getProperties(), "mail." + name + ".port", -1); if (portNum == -1) portNum = defaultPort; this.host = host; this.portNum = portNum; this.user = user; this.passwd = passwd; try { port = getPort(null); } catch (EOFException eex) { throw new AuthenticationFailedException(eex.getMessage()); } catch (SocketConnectException scex) { throw new MailConnectException(scex); } catch (IOException ioex) { throw new MessagingException("Connect failed", ioex); } return true; }
int flags = PropUtil.getIntProperty(props, "mail." + name + ".auth.ntlm.flags", 0); String domain = props.getProperty(
int flags = PropUtil.getIntProperty(props, "mail." + name + ".auth.ntlm.flags", 0); String domain = props.getProperty(
logger.config("mail.imap.partialfetch: false"); } else { blksize = PropUtil.getIntProperty(props, "mail." + name +".fetchsize", 1024 * 16); if (logger.isLoggable(Level.CONFIG)) logger.config("mail.imap.ignorebodystructuresize: " + ignoreSize); statusCacheTimeout = PropUtil.getIntProperty(props, "mail." + name + ".statuscachetimeout", 1000); if (logger.isLoggable(Level.CONFIG)) statusCacheTimeout); appendBufferSize = PropUtil.getIntProperty(props, "mail." + name + ".appendbuffersize", -1); if (logger.isLoggable(Level.CONFIG)) logger.config("mail.imap.appendbuffersize: " + appendBufferSize); minIdleTime = PropUtil.getIntProperty(props, "mail." + name + ".minidletime", 10); if (logger.isLoggable(Level.CONFIG))
logger.config("allow UTF-8"); chunkSize = PropUtil.getIntProperty(props, "mail." + name + ".chunksize", -1); if (chunkSize > 0 && logger.isLoggable(Level.CONFIG))
port = pport; } else { port = PropUtil.getIntProperty(session.getProperties(), "mail." + name + ".port", port);
port = PropUtil.getIntProperty(props, "mail." + name + ".port", -1); if (port == -1)
@Override String getInitialResponse(String host, String authzid, String user, String passwd) throws MessagingException, IOException { ntlm = new Ntlm(getNTLMDomain(), getLocalHost(), user, passwd, logger); flags = PropUtil.getIntProperty( session.getProperties(), "mail." + name + ".auth.ntlm.flags", 0); String type1 = ntlm.generateType1Msg(flags); return type1; }
@Override String getInitialResponse(String host, String authzid, String user, String passwd) throws MessagingException, IOException { ntlm = new Ntlm(getNTLMDomain(), getLocalHost(), user, passwd, logger); flags = PropUtil.getIntProperty( session.getProperties(), "mail." + name + ".auth.ntlm.flags", 0); String type1 = ntlm.generateType1Msg(flags); return type1; }
String getInitialResponse(String host, String authzid, String user, String passwd) throws MessagingException, IOException { ntlm = new Ntlm(getNTLMDomain(), getLocalHost(), user, passwd, debug ? out : null); flags = PropUtil.getIntProperty( session.getProperties(), "mail." + name + ".auth.ntlm.flags", 0); String type1 = ntlm.generateType1Msg(flags); return type1; }
@Override String getInitialResponse(String host, String authzid, String user, String passwd) throws MessagingException, IOException { ntlm = new Ntlm(getNTLMDomain(), getLocalHost(), user, passwd, logger); flags = PropUtil.getIntProperty( session.getProperties(), "mail." + name + ".auth.ntlm.flags", 0); String type1 = ntlm.generateType1Msg(flags); return type1; }