src/IMAP/Message.php
public function is(Message $message = null) {
        if (is_null($message)) {
            return false;
        }

        return $this->uid == $message->uid
            && $this->message_id == $message->message_id
            && $this->subject == $message->subject
            && $this->date->eq($message->date);
    }
public function is(Message $message = null) {
        if (is_null($message)) {
            return false;
        }

        return $this->uid == $message->uid
            && $this->message_id == $message->message_id
            && $this->subject == $message->subject
            && $this->date->eq($message->date);
    }
public function is ( Message $ message = null ) { if ( is_null ( $ message ) ) { return false ; } return $ this -> uid == $ message -> uid && $ this -> message_id == $ message -> message_id && $ this -> subject == $ message -> subject && $ this -> date -> eq ( $ message -> date ) ; }
Does this message match another one?

A match means same uid, message id, subject and date/time.

@param  null|Message $message
@return boolean
Does this message match another one?