fixed protocol bug with double body
[org.ibex.mail.git] / src / org / ibex / mail / protocol / IMAP.java
index 22ff402..f6c084f 100644 (file)
@@ -44,7 +44,7 @@ public class IMAP {
     // FIXME this is evil
     public static String getBodyString(Message m) {
         StringBuffer sb = new StringBuffer();
-        m.getStream().transcribe(sb);
+        m.getBody().getStream().transcribe(sb);
         return sb.toString();
     }