Subversion Repositories Applications.projet

Rev

Rev 208 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
208 neiluj 1
<?php
327 alexandre_ 2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU General Public                                                  |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | General Public License for more details.                                                             |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU General Public                                            |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: supprimer.php,v 1.3 2008-08-26 09:29:33 alexandre_tb Exp $
208 neiluj 23
/**
327 alexandre_ 24
* Application projet
25
*
26
* Supprime un message d'une liste
27
* Entrée domaine, liste, numero_repertoire, numero_message
28
*
29
*@package projet
30
//Auteur original :
31
*@author        Alexandre Granier <alexandre@tela-botanica.org>
32
*@copyright     Tela-Botanica 2000-2008
33
*@version       $Revision: 1.3 $
34
// +------------------------------------------------------------------------------------------------------+
35
*/
208 neiluj 36
 
37
$repertoire_liste = '/home/vpopmail/domains/'.$domaine.'/'.$liste;
38
$message_a_supprimer = $repertoire_liste.'/archive/'.$actionargs[0].'/'.$actionargs[1] ;
39
 
40
if (file_exists ($message_a_supprimer)) {
41
    echo $message_a_supprimer;
42
    exec ('rm '.$message_a_supprimer) ;
43
   exec ('ezmlm-archive -c '.$repertoire_liste);
44
   exec ('ezmlm-idx '.$repertoire_liste);
45
}
327 alexandre_ 46
/* +--Fin du code ----------------------------------------------------------------------------------------+
47
*
48
* $Log: not supported by cvs2svn $
49
*
50
* +-- Fin du code ----------------------------------------------------------------------------------------+
51
*/
52
?>