Class Kolab_Filter_Outlook

Description

Provides Mail rewriting for malformed Outlook messages

$Horde: framework/Kolab_Filter/lib/Horde/Kolab/Filter/Outlook.php,v 1.3.2.5 2010/04/15 13:23:20 wrobel Exp $

Copyright 2004-2008 Klarälvdalens Datakonsult AB

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.

Located in /Kolab_Filter/lib/Horde/Kolab/Filter/Outlook.php (line 32)


	
			
Method Summary
 boolena|PEAR_Error embedICal (string $fqhostname, string $sender, array $recipients, string $origfrom, string $subject, string $tmpfname,  $transport)
 void _addOrganizer ( &$icaltxt, MIME_Headers $from, string $icaltext)
 void _copyHeader (string $name,  &$msg_headers,  &$headerarray, MIME_Headers $msg_header, array $headerarray)
 void _inject ( &$toppart,  $recipients,  $msg_headers,  $sender,  $transport)
 array _mimeParse ( &$text, string $text)
 string _recodeToAscii (string $text)
Methods
embedICal (line 171)

Clean up iCal messages from Outlook.

  • return: True if the message was successfully rewritten.
boolena|PEAR_Error embedICal (string $fqhostname, string $sender, array $recipients, string $origfrom, string $subject, string $tmpfname,  $transport)
  • string $fqhostname: The name of this host.
  • string $sender: The mail address of the sender.
  • array $recipients: The recipients of the message.
  • string $origfrom: The mail address of the original sender.
  • string $subject: The mail subject.
  • string $tmpfname: Path to the temporary message store.
  • $transport
_addOrganizer (line 93)

Yet another problem: Outlook seems to remove the organizer from the iCal when forwarding -- we put the original sender back in as organizer.

void _addOrganizer ( &$icaltxt, MIME_Headers $from, string $icaltext)
  • string $icaltext: The ical message.
  • MIME_Headers $from: The message sender.
  • &$icaltxt
_copyHeader (line 71)

Add a header entry.

void _copyHeader (string $name,  &$msg_headers,  &$headerarray, MIME_Headers $msg_header, array $headerarray)
  • string $name: The name of the header entry.
  • MIME_Headers $msg_header: A link to the MIME header handler.
  • array $headerarray: The list of current headers.
  • &$msg_headers
  • &$headerarray
_inject (line 243)
void _inject ( &$toppart,  $recipients,  $msg_headers,  $sender,  $transport)
  • &$toppart
  • $recipients
  • $msg_headers
  • $sender
  • $transport
_mimeParse (line 42)

Returns a parsed MIME message

  • return: An array with the MIME parsed headers and body.
array _mimeParse ( &$text, string $text)
  • string $text: The text of the message
  • &$text
_recodeToAscii (line 140)

Yet another Outlook problem: Some versions of Outlook seems to be incapable of handling non-ascii characters properly in text/calendar parts of a multi-part/mixed mail which we use for forwarding.

As a solution, we encode common characters as humanreadable two-letter ascii.

  • return: The text with umlauts replaced.
string _recodeToAscii (string $text)
  • string $text: The message text.

Documentation generated on Sun, 30 Jan 2011 05:20:12 +0000 by phpDocumentor 1.4.3