/*
 * Copyright (C) The Apache Software Foundation. All rights reserved.
 *
 * This software is published under the terms of the Apache Software License
 * version 1.1, a copy of which has been included with this distribution in
 * the LICENSE file.
 */
package org.apache.james.transport.matchers;

import org.apache.mailet.GenericMatcher;
import org.apache.mailet.Mail;

import java.util.Collection;
import java.util.StringTokenizer;
import java.util.Vector;

/**
 * @version 1.0.0, 04/07/2002
 * @author  Marcus Labib Iskander <ml@cm4all.com>
 */
public class NamedSender extends GenericMatcher {

    public Collection match(Mail mail) {
        if (mail.getSender()!=null) {
            return mail.getRecipients();
        } else {
            return null;
        }
    }
}
