Location: PHPKode > projects > The Invisible Mailer (TiM) > tim/undelete.php
<?php

include "common.php";
include "mimeMail.phpclass";
$mid = addslashes(stripslashes($mid));

$message = $mailstore->rawQuery("update messages set mdate = mdate, mtrash = '0' where mid = '$mid'");

$folder_sql = $mailstore->rawQuery("select mfid from messages where mid = '$mid'");
$folder_data = mysql_fetch_array($folder_sql);
$folder = $folder_data['mfid'];

		// update the message count (if it fails we will probably run idemandaRecount() later anyway)
		$mailstore->rawQuery("update folders set fcount = fcount + 1 where fid = '".addslashes($folder)."'");

tim_redirect("readmsg.php?mid=$mid");

?>
Return current item: The Invisible Mailer (TiM)