import org.ibex.util.*;
import org.ibex.mail.protocol.*;
import org.ibex.io.*;
+import org.ibex.js.*;
import java.util.*;
import java.net.*;
import java.io.*;
lines++;
}
if ("quoted-printable".equals(encoding)) this.body = MIME.QuotedPrintable.decode(body.toString(),false);
- else if ("base64".equals(encoding)) this.body = new String(Base64.decode(body.toString()));
+ else if ("base64".equals(encoding)) this.body = new String(Encode.fromBase64(body.toString()));
else this.body = body.toString();
this.last = last;
this.lines = lines + headers.lines;
this.raw = all.toString();
this.lines = lines;
- Enumeration e = head.keys();
+ java.util.Enumeration e = head.keys();
boolean mime = assumeMime | (gets("mime-version") != null && gets("mime-version").trim().equals("1.0"));
/*
- while(e.hasMoreElements()) {
- String k = (String)e.nextElement();
+ while(e.hasNext()) {
+ String k = (String)e.next();
String v = (String)head.get(k);
if (mime) k = MIME.RFC2047.decode(k);
v = uncomment(v);