+// 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.mail.*;
import org.ibex.util.*;
public void add(Message message) { return; }
public void add(Message message, int flags) { return; }
public int uidNext() { return messages.length+1; }
- public int uidValidity() { return 500; }
public Mailbox.Iterator iterator() { return new MessageArrayMailbox.Iterator(); }
public class Iterator extends Mailbox.Default.Iterator {
private int position = -1;
public Message cur() { return messages[position]; }
- public Message head() { return messages[position]; }
+ public Headers head() { return messages[position].headers; }
public boolean next() { return ++position < messages.length; }
public int uid() { return position+1; }
- public int num() { return position+1; }
+ public int imapNumber() { return position+1; }
public void delete() { return; }
public void set(String key, String val) { return; }