javax.mail.search

Class MessageIDTerm

public final class MessageIDTerm extends StringTerm

A comparison for the RFC822 "Message-Id", a string message identifier for Internet messages that is supposed to be unique per message.

Version: 1.4

Author: Chris Burdess

Constructor Summary
MessageIDTerm(String msgid)
Constructor.
Method Summary
booleanequals(Object other)
booleanmatch(Message msg)
Returns true if the given message's Message-Id matches the Message-Id specified in this term.

Constructor Detail

MessageIDTerm

public MessageIDTerm(String msgid)
Constructor.

Parameters: msgid the Message-Id to search for

Method Detail

equals

public boolean equals(Object other)

match

public boolean match(Message msg)
Returns true if the given message's Message-Id matches the Message-Id specified in this term.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved