/** Class Rule
 *
 * Describes a rule for sorting, such as "Messages from Carl go to folder Carl"
 * XXX - there is not yet support for sorting in alphabetical order, or in increasing/decreasing.
 * XXX - Perhaps that needs to be something in the SortFilter class.
 *
 * @author Chris Kern
 * @author Erin Nichols
 * @author Joe Simonson
 * @version 0.20 of Oct 1999
 */

public class Rule {

    /*+--------------+
     *|    Fields    |
     *+--------------+
     */

    /** The "condition" for the rule (see class Condition) */
    Condition cond;
    
    /** The destination folder */
    Folder destination;


    /*+--------------+
     *| Constructors |
     *+--------------+
     */

    /** Null constructor */
    public Rule() {

    }

    /** Full constructor */
    public Rule(Condition cond1, Folder destination) {

    }

    /*+-----------+
     *|  Methods  |
     *+-----------+
     */

    /** get the Condition */
    public Condition getCondition() {

    }

    /** get the destination */
    public Folder getDestination() {

    }

    /** set the Condition */
    public setCondition(Condition newCond) {

    }

    /** set the destination */
    public setDestination(Folder newDest) {

    }

    /** Return a string with the rule */
    public String toString() {

    }

    /** Applies this rule to a list of messages */
    public scanList(MessageInfoList listOfMessages) {

    }

    /** Returns a new folder created by the rule application */
    public Folder returnFolder() {

    }

    /** Returns a new message list created by the rule application */
    public MessageInfoList returnList() {

    }

} // Class Rule

