function perform()
 {
     // try to load the message
     $messageId = $this->_request->getValue("messageId");
     $mailMessages = new MailMessages();
     $message = $mailMessages->getMessage($messageId);
     if (!$message) {
         // if something went wrong loading the message, quit
         $view = new MailCentreMessageListView($this->_blogInfo);
         $view->setErrorMessage($this->_locale->tr("mailcentre_incorrect_message_id"));
         $this->setValidationErrorView($view);
         $this->setCommonData();
         return false;
     }
     // pass the data to the template if everything's ok
     $this->_view = new MailCentreSendMessageView($this->_blogInfo, false);
     $this->_view->setValue("messageRecipient", $message->getTo());
     $this->_view->setValue("messageBcc", $message->getBcc());
     $this->_view->setValue("messageCc", $message->getCc());
     $this->_view->setValue("messageText", $message->getText());
     $this->_view->setValue("messageSubject", $message->getSubject());
     $this->_view->setValue("messageSentDate", $message->getSentTimestamp());
     $this->setCommonData();
     return true;
 }
 /**
  * Constructor. If nothing else, it also has to call the constructor of the parent
  * class, BlogAction with the same parameters
  */
 function MailCentreDeleteSentMailAction($actionInfo, $request)
 {
     $this->AdminAction($actionInfo, $request);
     $this->_mode = $actionInfo->getActionParamValue();
     if ($this->_mode == "mailcentreDeleteMessage") {
         $this->registerFieldValidator("messageId", new IntegerValidator());
     } else {
         $this->registerFieldValidator("messageIds", new ArrayValidator());
     }
     $view = new MailCentreMessageListView($this->_blogInfo);
     $view->setErrorMessage($this->_locale->tr("mailcentre_error_deleting_messages"));
     $this->setValidationErrorView($view);
 }