/** * If a SELECT succeeds, but indicates that the folder is * READ-ONLY, and the user asked to open the folder READ_WRITE, * do we allow the open to succeed? */ boolean allowReadOnlySelect() { return PropUtil.getBooleanSessionProperty(session, "mail." + name + ".allowreadonlyselect", false); }
/** * Set the strict flag based on property. */ private void initStrict() { if (session != null) strict = PropUtil.getBooleanSessionProperty(session, "mail.mime.address.strict", true); }
/** * Get the value of a boolean property. * Print out the value if logging is enabled. */ private final synchronized boolean getBoolProp(String prop) { prop = "mail." + name + "." + prop; boolean val = PropUtil.getBooleanSessionProperty(session, prop, false); if (logger.isLoggable(Level.CONFIG)) logger.config(prop + ": " + val); return val; }
private void initStreams() throws IOException { boolean quote = PropUtil.getBooleanSessionProperty(session, "mail.debug.quote", false); traceInput = new TraceInputStream(serverSocket.getInputStream(), traceLogger); traceInput.setQuote(quote); traceOutput = new TraceOutputStream(serverSocket.getOutputStream(), traceLogger); traceOutput.setQuote(quote); serverOutput = new BufferedOutputStream(traceOutput); serverInput = new BufferedInputStream(traceInput); lineInputStream = new LineInputStream(serverInput); }
logger = new MailLogger(this.getClass(), "DEBUG SMTP", session); traceLogger = logger.getSubLogger("protocol", null); noauthdebug = !PropUtil.getBooleanSessionProperty(session, "mail.debug.auth", false); debugusername = PropUtil.getBooleanSessionProperty(session, "mail.debug.auth.username", true); debugpassword = PropUtil.getBooleanSessionProperty(session, "mail.debug.auth.password", false); if (urlname != null) this.name = name; if (!isSSL) isSSL = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".ssl.enable", false); if (isSSL) quitWait = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".quitwait", true); reportSuccess = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".reportsuccess", false); useStartTLS = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".starttls.enable", false); requireStartTLS = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".starttls.required", false); useRset = PropUtil.getBooleanSessionProperty(session,
this.name = name; if (!isSSL) isSSL = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".ssl.enable", false); if (isSSL) debugusername = PropUtil.getBooleanSessionProperty(session, "mail.debug.auth.username", true); debugpassword = PropUtil.getBooleanSessionProperty(session, "mail.debug.auth.password", false); logger = new MailLogger(this.getClass(), "DEBUG " + name.toUpperCase(Locale.ENGLISH), session); boolean partialFetch = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".partialfetch", true); if (!partialFetch) { ignoreSize = PropUtil.getBooleanSessionProperty(session, "mail." + name +".ignorebodystructuresize", false); if (logger.isLoggable(Level.CONFIG)) enableStartTLS = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".starttls.enable", false); if (enableStartTLS) requireStartTLS = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".starttls.required", false); if (requireStartTLS)
String dprop = "mail." + name + ".auth." + m.toLowerCase(Locale.ENGLISH) + ".disable"; boolean disabled = PropUtil.getBooleanSessionProperty( session, dprop, m.equals("XOAUTH2")); if (disabled) {
isSSL = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".ssl.enable", false); if (isSSL)
sendPartial = ((SMTPMessage)message).getSendPartial(); if (!sendPartial) sendPartial = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".sendpartial", false); if (sendPartial)
/** * Set the strict flag based on property. */ private void initStrict() { if (session != null) strict = PropUtil.getBooleanSessionProperty(session, "mail.mime.address.strict", true); }
/** * If a SELECT succeeds, but indicates that the folder is * READ-ONLY, and the user asked to open the folder READ_WRITE, * do we allow the open to succeed? */ boolean allowReadOnlySelect() { return PropUtil.getBooleanSessionProperty(session, "mail." + name + ".allowreadonlyselect", false); }
ConnectionPool(String name, MailLogger plogger, Session session) { lastTimePruned = System.currentTimeMillis(); boolean debug = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".connectionpool.debug", false); logger = plogger.getSubLogger("connectionpool", PropUtil.getBooleanSessionProperty(session, "mail." + name + ".separatestoreconnection", false); if (separateStoreConnection)
String dprop = "mail." + name + ".auth." + m.toLowerCase(Locale.ENGLISH) + ".disable"; boolean disabled = PropUtil.getBooleanSessionProperty( session, dprop, !a.enabled()); if (disabled) {
/** * Get the value of a boolean property. * Print out the value if debug is set. */ private final synchronized boolean getBoolProp(String prop) { prop = "mail." + name + "." + prop; boolean val = PropUtil.getBooleanSessionProperty(session, prop, false); if (debug) out.println("DEBUG POP3: " + prop + ": " + val); return val; }
boolean replyallcc = false; if (session != null) replyallcc = PropUtil.getBooleanSessionProperty(session, "mail.replyallcc", false);
throws MessagingException { boolean useAuth = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".auth", false); boolean useEhlo = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".ehlo", true); if (logger.isLoggable(Level.FINE))
String name, boolean isSSL) { super(session, urlname); noauthdebug = debug && !PropUtil.getBooleanSessionProperty(session, "mail.debug.auth", false); if (urlname != null) this.name = name; if (!isSSL) isSSL = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".ssl.enable", false); if (isSSL) quitWait = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".quitwait", true); reportSuccess = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".reportsuccess", false); useStartTLS = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".starttls.enable", false); requireStartTLS = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".starttls.required", false); useRset = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".userset", false); noopStrict = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".noop.strict", true);
out = System.out; debug = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".connectionpool.debug", false); PropUtil.getBooleanSessionProperty(session, "mail." + name + ".separatestoreconnection", false); if (debug && separateStoreConnection)
private void initStreams() throws IOException { PrintStream out = session.getDebugOut(); boolean quote = PropUtil.getBooleanSessionProperty(session, "mail.debug.quote", false); traceInput = new TraceInputStream(serverSocket.getInputStream(), out); traceInput.setTrace(debug); traceInput.setQuote(quote); traceOutput = new TraceOutputStream(serverSocket.getOutputStream(), out); traceOutput.setTrace(debug); traceOutput.setQuote(quote); serverOutput = new BufferedOutputStream(traceOutput); serverInput = new BufferedInputStream(traceInput); lineInputStream = new LineInputStream(serverInput); }
use8bit = ((SMTPMessage)message).getAllow8bitMIME(); if (!use8bit) use8bit = PropUtil.getBooleanSessionProperty(session, "mail." + name + ".allow8bitmime", false); if (logger.isLoggable(Level.FINE))