From 83efd6f0ad940eeff7a51daeaa2504411cd1d8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Tue, 4 Aug 2009 18:37:14 +0000 Subject: [PATCH] Properly cleanup the size_mail table when removing mails Closes: #1196 --- bureau/class/m_mail.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bureau/class/m_mail.php b/bureau/class/m_mail.php index 0e8d79c9..3fbd11c9 100644 --- a/bureau/class/m_mail.php +++ b/bureau/class/m_mail.php @@ -579,6 +579,7 @@ class m_mail { $err->log("mail","_deletepop",$mail."@".$dom); $db->query("DELETE FROM mail_users WHERE uid='$cuid' AND ( alias='". $mail."_".$dom."' OR alias='". $mail."@".$dom."' ) ;"); $db->query("DELETE FROM mail_alias WHERE mail='".$mail."_".$dom."';"); + $db->query("DELETE FROM size_mail WHERE alias='".$mail."_".$dom."';"); @unlink("/var/lib/squirrelmail/data/".$mail."_".$dom.".pref"); @unlink("/var/lib/squirrelmail/data/".$mail."_".$dom.".abook"); @unlink("/var/lib/squirrelmail/data/".$mail."@".$dom.".pref");