public final Headers headers;
public final Part[] subparts;
public final String body;
public final Headers headers;
public final Part[] subparts;
public final String body;
ctype = "application/octet-stream";
}
content = new Content(ctype, headers.get("content-description"), headers.get("content-id"), encoding);
ctype = "application/octet-stream";
}
content = new Content(ctype, headers.get("content-description"), headers.get("content-id"), encoding);
StringBuffer body = new StringBuffer();
for(String s = stream.readln(); s != null; s = stream.readln()) {
if (boundary != null && (s.equals(boundary) || s.equals(boundary + "--"))) {
StringBuffer body = new StringBuffer();
for(String s = stream.readln(); s != null; s = stream.readln()) {
if (boundary != null && (s.equals(boundary) || s.equals(boundary + "--"))) {
}
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 this.body = body.toString();
this.last = last;
}
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 this.body = body.toString();
this.last = last;
}
}
public static class Headers extends org.ibex.js.JSReflection {
private Hashtable head = new Hashtable();
}
}
public static class Headers extends org.ibex.js.JSReflection {
private Hashtable head = new Hashtable();
public final String raw;
public String get(String s) { return (String)head.get(s.toLowerCase()); }
public static String uncomment(String val) {
public final String raw;
public String get(String s) { return (String)head.get(s.toLowerCase()); }
public static String uncomment(String val) {
public Headers(Stream stream, boolean assumeMime) throws MailException.Malformed {
StringBuffer all = new StringBuffer();
String key = null;
public Headers(Stream stream, boolean assumeMime) throws MailException.Malformed {
StringBuffer all = new StringBuffer();
String key = null;
if (Character.isSpace(s.charAt(0))) {
if (key == null) throw new MailException.Malformed("Message began with a blank line; no headers");
head.put(key, head.get(key) + " " + s.trim());
if (Character.isSpace(s.charAt(0))) {
if (key == null) throw new MailException.Malformed("Message began with a blank line; no headers");
head.put(key, head.get(key) + " " + s.trim());
Enumeration e = head.keys();
boolean mime = assumeMime | (get("mime-version") != null && get("mime-version").trim().equals("1.0"));
Enumeration e = head.keys();
boolean mime = assumeMime | (get("mime-version") != null && get("mime-version").trim().equals("1.0"));