The following document contains the results of PMD's CPD 4.2.2.
| File | Line |
|---|---|
| org/abstracthorizon/mercury/smtp/filter/FindStorageFilter.java | 29 |
| org/abstracthorizon/mercury/smtp/filter/quiet/QuietFindStorageFilter.java | 32 |
public class QuietFindStorageFilter implements Filter {
public int features() {
return Filter.CAN_PROCESS_DESTINATION_MAILBOX;
}
public void startSession(MailSessionData data) {
}
public String processSourceDomain(MailSessionData data) {
return null;
}
public String processSourceMailbox(MailSessionData data) {
return null;
}
public String processDestinationMailbox(MailSessionData data, Path path) {
StorageManager manager = (StorageManager)data.getAttribute("manager");
path.setLocalDomain(manager.hasDomain(path.getDomain()));
if (path.isLocalDomain()) {
try {
//Store store = manager.getLocalMailbox(path.getMailbox(), path.getDomain());
//path.setStore(store);
path.setFolder(manager.findInbox(path.getMailbox(), path.getDomain(), null));
data.getDestinationMailboxes().add(path);
| |