You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2017/11/30 02:39:25 UTC
[9/9] james-project git commit: JAMES-2240 remove useless commented
code blocks
JAMES-2240 remove useless commented code blocks
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/4135794a
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/4135794a
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/4135794a
Branch: refs/heads/master
Commit: 4135794a1d705903432fce47491d55b544050715
Parents: 5f07eee
Author: Matthieu Baechler <ma...@apache.org>
Authored: Wed Nov 29 11:52:56 2017 +0100
Committer: benwa <bt...@linagora.com>
Committed: Thu Nov 30 09:37:29 2017 +0700
----------------------------------------------------------------------
.../mailrepository/file/MBoxMailRepository.java | 27 --------------------
1 file changed, 27 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/4135794a/server/data/data-file/src/main/java/org/apache/james/mailrepository/file/MBoxMailRepository.java
----------------------------------------------------------------------
diff --git a/server/data/data-file/src/main/java/org/apache/james/mailrepository/file/MBoxMailRepository.java b/server/data/data-file/src/main/java/org/apache/james/mailrepository/file/MBoxMailRepository.java
index 9e1ca41..b9c3f02 100755
--- a/server/data/data-file/src/main/java/org/apache/james/mailrepository/file/MBoxMailRepository.java
+++ b/server/data/data-file/src/main/java/org/apache/james/mailrepository/file/MBoxMailRepository.java
@@ -227,22 +227,6 @@ public class MBoxMailRepository implements MailRepository, Configurable {
LOGGER.debug("Mime message is null");
}
- /*
- * String toAddr = null; try { // Attempt to read the TO field and see
- * if it errors toAddr =
- * mimeMessage.getRecipients(javax.mail.Message.RecipientType
- * .TO).toString(); } catch (Exception e) { // It has errored, so time
- * for plan B // use the from field I suppose try {
- * mimeMessage.setRecipients(javax.mail.Message.RecipientType.TO,
- * mimeMessage.getFrom()); if (LOGGER.isDebugEnabled()) {
- * StringBuffer logBuffer = new StringBuffer(128)
- * .append(this.getClass().getName())
- * .append(" Patching To: field for message ")
- * .append(" with From: field");
- * LOGGER.debug(logBuffer.toString()); } } catch
- * (MessagingException e1) {
- * LOGGER.error("Unable to set to: field to from: field", e); } }
- */
return mimeMessage;
}
@@ -281,11 +265,6 @@ public class MBoxMailRepository implements MailRepository, Configurable {
foundSep = sepMatchPattern.matcher(line).matches();
if (foundSep && inMessage) {
- // if ((DEEP_DEBUG) && (LOGGER.isDebugEnabled())) {
- // LOGGER.debug(this.getClass().getName() +
- // " Invoking " + messAct.getClass() + " at " +
- // prevMessageStart);
- // }
MimeMessage endResult = messAct.messageAction(previousMessageSeparator, messageBuffer.toString(), prevMessageStart);
if (messAct.isComplete()) {
// I've got what I want so just exit
@@ -311,12 +290,6 @@ public class MBoxMailRepository implements MailRepository, Configurable {
if (c == 10) {
foundSep = sepMatchPattern.matcher(line).matches();
if (foundSep && inMessage) {
- // if ((DEEP_DEBUG) &&
- // (LOGGER.isDebugEnabled())) {
- // LOGGER.debug(this.getClass().getName() +
- // " Invoking " + messAct.getClass() + " at " +
- // prevMessageStart);
- // }
MimeMessage endResult = messAct.messageAction(previousMessageSeparator, messageBuffer.toString(), prevMessageStart);
if (messAct.isComplete()) {
// I've got what I want so just exit
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org