lotsa stuff works
[org.ibex.mail.git] / src / org / ibex / mail / protocol / IMAP.java
index bb7fc67..d98572e 100644 (file)
@@ -160,7 +160,8 @@ public class IMAP extends MessageProtocol {
             Token[] tl = null;
             int start = -1, end = -1;
             boolean peek = false, fast = false, all = false, full = false;
-            if (t.type == Token.LIST) tl = t.l();
+            if (t == null) { tl = new Token[] { new Token("BODY", false) }; }
+            else if (t.type == Token.LIST) tl = t.l();
             else if (t.atom().equals("FULL")) full = true;
             else if (t.atom().equals("ALL")) all = true;
             else if (t.atom().equals("FAST")) fast = true;