massive refactoring of Headers class
[org.ibex.mail.git] / src / org / ibex / mail / MIME.java
index 0da4d53..36d125b 100644 (file)
@@ -19,6 +19,7 @@ import java.io.*;
 /** This class contains logic for encoding and decoding MIME multipart messages */
 public class MIME {
 
+    /** Part = Headers+Body */
     public static class Part extends JSReflection implements Fountain {
         public  final Headers      headers;
         public  final ContentType  contentType;
@@ -45,7 +46,7 @@ public class MIME {
         }
 
         public Part(Fountain all) {
-            this.headers     = new Headers.Original(all.getStream());
+            this.headers     = new Headers(all);
             String ctype     = headers.get("content-type");
             this.encoding    = headers.get("content-transfer-encoding");
             String enc = this.encoding;