public class SpamTrapHandler extends Object implements RcptHook
Modifier and Type | Field and Description |
---|---|
protected long |
blockTime
Default blocktime 12 hours
|
Constructor and Description |
---|
SpamTrapHandler() |
Modifier and Type | Method and Description |
---|---|
HookResult |
doRcpt(SMTPSession session,
MailAddress sender,
MailAddress rcpt)
Return the HookResult after run the hook
|
void |
setBlockTime(long blockTime) |
void |
setSpamTrapRecipients(Collection<String> spamTrapRecips) |
public void setSpamTrapRecipients(Collection<String> spamTrapRecips)
public void setBlockTime(long blockTime)
public HookResult doRcpt(SMTPSession session, MailAddress sender, MailAddress rcpt)
RcptHook
doRcpt
in interface RcptHook
session
- the SMTPSessionsender
- the sender MailAddressrcpt
- the recipient MailAddressorg.apache.james.protocols.smtp.hook.RcptHook#doRcpt(org.apache.james.protocols.smtp.SMTPSession, org.apache.mailet.MailAddress, org.apache.mailet.MailAddress)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.