int size = PropUtil.getIntSessionProperty(session, "mail." + name + ".connectionpoolsize", -1); if (size > 0) { int connectionPoolTimeout = PropUtil.getIntSessionProperty(session, "mail." + name + ".connectionpooltimeout", -1); if (connectionPoolTimeout > 0) { int serverTimeout = PropUtil.getIntSessionProperty(session, "mail." + name + ".servertimeout", -1); if (serverTimeout > 0) { int pruning = PropUtil.getIntSessionProperty(session, "mail." + name + ".pruninginterval", -1); if (pruning > 0) {
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.getIntSessionProperty(session, "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; }
logger.config("mail.imap.partialfetch: false"); } else { blksize = PropUtil.getIntSessionProperty(session, "mail." + name +".fetchsize", 1024 * 16); if (logger.isLoggable(Level.CONFIG)) logger.config("mail.imap.ignorebodystructuresize: " + ignoreSize); statusCacheTimeout = PropUtil.getIntSessionProperty(session, "mail." + name + ".statuscachetimeout", 1000); if (logger.isLoggable(Level.CONFIG)) statusCacheTimeout); appendBufferSize = PropUtil.getIntSessionProperty(session, "mail." + name + ".appendbuffersize", -1); if (logger.isLoggable(Level.CONFIG)) logger.config("mail.imap.appendbuffersize: " + appendBufferSize); minIdleTime = PropUtil.getIntSessionProperty(session, "mail." + name + ".minidletime", 10); if (logger.isLoggable(Level.CONFIG))
port = pport; } else { port = PropUtil.getIntSessionProperty(session, "mail." + name + ".port", port);
int size = PropUtil.getIntSessionProperty(session, "mail." + name + ".connectionpoolsize", -1); if (size > 0) { int connectionPoolTimeout = PropUtil.getIntSessionProperty(session, "mail." + name + ".connectionpooltimeout", -1); if (connectionPoolTimeout > 0) { int serverTimeout = PropUtil.getIntSessionProperty(session, "mail." + name + ".servertimeout", -1); if (serverTimeout > 0) { int pruning = PropUtil.getIntSessionProperty(session, "mail." + name + ".pruninginterval", -1); if (pruning > 0) {
port = PropUtil.getIntSessionProperty(session, "mail." + name + ".port", -1); if (port == -1)
out.println("DEBUG: mail.imap.partialfetch: false"); } else { blksize = PropUtil.getIntSessionProperty(session, "mail." + name +".fetchsize", 1024 * 16); if (debug) statusCacheTimeout = PropUtil.getIntSessionProperty(session, "mail." + name + ".statuscachetimeout", 1000); if (debug) statusCacheTimeout); appendBufferSize = PropUtil.getIntSessionProperty(session, "mail." + name + ".appendbuffersize", -1); if (debug) appendBufferSize); minIdleTime = PropUtil.getIntSessionProperty(session, "mail." + name + ".minidletime", 10); if (debug)
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.getIntSessionProperty(session, "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 (IOException ioex) { throw new MessagingException("Connect failed", ioex); } return true; }
port = pport; } else { port = PropUtil.getIntSessionProperty(session, "mail." + name + ".port", port);
port = PropUtil.getIntSessionProperty(session, "mail." + name + ".port", -1); if (port == -1)