+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the Apache Public Source License 2.0 ("the License").
+// You may not use this file except in compliance with the License.
+
package org.ibex.mail.target;
import org.ibex.io.*;
import org.ibex.mail.*;
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(new Message(new Stream(acc.toString()), null));
+ all.addElement(Message.newMessage(new Fountain.StringFountain(acc.toString())));
}
if (s == null) break;
acc = new StringBuffer();
public int num() { return num; }
public Message cur() { return messages[num]; }
- public Message head() { return messages[num]; }
+ public Headers head() { return messages[num].headers; }
public boolean next() { return (++num) < messages.length; }
public void delete() { }