import java.util.zip.*;
import java.text.*;
+/** designed to make a set of HTTP-accessible Mailman archives appear as a mailbox */
public class MailmanArchives extends Mailbox.Default {
public static final String archiveUrl =
if (s == null || s.startsWith("From ")) {
if (acc != null) {
Log.warn("[msg]", acc.toString());
- all.addElement(Message.newMessage(new Stream(acc.toString())));
+ all.addElement(Message.newMessage(new Fountain.StringFountain(acc.toString())));
}
if (s == null) break;
acc = new StringBuffer();
}
}
- public void add(Message m) { throw new RuntimeException("not supported"); }
- public void add(Message m, int i) { throw new RuntimeException("not supported"); }
+ public void insert(Message m, int i) { throw new RuntimeException("not supported"); }
public Message[] messages;
private class Iterator extends Mailbox.Default.Iterator {
int num = 0;
-
public int uid() { return num; }
- public int num() { return num; }
-
+ public int nntpNumber() { return num; }
+ public int imapNumber() { return num; }
public Message cur() { return messages[num]; }
- public MIME.Headers head() { return messages[num].headers; }
+ public Headers head() { return messages[num].headers; }
public boolean next() { return (++num) < messages.length; }
public void delete() { }
-
- public void set(String key, String val) { }
- public String get(String key) { return null; }
- public boolean seen() { return false; }
- public boolean deleted() { return false; }
- public boolean flagged() { return false; }
- public boolean draft() { return false; }
- public boolean answered() { return false; }
- public boolean recent() { return false; }
- public void seen(boolean on) { }
- public void deleted(boolean on) { }
- public void flagged(boolean on) { }
- public void draft(boolean on) { }
- public void answered(boolean on) { }
- public void recent(boolean on) { }
- public int flags() { return 0; }
}
}