⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 importvalidmatcher.java

📁 开源项目CRM之OpenCustomer
💻 JAVA
字号:
package org.opencustomer.mail.james;

import java.util.Collection;

import javax.mail.MessagingException;

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

public class ImportValidMatcher extends GenericMatcher
{
    private String attributeName = "james2oc";

    public String getMatcherInfo()
    {
        return "Has OpenCustomer Attribute";
    }

    public Collection match(Mail mail) throws MessagingException
    {
        if (mail.getAttribute(attributeName) != null)
            return mail.getRecipients();
        return null;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -