From 99a8de6715d1b5d31fea8a814cef3d3e2dcf7e02 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 22 Jan 2009 14:20:36 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSformElement=5Fmaildir=20:=20Ajout=20de=20?= =?UTF-8?q?messages=20lors=20des=20r=C3=A9ussites=20de=20=09cr=C3=A9ation/?= =?UTF-8?q?modification/suppression?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../class/class.LSformElement_maildir.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/trunk/includes/class/class.LSformElement_maildir.php b/trunk/includes/class/class.LSformElement_maildir.php index dd68f9b8..97727c84 100644 --- a/trunk/includes/class/class.LSformElement_maildir.php +++ b/trunk/includes/class/class.LSformElement_maildir.php @@ -139,17 +139,29 @@ class LSformElement_maildir extends LSformElement_text { if ($this -> params['html_options']['archiveNameFormat']) { $newname=getFData($this -> params['html_options']['archiveNameFormat'],$this -> _toDo['old']); if ($newname) { - return renameMaildirByFTP($this -> _toDo['old'],$newname); + if (renameMaildirByFTP($this -> _toDo['old'],$newname)) { + $GLOBALS['LSsession'] -> addInfo("La boîte mail a été archivée."); + return true; + } + return; } LSdebug($this -> name." - LSformElement_maildir->toDo() : Nom d'archivage incorrect."); return; } break; case 'modify': - return renameMaildirByFTP($this -> _toDo['old'],$this -> _toDo['new']); + if (renameMaildirByFTP($this -> _toDo['old'],$this -> _toDo['new'])) { + $GLOBALS['LSsession'] -> addInfo("La boîte mail a été déplacée."); + return true; + } + return; break; case 'create': - return createMaildirByFTP(null,$this -> _toDo['new']); + if (createMaildirByFTP(null,$this -> _toDo['new'])) { + $GLOBALS['LSsession'] -> addInfo("La boîte mail a été créée."); + return true; + } + return; break; default: LSdebug($this -> name.' - LSformElement_maildir->toDo() : Action inconnu.');