for(Mailbox.Iterator it = iterator(q);it.next();) { dest.insert(it.cur(), it.getFlags()); it.delete(); }
}
public static abstract class Iterator implements Mailbox.Iterator {
+ // FIXME: NNTP spec allows us to use longs (64-bit) here
public int nntpNumber() { throw new MailException("not supported"); }
public int getFlags() { return 0; }
public void setFlags(int flags) { throw new MailException("not supported"); }
head = head.set("List-Id", one_line_description + "<"+address+">");
head = head.set("Subject", properties.get("prefix") + " " + head.get("Subject"));
- m = Message.newMessage(new Fountain.StringFountain(head.getString()+"\r\n"+buf.toString()));
+ m = Message.newMessage(Fountain.Util.concat(new Fountain[] { head,
+ Fountain.Util.create("\r\n"),
+ Fountain.Util.create(buf.toString()) }));
Log.warn(MailingList.class, "archiving list message " + m.subject);
mailbox.accept(m);