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 ad...@apache.org on 2016/11/02 07:52:26 UTC
[1/2] james-project git commit: JAMES-1846 Improve IMAP logging
Repository: james-project
Updated Branches:
refs/heads/master d75a3b4d0 -> a50f75112
JAMES-1846 Improve IMAP logging
We should be able to know wich command is being used after UID command
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/dd356625
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/dd356625
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/dd356625
Branch: refs/heads/master
Commit: dd3566255591e5c03fcd41d3b9f17ff59ca7493a
Parents: 8bba513
Author: Benoit Tellier <bt...@linagora.com>
Authored: Fri Oct 21 18:41:07 2016 +0200
Committer: Benoit Tellier <bt...@linagora.com>
Committed: Wed Oct 26 09:04:53 2016 +0200
----------------------------------------------------------------------
.../org/apache/james/imap/decode/main/DefaultImapDecoder.java | 1 +
.../org/apache/james/imap/decode/parser/UidCommandParser.java | 3 +++
2 files changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/dd356625/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
----------------------------------------------------------------------
diff --git a/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java b/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
index 91bd2ab..d5e4136 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
@@ -18,6 +18,7 @@
****************************************************************/
package org.apache.james.imap.decode.main;
+import org.apache.james.imap.api.ImapConstants;
import org.apache.james.imap.api.ImapMessage;
import org.apache.james.imap.api.ImapSessionState;
import org.apache.james.imap.api.display.HumanReadableText;
http://git-wip-us.apache.org/repos/asf/james-project/blob/dd356625/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/UidCommandParser.java
----------------------------------------------------------------------
diff --git a/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/UidCommandParser.java b/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/UidCommandParser.java
index 2cc1925..3c19059 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/UidCommandParser.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/UidCommandParser.java
@@ -73,6 +73,9 @@ public class UidCommandParser extends AbstractImapCommandParser implements Deleg
if (helperCommand == null || !(helperCommand instanceof AbstractUidCommandParser)) {
throw new DecodingException(HumanReadableText.ILLEGAL_ARGUMENTS, "Invalid UID command: '" + commandName + "'");
}
+ if (session.getLog().isDebugEnabled()) {
+ session.getLog().debug("Got <command>: UID " + commandName);
+ }
final AbstractUidCommandParser uidEnabled = (AbstractUidCommandParser) helperCommand;
return uidEnabled.decode(request, tag, true, session);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[2/2] james-project git commit: Merge remote-tracking branch
'btellier/JAMES-1846-1'
Posted by ad...@apache.org.
Merge remote-tracking branch 'btellier/JAMES-1846-1'
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/a50f7511
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/a50f7511
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/a50f7511
Branch: refs/heads/master
Commit: a50f75112596537c831016069f67a1f6ff665529
Parents: d75a3b4 dd35662
Author: Antoine Duprat <ad...@apache.org>
Authored: Wed Nov 2 08:52:06 2016 +0100
Committer: Antoine Duprat <ad...@apache.org>
Committed: Wed Nov 2 08:52:06 2016 +0100
----------------------------------------------------------------------
.../org/apache/james/imap/decode/main/DefaultImapDecoder.java | 1 +
.../org/apache/james/imap/decode/parser/UidCommandParser.java | 3 +++
2 files changed, 4 insertions(+)
----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org