KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > pooka > filter > DuplicateSearchTerm


1 package net.suberic.pooka.filter;
2 import javax.mail.*;
3 import javax.mail.search.*;
4 import net.suberic.pooka.*;
5
6 /**
7  * This is a SearchTerm which checks for duplicate messages.
8  */

9 public class DuplicateSearchTerm extends SearchTerm {
10
11     /**
12      * Creates the given DuplicateSearchTerm. Note that you have to
13      * have a FolderInfo in which to check for duplicates.
14      */

15     public DuplicateSearchTerm (FolderInfo sourceFolder) {
16
17     }
18
19     /**
20      * Checks to see if the given Message is a duplicate of one that
21      * already exists in the FolderInfo.
22      */

23     public boolean match(Message m) {
24     return false;
25     }
26 }
27
Popular Tags