private function trim_action()
	{
		/**
		* Prepare the difficult action
		*/
		$this->trimmed_message = $this->message;
		$this->bbcodes = new PhpbbBbcodes($this->trimmed_message, $this->bbcode_uid, $this->length);

		/**
		* Step 1:	Get a list of all BBCodes
		*/
		$this->bbcodes->get_bbcodes();

		/**
		* Step 2:	Remove all bbcodes from the list, that are opened after
		*			the trim-position
		*/
		$this->bbcodes->remove_bbcodes_after();

		/**
		* Step 3:	Trim message
		*/
		$this->trimmed_message = utf8_substr($this->message, 0, $this->bbcodes->get_trim_position());

		/**
		* Step 4:	i)		Remove links/emails/smilies that are cut, somewhere
		*					in the middle
		*			ii)		Renew trim-position if we did something
		*			iii)	Append the message that is provided
		*/
		$this->remove_broken_links();
		$text_length = utf8_strlen($this->trimmed_message);
		if ($this->bbcodes->is_trimmed())
		{
			$this->trimmed_message .= $this->append_str;
		}

		/**
		* Step 5:	Close open BBCodes
		*/
		$open_bbcodes = $this->bbcodes->get_open_bbcodes_after($text_length);
		$this->close_bbcodes($open_bbcodes);
	}