1 17 18 package org.apache.james.transport.matchers; 19 20 import org.apache.mailet.Mail; 21 import org.apache.mailet.MailetContext; 22 import org.apache.mailet.MailAddress; 23 import javax.mail.MessagingException ; 24 import java.util.Locale ; 25 26 51 52 public class RecipientIsOverFixedQuota extends AbstractStorageQuota { 53 private long quota = 0; 54 55 60 public void init() throws MessagingException { 61 super.init(); 62 quota = parseQuota(getCondition().trim().toLowerCase(Locale.US)); 63 } 64 65 protected long getQuota(MailAddress recipient, Mail _) throws MessagingException { 66 return quota; 67 } 68 } 69 | Popular Tags |