[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/felamimail/inc/ -> class.sofelamimail.inc.php (source)

   1  <?php
   2      /***************************************************************************\
   3      * eGroupWare - FeLaMiMail                                                   *
   4      * http://www.linux-at-work.de                                               *
   5      * http://www.phpgw.de                                                       *
   6      * http://www.egroupware.org                                                 *
   7      * Written by : Lars Kneschke [lkneschke@linux-at-work.de]                   *
   8      * -------------------------------------------------                         *
   9      * This program is free software; you can redistribute it and/or modify it   *
  10      * under the terms of the GNU General Public License as published by the     *
  11      * Free Software Foundation; either version 2 of the License, or (at your    *
  12      * option) any later version.                                                *
  13      \***************************************************************************/
  14      /* $Id: class.sofelamimail.inc.php 18876 2005-07-23 15:52:49Z ralfbecker $ */
  15  
  16      class sofelamimail
  17      {
  18  		function sofelamimail()
  19          {
  20              #$this->bopreferences    =& CreateObject('felamimail.bopreferences');
  21          }
  22  
  23  		function fetchheader($_header)
  24          {
  25              $headerRows = explode("\n",$_header);
  26              for($i=0;$i<count($headerRows);$i++)
  27              {
  28                  if(preg_match("/^From:(.*)/i",$headerRows[$i],$matches))
  29                      $retValue['from'] = $matches[1];
  30                  if(preg_match("/^to:(.*)/i",$headerRows[$i],$matches))
  31                      $retValue['to'] = $matches[1];
  32              }
  33              
  34              return $retValue;
  35          }
  36      }
  37  
  38  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7