1,45 → 1,14 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 4.1 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// +------------------------------------------------------------------------------------------------------+ |
// | This library is free software; you can redistribute it and/or | |
// | modify it under the terms of the GNU General Public | |
// | License as published by the Free Software Foundation; either | |
// | version 2.1 of the License, or (at your option) any later version. | |
// | | |
// | This library is distributed in the hope that it will be useful, | |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
// | General Public License for more details. | |
// | | |
// | You should have received a copy of the GNU General Public | |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: ezmlm-parser.php,v 1.2.4.2 2007-04-11 12:30:50 alexandre_tb Exp $ |
/** |
* Application projet |
* |
* classe ezmlm_parser pour lire les fichiers d index de ezmlm-idx |
* |
*@package projet |
//Auteur original : ?? recupere dans ezmlm-php |
*@author Alexandre Granier <alexandre@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.2.4.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
|
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
|
// $Id: ezmlm-parser.php,v 1.2.4.2 2007-04-11 12:30:50 alexandre_tb Exp $ |
// $Id: ezmlm-parser.php,v 1.2.4.1 2007-03-12 11:22:12 alexandre_tb Exp $ |
// |
// ezmlm-parser.php - ezmlm-php v2.0 |
// -------------------------------------------------------------- |
// Contains all the code for parsing messages. |
// It handles all the nessesary decoding, attachments, etc... |
// Note this does all the parsing itself now removing the dependancy |
// on the mailparse library (as it looks like it will never make |
// it into the official inclusion with PHP)... |
// -------------------------------------------------------------- |
|
require_once("ezmlm.php"); |
require_once("Mail/mimeDecode.php") ; |
64,24 → 33,7 |
|
// functions |
|
/** |
* recent_msgs renvoie les derniers messages de la liste de discussion |
* ezmlm |
* |
* ( |
* [0] => Array |
* ( |
* [1] => sujet |
* [2] => date en anglais |
* [3] => le hash de l auteur |
* [4] => l auteur |
* ) |
* [1] => ... |
* ) |
* @param int le nombre de message a renvoye |
* @return array un tableau contenant les messages |
* @access public |
*/ |
// recent_msgs - parses and returns an arbitrary number of the most recent messages |
function recent_msgs($show = 20, $month = "") { |
|
$repertoire_archive = opendir($this->listdir . "/archive/"); |
150,13 → 102,10 |
$match_deuxieme_ligne[6]); |
} |
} |
} else { |
// Si le nombre de message est > $show on limite le tableau de retour |
$tableau_message = array_slice($tableau_message, 0, $show, true); |
} |
|
|
return $tableau_message ; |
return ($tableau_message) ; |
} |
|
|