1<?php
2	/***************************************************************************\
3	* phpGroupWare - FeLaMiMail                                                 *
4	* http://www.linux-at-work.de                                               *
5	* http://www.phpgw.de                                                       *
6	* http://www.phpgroupware.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 9608 2002-02-25 23:58:37Z ceb $ */
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?>