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 jo...@apache.org on 2006/11/04 23:59:56 UTC
svn commit: r471291 - in
/james/server/trunk/src/test/org/apache/james/imapserver:
client/FetchCommand.java handler/session/BodyFetchSessionTest.java
Author: joachim
Date: Sat Nov 4 14:59:56 2006
New Revision: 471291
URL: http://svn.apache.org/viewvc?view=rev&rev=471291
Log:
fixed tabs
Modified:
james/server/trunk/src/test/org/apache/james/imapserver/client/FetchCommand.java
james/server/trunk/src/test/org/apache/james/imapserver/handler/session/BodyFetchSessionTest.java
Modified: james/server/trunk/src/test/org/apache/james/imapserver/client/FetchCommand.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/imapserver/client/FetchCommand.java?view=diff&rev=471291&r1=471290&r2=471291
==============================================================================
--- james/server/trunk/src/test/org/apache/james/imapserver/client/FetchCommand.java (original)
+++ james/server/trunk/src/test/org/apache/james/imapserver/client/FetchCommand.java Sat Nov 4 14:59:56 2006
@@ -51,8 +51,8 @@
}
public void setUseParenthesis(boolean useParenthesis) {
- this.useParenthesis = useParenthesis;
- }
+ this.useParenthesis = useParenthesis;
+ }
public void setUids(long[] uids) {
this.uids=uids;
@@ -60,48 +60,48 @@
}
public String getCommand() {
- String command = "";
- if (uid) {
- command += "UID ";
- }
- command += "fetch " + from;
- if (!oneSeqNumberOnly) {
- if (to > 0) {
- command += ":" + to;
- } else {
- command += ":*";
- }
- }
+ String command = "";
+ if (uid) {
+ command += "UID ";
+ }
+ command += "fetch " + from;
+ if (!oneSeqNumberOnly) {
+ if (to > 0) {
+ command += ":" + to;
+ } else {
+ command += ":*";
+ }
+ }
- command += " ";
- if (useParenthesis) {
- command += "(";
- }
-
- String items = "";
- // FLAGS
- if (fetchFlags) {
- items += " FLAGS";
- }
- // RFC822.SIZE
- if (fetchRfc822Size) {
- items += " RFC822.SIZE";
- }
- // BODY
- if (body != null) {
- items += " " + body.getCommand();
- }
+ command += " ";
+ if (useParenthesis) {
+ command += "(";
+ }
+
+ String items = "";
+ // FLAGS
+ if (fetchFlags) {
+ items += " FLAGS";
+ }
+ // RFC822.SIZE
+ if (fetchRfc822Size) {
+ items += " RFC822.SIZE";
+ }
+ // BODY
+ if (body != null) {
+ items += " " + body.getCommand();
+ }
- if (items.length() > 0) {
- items = items.substring(1);
- }
- command += items;
- if (useParenthesis) {
- command += ")";
- }
- command += "\n";
- return command;
- }
+ if (items.length() > 0) {
+ items = items.substring(1);
+ }
+ command += items;
+ if (useParenthesis) {
+ command += ")";
+ }
+ command += "\n";
+ return command;
+ }
private List getSelectedMessageNumbers() {
List selectedNumbers = new ArrayList();
Modified: james/server/trunk/src/test/org/apache/james/imapserver/handler/session/BodyFetchSessionTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/imapserver/handler/session/BodyFetchSessionTest.java?view=diff&rev=471291&r1=471290&r2=471291
==============================================================================
--- james/server/trunk/src/test/org/apache/james/imapserver/handler/session/BodyFetchSessionTest.java (original)
+++ james/server/trunk/src/test/org/apache/james/imapserver/handler/session/BodyFetchSessionTest.java Sat Nov 4 14:59:56 2006
@@ -126,6 +126,6 @@
fc.setFetchBody(new FetchBody(true));
fc.setUseParenthesis(false);
verifyCommandOrdered(fc);
-
+
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org