52 |
* The tag for this response. |
* The tag for this response. |
53 |
*/ |
*/ |
54 |
protected String tag = null; |
protected String tag = null; |
55 |
|
|
56 |
/** |
/** |
57 |
* The response ID. |
* The response ID. |
58 |
*/ |
*/ |
85 |
|
|
86 |
public boolean isTagged() |
public boolean isTagged() |
87 |
{ |
{ |
88 |
return (tag!=UNTAGGED && tag!=CONTINUATION); |
return (tag != UNTAGGED && tag != CONTINUATION); |
89 |
} |
} |
90 |
|
|
91 |
public boolean isUntagged() |
public boolean isUntagged() |
92 |
{ |
{ |
93 |
return (tag==UNTAGGED); |
return (tag == UNTAGGED); |
94 |
} |
} |
95 |
|
|
96 |
public boolean isContinuation() |
public boolean isContinuation() |
97 |
{ |
{ |
98 |
return (tag==CONTINUATION); |
return (tag == CONTINUATION); |
99 |
} |
} |
100 |
|
|
101 |
public String getID() |
public String getID() |
125 |
{ |
{ |
126 |
StringBuffer buffer = new StringBuffer(); |
StringBuffer buffer = new StringBuffer(); |
127 |
buffer.append(tag); |
buffer.append(tag); |
128 |
if (count!=-1) |
if (count != -1) |
129 |
{ |
{ |
130 |
buffer.append(" \u001b[00;31m"); |
buffer.append(" \u001b[00;31m"); |
131 |
buffer.append(count); |
buffer.append(count); |
137 |
buffer.append(id); |
buffer.append(id); |
138 |
buffer.append("\u001b[00m"); |
buffer.append("\u001b[00m"); |
139 |
} |
} |
140 |
if (mailbox!=null) |
if (mailbox != null) |
141 |
{ |
{ |
142 |
buffer.append(" \u001b[00;35m"); |
buffer.append(" \u001b[00;35m"); |
143 |
buffer.append(mailbox); |
buffer.append(mailbox); |
144 |
buffer.append("\u001b[00m"); |
buffer.append("\u001b[00m"); |
145 |
} |
} |
146 |
if (code!=null) |
if (code != null) |
147 |
{ |
{ |
148 |
buffer.append(" \u001b[00;36m"); |
buffer.append(" \u001b[00;36m"); |
149 |
buffer.append(code); |
buffer.append(code); |
150 |
buffer.append("\u001b[00m"); |
buffer.append("\u001b[00m"); |
151 |
} |
} |
152 |
if (text!=null) |
if (text != null) |
153 |
{ |
{ |
154 |
buffer.append(" \u001b[00;33m"); |
buffer.append(" \u001b[00;33m"); |
155 |
buffer.append(text); |
buffer.append(text); |
162 |
{ |
{ |
163 |
StringBuffer buffer = new StringBuffer(); |
StringBuffer buffer = new StringBuffer(); |
164 |
buffer.append(tag); |
buffer.append(tag); |
165 |
if (count!=-1) |
if (count != -1) |
166 |
{ |
{ |
167 |
buffer.append(' '); |
buffer.append(' '); |
168 |
buffer.append(count); |
buffer.append(count); |
172 |
buffer.append(' '); |
buffer.append(' '); |
173 |
buffer.append(id); |
buffer.append(id); |
174 |
} |
} |
175 |
if (mailbox!=null) |
if (mailbox != null) |
176 |
{ |
{ |
177 |
buffer.append(' '); |
buffer.append(' '); |
178 |
buffer.append(mailbox); |
buffer.append(mailbox); |
179 |
} |
} |
180 |
if (code!=null) |
if (code != null) |
181 |
{ |
{ |
182 |
buffer.append(' '); |
buffer.append(' '); |
183 |
buffer.append(code); |
buffer.append(code); |
184 |
} |
} |
185 |
if (text!=null) |
if (text != null) |
186 |
{ |
{ |
187 |
buffer.append(' '); |
buffer.append(' '); |
188 |
buffer.append(text); |
buffer.append(text); |