}
public void setLastReceivedMessage(Message message) {
this.lastReceived = message;
MessageReceivedEvent event = new MessageReceivedEvent(this);
Message newMessage = new Message( message.getTo(), message.getType() );
newMessage.setSubject(message.getSubject());
newMessage.setBody(message.getBody());
newMessage.setThread(message.getThread());
event.setMessage(newMessage);
com.valhalla.pluginmanager.PluginChain.fireEvent(event);
}