Author: noel Date: Sun Sep 3 20:03:02 2006 New Revision: 439911 URL: http://svn.apache.org/viewvc?view=rev&rev=439911 Log: No code change. Just fixing the format before fixing the code.
Modified: james/server/branches/v2.3/src/java/org/apache/james/mailrepository/JDBCSpoolRepository.java Modified: james/server/branches/v2.3/src/java/org/apache/james/mailrepository/JDBCSpoolRepository.java URL: http://svn.apache.org/viewvc/james/server/branches/v2.3/src/java/org/apache/james/mailrepository/JDBCSpoolRepository.java?view=diff&rev=439911&r1=439910&r2=439911 ============================================================================== --- james/server/branches/v2.3/src/java/org/apache/james/mailrepository/JDBCSpoolRepository.java (original) +++ james/server/branches/v2.3/src/java/org/apache/james/mailrepository/JDBCSpoolRepository.java Sun Sep 3 20:03:02 2006 @@ -141,20 +141,20 @@ public boolean accept (String key, String state, long lastUpdated, String errorMessage) { if (Mail.ERROR.equals(state)) { - //if it's an error message, test the time + //if it's an error message, test the time long processingTime = delay + lastUpdated; - if (processingTime < System.currentTimeMillis()) { - //It's time to process + if (processingTime < System.currentTimeMillis()) { + //It's time to process return true; - } else { - //We don't process this, but we want to possibly reduce the amount of time - // we sleep so we wake when this message is ready. - if (sleepUntil == 0 || processingTime < sleepUntil) { - sleepUntil = processingTime; - } + } else { + //We don't process this, but we want to possibly reduce the amount of time + // we sleep so we wake when this message is ready. + if (sleepUntil == 0 || processingTime < sleepUntil) { + sleepUntil = processingTime; + } return false; - } - } else { + } + } else { return true; } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]