sequence.
* DEFAULT: false
* - defserver: (string) The default server to use when creating the
* header string.
* DEFAULT: none
* - encode: (integer) A mask of allowable encodings.
* DEFAULT: self::ENCODE_7BIT
* - headers: (mixed) Include the MIME headers? If true, create a new
* headers object. If a Horde_Mime_Headers object, add MIME
* headers to this object. If a string, use the string
* verbatim.
* DEFAULT: true
* - id: (string) Return only this MIME ID part.
* DEFAULT: Returns the base part.
* - stream: (boolean) Return a stream resource.
* DEFAULT: false
*
* @return mixed The MIME string (returned as a resource if $stream is
* true).
*/
public function toString($options = array())
{
$eol = $this->getEOL();
$isbase = true;
$oldbaseptr = null;
$parts = $parts_close = array();
if (isset($options['id'])) {
$id = $options['id'];
if (!($part = $this[$id])) {
return $part;
}
unset($options['id']);
$contents = $part->toString($options);
$prev_id = Horde_Mime::mimeIdArithmetic($id, 'up', array('norfc822' => true));
$prev_part = ($prev_id == $this->getMimeId())
? $this
: $this[$prev_id];
if (!$prev_part) {
return $contents;
}
$boundary = trim($this->getContentTypeParameter('boundary'), '"');
$parts = array(
$eol . '--' . $boundary . $eol,
$contents
);
if (!isset($this[Horde_Mime::mimeIdArithmetic($id, 'next')])) {
$parts[] = $eol . '--' . $boundary . '--' . $eol;
}
} else {
if ($isbase = empty($options['_notbase'])) {
$headers = !empty($options['headers'])
? $options['headers']
: false;
if (empty($options['encode'])) {
$options['encode'] = null;
}
if (empty($options['defserver'])) {
$options['defserver'] = null;
}
$options['headers'] = true;
$options['_notbase'] = true;
} else {
$headers = true;
$oldbaseptr = &$options['_baseptr'];
}
$this->_temp['toString'] = '';
$options['_baseptr'] = &$this->_temp['toString'];
/* Any information about a message is embedded in the message
* contents themself. Simply output the contents of the part
* directly and return. */
$ptype = $this->getPrimaryType();
if ($ptype == 'message') {
$parts[] = $this->_contents;
} else {
if (!empty($this->_contents)) {
$encoding = $this->_getTransferEncoding($options['encode']);
switch ($encoding) {
case '8bit':
if (empty($options['_baseptr'])) {
$options['_baseptr'] = '8bit';
}
break;
case 'binary':
$options['_baseptr'] = 'binary';
break;
}
$parts[] = $this->_transferEncode($this->_contents, $encoding);
/* If not using $this->_contents, we can close the stream
* when finished. */
if ($this->_temp['transferEncodeClose']) {
$parts_close[] = end($parts);
}
}
/* Deal with multipart messages. */
if ($ptype == 'multipart') {
if (empty($this->_contents)) {
$parts[] = 'This message is in MIME format.' . $eol;
}
$boundary = trim($this->getContentTypeParameter('boundary'), '"');
/* If base part is multipart/digest, children should not
* have content-type (automatically treated as
* message/rfc822; RFC 2046 [5.1.5]). */
if ($this->getSubType() === 'digest') {
$options['is_digest'] = true;
}
foreach ($this as $part) {
$parts[] = $eol . '--' . $boundary . $eol;
$tmp = $part->toString($options);
if ($part->getEOL() != $eol) {
$tmp = $this->replaceEOL($tmp, $eol, !empty($options['stream']));
}
if (!empty($options['stream'])) {
$parts_close[] = $tmp;
}
$parts[] = $tmp;
}
$parts[] = $eol . '--' . $boundary . '--' . $eol;
}
}
if (is_string($headers)) {
array_unshift($parts, $headers);
} elseif ($headers) {
$hdr_ob = $this->addMimeHeaders(array(
'encode' => $options['encode'],
'headers' => ($headers === true) ? null : $headers
));
if (!$isbase && !empty($options['is_digest'])) {
unset($hdr_ob['content-type']);
}
if (!empty($this->_temp['toString'])) {
$hdr_ob->addHeader(
'Content-Transfer-Encoding',
$this->_temp['toString']
);
}
array_unshift($parts, $hdr_ob->toString(array(
'canonical' => ($eol == self::RFC_EOL),
'charset' => $this->getHeaderCharset(),
'defserver' => $options['defserver']
)));
}
}
$newfp = $this->_writeStream($parts);
array_map('fclose', $parts_close);
if (!is_null($oldbaseptr)) {
switch ($this->_temp['toString']) {
case '8bit':
if (empty($oldbaseptr)) {
$oldbaseptr = '8bit';
}
break;
case 'binary':
$oldbaseptr = 'binary';
break;
}
}
if ($isbase && !empty($options['canonical'])) {
return $this->replaceEOL($newfp, self::RFC_EOL, !empty($options['stream']));
}
return empty($options['stream'])
? $this->_readStream($newfp)
: $newfp;
}
/**
* Get the transfer encoding for the part based on the user requested
* transfer encoding and the current contents of the part.
*
* @param integer $encode A mask of allowable encodings.
*
* @return string The transfer-encoding of this part.
*/
protected function _getTransferEncoding($encode = self::ENCODE_7BIT)
{
if (!empty($this->_temp['sendEncoding'])) {
return $this->_temp['sendEncoding'];
} elseif (!empty($this->_temp['sendTransferEncoding'][$encode])) {
return $this->_temp['sendTransferEncoding'][$encode];
}
if (empty($this->_contents)) {
$encoding = '7bit';
} else {
switch ($this->getPrimaryType()) {
case 'message':
case 'multipart':
/* RFC 2046 [5.2.1] - message/rfc822 messages only allow 7bit,
* 8bit, and binary encodings. If the current encoding is
* either base64 or q-p, switch it to 8bit instead.
* RFC 2046 [5.2.2, 5.2.3, 5.2.4] - All other messages
* only allow 7bit encodings.
*
* TODO: What if message contains 8bit characters and we are
* in strict 7bit mode? Not sure there is anything we can do
* in that situation, especially for message/rfc822 parts.
*
* These encoding will be figured out later (via toString()).
* They are limited to 7bit, 8bit, and binary. Default to
* '7bit' per RFCs. */
$default_8bit = 'base64';
$encoding = '7bit';
break;
case 'text':
$default_8bit = 'quoted-printable';
$encoding = '7bit';
break;
default:
$default_8bit = 'base64';
/* If transfer encoding has changed from the default, use that
* value. */
$encoding = ($this->_transferEncoding == self::DEFAULT_ENCODING)
? 'base64'
: $this->_transferEncoding;
break;
}
switch ($encoding) {
case 'base64':
case 'binary':
break;
default:
$encoding = $this->_scanStream($this->_contents);
break;
}
switch ($encoding) {
case 'base64':
case 'binary':
/* If the text is longer than 998 characters between
* linebreaks, use quoted-printable encoding to ensure the
* text will not be chopped (i.e. by sendmail if being
* sent as mail text). */
$encoding = $default_8bit;
break;
case '8bit':
$encoding = (($encode & self::ENCODE_8BIT) || ($encode & self::ENCODE_BINARY))
? '8bit'
: $default_8bit;
break;
}
}
$this->_temp['sendTransferEncoding'][$encode] = $encoding;
return $encoding;
}
/**
* Replace newlines in this part's contents with those specified by either
* the given newline sequence or the part's current EOL setting.
*
* @param mixed $text The text to replace. Either a string or a
* stream resource. If a stream, and returning
* a string, will close the stream when done.
* @param string $eol The EOL sequence to use. If not present, uses
* the part's current EOL setting.
* @param boolean $stream If true, returns a stream resource.
*
* @return string The text with the newlines replaced by the desired
* newline sequence (returned as a stream resource if
* $stream is true).
*/
public function replaceEOL($text, $eol = null, $stream = false)
{
if (is_null($eol)) {
$eol = $this->getEOL();
}
stream_filter_register('horde_eol', 'Horde_Stream_Filter_Eol');
$fp = $this->_writeStream($text, array(
'filter' => array(
'horde_eol' => array('eol' => $eol)
)
));
return $stream ? $fp : $this->_readStream($fp, true);
}
/**
* Determine the size of this MIME part and its child members.
*
* @todo Remove $approx parameter.
*
* @param boolean $approx If true, determines an approximate size for
* parts consisting of base64 encoded data.
*
* @return integer Size of the part, in bytes.
*/
public function getBytes($approx = false)
{
if ($this->getPrimaryType() == 'multipart') {
if (isset($this->_bytes)) {
return $this->_bytes;
}
$bytes = 0;
foreach ($this as $part) {
$bytes += $part->getBytes($approx);
}
return $bytes;
}
if ($this->_contents) {
fseek($this->_contents, 0, SEEK_END);
$bytes = ftell($this->_contents);
} else {
$bytes = $this->_bytes;
/* Base64 transfer encoding is approx. 33% larger than original
* data size (RFC 2045 [6.8]). */
if ($approx && ($this->_transferEncoding == 'base64')) {
$bytes *= 0.75;
}
}
return intval($bytes);
}
/**
* Explicitly set the size (in bytes) of this part. This value will only
* be returned (via getBytes()) if there are no contents currently set.
*
* This function is useful for setting the size of the part when the
* contents of the part are not fully loaded (i.e. creating a
* Horde_Mime_Part object from IMAP header information without loading the
* data of the part).
*
* @param integer $bytes The size of this part in bytes.
*/
public function setBytes($bytes)
{
/* Consider 'size' disposition parameter to be the canonical size.
* Only set bytes if that value doesn't exist. */
if (!$this->getDispositionParameter('size')) {
$this->setDispositionParameter('size', $bytes);
}
}
/**
* Output the size of this MIME part in KB.
*
* @todo Remove $approx parameter.
*
* @param boolean $approx If true, determines an approximate size for
* parts consisting of base64 encoded data.
*
* @return string Size of the part in KB.
*/
public function getSize($approx = false)
{
if (!($bytes = $this->getBytes($approx))) {
return 0;
}
$localeinfo = Horde_Nls::getLocaleInfo();
// TODO: Workaround broken number_format() prior to PHP 5.4.0.
return str_replace(
array('X', 'Y'),
array($localeinfo['decimal_point'], $localeinfo['thousands_sep']),
number_format(ceil($bytes / 1024), 0, 'X', 'Y')
);
}
/**
* Sets the Content-ID header for this part.
*
* @param string $cid Use this CID (if not already set). Else, generate
* a random CID.
*
* @return string The Content-ID for this part.
*/
public function setContentId($cid = null)
{
if (!is_null($id = $this->getContentId())) {
return $id;
}
$this->_headers->addHeaderOb(
is_null($cid)
? Horde_Mime_Headers_ContentId::create()
: new Horde_Mime_Headers_ContentId(null, $cid)
);
return $this->getContentId();
}
/**
* Returns the Content-ID for this part.
*
* @return string The Content-ID for this part (null if not set).
*/
public function getContentId()
{
return ($hdr = $this->_headers['content-id'])
? trim($hdr->value, '<>')
: null;
}
/**
* Alter the MIME ID of this part.
*
* @param string $mimeid The MIME ID.
*/
public function setMimeId($mimeid)
{
$this->_mimeid = $mimeid;
}
/**
* Returns the MIME ID of this part.
*
* @return string The MIME ID.
*/
public function getMimeId()
{
return $this->_mimeid;
}
/**
* Build the MIME IDs for this part and all subparts.
*
* @param string $id The ID of this part.
* @param boolean $rfc822 Is this a message/rfc822 part?
*/
public function buildMimeIds($id = null, $rfc822 = false)
{
$this->_status &= ~self::STATUS_REINDEX;
if (is_null($id)) {
$rfc822 = true;
$id = '';
}
if ($rfc822) {
if (empty($this->_parts) &&
($this->getPrimaryType() != 'multipart')) {
$this->setMimeId($id . '1');
} else {
if (empty($id) && ($this->getType() == 'message/rfc822')) {
$this->setMimeId('1.0');
} else {
$this->setMimeId($id . '0');
}
$i = 1;
foreach ($this as $val) {
$val->buildMimeIds($id . ($i++));
}
}
} else {
$this->setMimeId($id);
$id = $id
? ((substr($id, -2) === '.0') ? substr($id, 0, -1) : ($id . '.'))
: '';
if (count($this)) {
if ($this->getType() == 'message/rfc822') {
$this->rewind();
$this->current()->buildMimeIds($id, true);
} else {
$i = 1;
foreach ($this as $val) {
$val->buildMimeIds($id . ($i++));
}
}
}
}
}
/**
* Is this the base MIME part?
*
* @param boolean $base True if this is the base MIME part.
*/
public function isBasePart($base)
{
if (empty($base)) {
$this->_status &= ~self::STATUS_BASEPART;
} else {
$this->_status |= self::STATUS_BASEPART;
}
}
/**
* Set a piece of metadata on this object.
*
* @param string $key The metadata key.
* @param mixed $data The metadata. If null, clears the key.
*/
public function setMetadata($key, $data = null)
{
if (is_null($data)) {
unset($this->_metadata[$key]);
} else {
$this->_metadata[$key] = $data;
}
}
/**
* Retrieves metadata from this object.
*
* @param string $key The metadata key.
*
* @return mixed The metadata, or null if it doesn't exist.
*/
public function getMetadata($key)
{
return isset($this->_metadata[$key])
? $this->_metadata[$key]
: null;
}
/**
* Sends this message.
*
* @param string $email The address list to send to.
* @param Horde_Mime_Headers $headers The Horde_Mime_Headers object
* holding this message's headers.
* @param Horde_Mail_Transport $mailer A Horde_Mail_Transport object.
* @param array $opts Additional options:
*
* - broken_rfc2231: (boolean) Attempt to work around non-RFC
* 2231-compliant MUAs by generating both a RFC
* 2047-like parameter name and also the correct RFC
* 2231 parameter (@since 2.5.0).
* DEFAULT: false
* - encode: (integer) The encoding to use. A mask of self::ENCODE_*
* values.
* DEFAULT: Auto-determined based on transport driver.
*
*
* @throws Horde_Mime_Exception
* @throws InvalidArgumentException
*/
public function send($email, $headers, Horde_Mail_Transport $mailer,
array $opts = array())
{
$old_status = $this->_status;
$this->isBasePart(true);
/* Does the SMTP backend support 8BITMIME (RFC 1652)? */
$canonical = true;
$encode = self::ENCODE_7BIT;
if (isset($opts['encode'])) {
/* Always allow 7bit encoding. */
$encode |= $opts['encode'];
} elseif ($mailer instanceof Horde_Mail_Transport_Smtp) {
try {
$smtp_ext = $mailer->getSMTPObject()->getServiceExtensions();
if (isset($smtp_ext['8BITMIME'])) {
$encode |= self::ENCODE_8BIT;
}
} catch (Horde_Mail_Exception $e) {}
$canonical = false;
} elseif ($mailer instanceof Horde_Mail_Transport_Smtphorde) {
try {
if ($mailer->getSMTPObject()->data_8bit) {
$encode |= self::ENCODE_8BIT;
}
} catch (Horde_Mail_Exception $e) {}
$canonical = false;
}
$msg = $this->toString(array(
'canonical' => $canonical,
'encode' => $encode,
'headers' => false,
'stream' => true
));
/* Add MIME Headers if they don't already exist. */
if (!isset($headers['MIME-Version'])) {
$headers = $this->addMimeHeaders(array(
'encode' => $encode,
'headers' => $headers
));
}
if (!empty($this->_temp['toString'])) {
$headers->addHeader(
'Content-Transfer-Encoding',
$this->_temp['toString']
);
switch ($this->_temp['toString']) {
case '8bit':
if ($mailer instanceof Horde_Mail_Transport_Smtp) {
$mailer->addServiceExtensionParameter('BODY', '8BITMIME');
}
break;
}
}
$this->_status = $old_status;
$rfc822 = new Horde_Mail_Rfc822();
try {
$mailer->send($rfc822->parseAddressList($email)->writeAddress(array(
'encode' => $this->getHeaderCharset() ?: true,
'idn' => true
)), $headers->toArray(array(
'broken_rfc2231' => !empty($opts['broken_rfc2231']),
'canonical' => $canonical,
'charset' => $this->getHeaderCharset()
)), $msg);
} catch (Horde_Mail_Exception $e) {
throw new Horde_Mime_Exception($e);
}
}
/**
* Finds the main "body" text part (if any) in a message.
* "Body" data is the first text part under this part.
*
* @param string $subtype Specifically search for this subtype.
*
* @return mixed The MIME ID of the main body part, or null if a body
* part is not found.
*/
public function findBody($subtype = null)
{
$this->buildMimeIds();
foreach ($this->partIterator() as $val) {
$id = $val->getMimeId();
if (($val->getPrimaryType() == 'text') &&
((intval($id) === 1) || !$this->getMimeId()) &&
(is_null($subtype) || ($val->getSubType() == $subtype)) &&
($val->getDisposition() !== 'attachment')) {
return $id;
}
}
return null;
}
/**
* Returns the recursive iterator needed to iterate through this part.
*
* @since 2.8.0
*
* @param boolean $current Include the current part as the base?
*
* @return Iterator Recursive iterator.
*/
public function partIterator($current = true)
{
$this->_reindex(true);
return new Horde_Mime_Part_Iterator($this, $current);
}
/**
* Returns a subpart by index.
*
* @return Horde_Mime_Part Part, or null if not found.
*/
public function getPartByIndex($index)
{
if (!isset($this->_parts[$index])) {
return null;
}
$part = $this->_parts[$index];
$part->parent = $this;
return $part;
}
/**
* Reindexes the MIME IDs, if necessary.
*
* @param boolean $force Reindex if the current part doesn't have an ID.
*/
protected function _reindex($force = false)
{
$id = $this->getMimeId();
if (($this->_status & self::STATUS_REINDEX) ||
($force && is_null($id))) {
$this->buildMimeIds(
is_null($id)
? (($this->getPrimaryType() === 'multipart') ? '0' : '1')
: $id
);
}
}
/**
* Write data to a stream.
*
* @param array $data The data to write. Either a stream resource or
* a string.
* @param array $options Additional options:
* - error: (boolean) Catch errors when writing to the stream. Throw an
* ErrorException if an error is found.
* DEFAULT: false
* - filter: (array) Filter(s) to apply to the string. Keys are the
* filter names, values are filter params.
* - fp: (resource) Use this stream instead of creating a new one.
*
* @return resource The stream resource.
* @throws ErrorException
*/
protected function _writeStream($data, $options = array())
{
if (empty($options['fp'])) {
$fp = fopen('php://temp/maxmemory:' . self::$memoryLimit, 'r+');
} else {
$fp = $options['fp'];
fseek($fp, 0, SEEK_END);
}
if (!is_array($data)) {
$data = array($data);
}
$append_filter = array();
if (!empty($options['filter'])) {
foreach ($options['filter'] as $key => $val) {
$append_filter[] = stream_filter_append($fp, $key, STREAM_FILTER_WRITE, $val);
}
}
if (!empty($options['error'])) {
set_error_handler(function($errno, $errstr) {
throw new ErrorException($errstr, $errno);
});
$error = null;
}
try {
reset($data);
while (list(,$d) = each($data)) {
if (is_resource($d)) {
rewind($d);
while (!feof($d)) {
fwrite($fp, fread($d, 8192));
}
} elseif (is_string($d)) {
$len = strlen($d);
$i = 0;
while ($i < $len) {
fwrite($fp, substr($d, $i, 8192));
$i += 8192;
}
}
}
} catch (ErrorException $e) {
$error = $e;
}
foreach ($append_filter as $val) {
stream_filter_remove($val);
}
if (!empty($options['error'])) {
restore_error_handler();
if ($error) {
throw $error;
}
}
return $fp;
}
/**
* Read data from a stream.
*
* @param resource $fp An active stream.
* @param boolean $close Close the stream when done reading?
*
* @return string The data from the stream.
*/
protected function _readStream($fp, $close = false)
{
$out = '';
if (!is_resource($fp)) {
return $out;
}
rewind($fp);
while (!feof($fp)) {
$out .= fread($fp, 8192);
}
if ($close) {
fclose($fp);
}
return $out;
}
/**
* Scans a stream for content type.
*
* @param resource $fp A stream resource.
*
* @param mixed Either 'binary', '8bit', or false.
*/
protected function _scanStream($fp)
{
rewind($fp);
stream_filter_register(
'horde_mime_scan_stream',
'Horde_Mime_Filter_Encoding'
);
$filter_params = new stdClass;
$filter = stream_filter_append(
$fp,
'horde_mime_scan_stream',
STREAM_FILTER_READ,
$filter_params
);
while (!feof($fp)) {
fread($fp, 8192);
}
stream_filter_remove($filter);
return $filter_params->body;
}
/* Static methods. */
/**
* Attempts to build a Horde_Mime_Part object from message text.
*
* @param string $text The text of the MIME message.
* @param array $opts Additional options:
* - forcemime: (boolean) If true, the message data is assumed to be
* MIME data. If not, a MIME-Version header must exist (RFC
* 2045 [4]) to be parsed as a MIME message.
* DEFAULT: false
* - level: (integer) Current nesting level of the MIME data.
* DEFAULT: 0
* - no_body: (boolean) If true, don't set body contents of parts (since
* 2.2.0).
* DEFAULT: false
*
* @return Horde_Mime_Part A MIME Part object.
* @throws Horde_Mime_Exception
*/
public static function parseMessage($text, array $opts = array())
{
/* Mini-hack to get a blank Horde_Mime part so we can call
* replaceEOL(). Convert to EOL, since that is the expected EOL for
* use internally within a Horde_Mime_Part object. */
$part = new Horde_Mime_Part();
$rawtext = $part->replaceEOL($text, self::EOL);
/* Find the header. */
$hdr_pos = self::_findHeader($rawtext, self::EOL);
unset($opts['ctype']);
$ob = self::_getStructure(substr($rawtext, 0, $hdr_pos), substr($rawtext, $hdr_pos + 2), $opts);
$ob->buildMimeIds();
return $ob;
}
/**
* Creates a MIME object from the text of one part of a MIME message.
*
* @param string $header The header text.
* @param string $body The body text.
* @param array $opts Additional options:
*
* - ctype: (string) The default content-type.
* - forcemime: (boolean) If true, the message data is assumed to be
* MIME data. If not, a MIME-Version header must exist to
* be parsed as a MIME message.
* - level: (integer) Current nesting level.
* - no_body: (boolean) If true, don't set body contents of parts.
*
*
* @return Horde_Mime_Part The MIME part object.
*/
protected static function _getStructure($header, $body,
array $opts = array())
{
$opts = array_merge(array(
'ctype' => 'text/plain',
'forcemime' => false,
'level' => 0,
'no_body' => false
), $opts);
/* Parse headers text into a Horde_Mime_Headers object. */
$hdrs = Horde_Mime_Headers::parseHeaders($header);
$ob = new Horde_Mime_Part();
/* This is not a MIME message. */
if (!$opts['forcemime'] && !isset($hdrs['MIME-Version'])) {
$ob->setType('text/plain');
if ($len = strlen($body)) {
if ($opts['no_body']) {
$ob->setBytes($len);
} else {
$ob->setContents($body);
}
}
return $ob;
}
/* Content type. */
if ($tmp = $hdrs['Content-Type']) {
$ob->setType($tmp->value);
foreach ($tmp->params as $key => $val) {
$ob->setContentTypeParameter($key, $val);
}
} else {
$ob->setType($opts['ctype']);
}
/* Content transfer encoding. */
if ($tmp = $hdrs['Content-Transfer-Encoding']) {
$ob->setTransferEncoding(strval($tmp));
}
/* Content-Description. */
if ($tmp = $hdrs['Content-Description']) {
$ob->setDescription(strval($tmp));
}
/* Content-Disposition. */
if ($tmp = $hdrs['Content-Disposition']) {
$ob->setDisposition($tmp->value);
foreach ($tmp->params as $key => $val) {
$ob->setDispositionParameter($key, $val);
}
}
/* Content-Duration */
if ($tmp = $hdrs['Content-Duration']) {
$ob->setDuration(strval($tmp));
}
/* Content-ID. */
if ($tmp = $hdrs['Content-Id']) {
$ob->setContentId(strval($tmp));
}
if (($len = strlen($body)) && ($ob->getPrimaryType() != 'multipart')) {
if ($opts['no_body']) {
$ob->setBytes($len);
} else {
$ob->setContents($body);
}
}
if (++$opts['level'] >= self::NESTING_LIMIT) {
return $ob;
}
/* Process subparts. */
switch ($ob->getPrimaryType()) {
case 'message':
if ($ob->getSubType() == 'rfc822') {
$ob[] = self::parseMessage($body, array(
'forcemime' => true,
'no_body' => $opts['no_body']
));
}
break;
case 'multipart':
$boundary = $ob->getContentTypeParameter('boundary');
if (!is_null($boundary)) {
foreach (self::_findBoundary($body, 0, $boundary) as $val) {
if (!isset($val['length'])) {
break;
}
$subpart = substr($body, $val['start'], $val['length']);
$hdr_pos = self::_findHeader($subpart, self::EOL);
$ob[] = self::_getStructure(
substr($subpart, 0, $hdr_pos),
substr($subpart, $hdr_pos + 2),
array(
'ctype' => ($ob->getSubType() == 'digest') ? 'message/rfc822' : 'text/plain',
'forcemime' => true,
'level' => $opts['level'],
'no_body' => $opts['no_body']
)
);
}
}
break;
}
return $ob;
}
/**
* Attempts to obtain the raw text of a MIME part.
*
* @param mixed $text The full text of the MIME message. The text is
* assumed to be MIME data (no MIME-Version checking
* is performed). It can be either a stream or a
* string.
* @param string $type Either 'header' or 'body'.
* @param string $id The MIME ID.
*
* @return string The raw text.
* @throws Horde_Mime_Exception
*/
public static function getRawPartText($text, $type, $id)
{
/* Mini-hack to get a blank Horde_Mime part so we can call
* replaceEOL(). From an API perspective, getRawPartText() should be
* static since it is not working on MIME part data. */
$part = new Horde_Mime_Part();
$rawtext = $part->replaceEOL($text, self::RFC_EOL);
/* We need to carry around the trailing "\n" because this is needed
* to correctly find the boundary string. */
$hdr_pos = self::_findHeader($rawtext, self::RFC_EOL);
$curr_pos = $hdr_pos + 3;
if ($id == 0) {
switch ($type) {
case 'body':
return substr($rawtext, $curr_pos + 1);
case 'header':
return trim(substr($rawtext, 0, $hdr_pos));
}
}
$hdr_ob = Horde_Mime_Headers::parseHeaders(trim(substr($rawtext, 0, $hdr_pos)));
/* If this is a message/rfc822, pass the body into the next loop.
* Don't decrement the ID here. */
if (($ct = $hdr_ob['Content-Type']) && ($ct == 'message/rfc822')) {
return self::getRawPartText(
substr($rawtext, $curr_pos + 1),
$type,
$id
);
}
$base_pos = strpos($id, '.');
$orig_id = $id;
if ($base_pos !== false) {
$id = substr($id, $base_pos + 1);
$base_pos = substr($orig_id, 0, $base_pos);
} else {
$base_pos = $id;
$id = 0;
}
if ($ct && !isset($ct->params['boundary'])) {
if ($orig_id == '1') {
return substr($rawtext, $curr_pos + 1);
}
throw new Horde_Mime_Exception('Could not find MIME part.');
}
$b_find = self::_findBoundary(
$rawtext,
$curr_pos,
$ct->params['boundary'],
$base_pos
);
if (!isset($b_find[$base_pos])) {
throw new Horde_Mime_Exception('Could not find MIME part.');
}
return self::getRawPartText(
substr(
$rawtext,
$b_find[$base_pos]['start'],
$b_find[$base_pos]['length'] - 1
),
$type,
$id
);
}
/**
* Find the location of the end of the header text.
*
* @param string $text The text to search.
* @param string $eol The EOL string.
*
* @return integer Header position.
*/
protected static function _findHeader($text, $eol)
{
$hdr_pos = strpos($text, $eol . $eol);
return ($hdr_pos === false)
? strlen($text)
: $hdr_pos;
}
/**
* Find the location of the next boundary string.
*
* @param string $text The text to search.
* @param integer $pos The current position in $text.
* @param string $boundary The boundary string.
* @param integer $end If set, return after matching this many
* boundaries.
*
* @return array Keys are the boundary number, values are an array with
* two elements: 'start' and 'length'.
*/
protected static function _findBoundary($text, $pos, $boundary,
$end = null)
{
$i = 0;
$out = array();
$search = "--" . $boundary;
$search_len = strlen($search);
while (($pos = strpos($text, $search, $pos)) !== false) {
/* Boundary needs to appear at beginning of string or right after
* a LF. */
if (($pos != 0) && ($text[$pos - 1] != "\n")) {
continue;
}
if (isset($out[$i])) {
$out[$i]['length'] = $pos - $out[$i]['start'] - 1;
}
if (!is_null($end) && ($end == $i)) {
break;
}
$pos += $search_len;
if (isset($text[$pos])) {
switch ($text[$pos]) {
case "\r":
$pos += 2;
$out[++$i] = array('start' => $pos);
break;
case "\n":
$out[++$i] = array('start' => ++$pos);
break;
case '-':
return $out;
}
}
}
return $out;
}
/* ArrayAccess methods. */
/**
*/
public function offsetExists($offset)
{
return ($this[$offset] !== null);
}
/**
*/
public function offsetGet($offset)
{
$this->_reindex();
if (strcmp($offset, $this->getMimeId()) === 0) {
$this->parent = null;
return $this;
}
foreach ($this->_parts as $val) {
if (strcmp($offset, $val->getMimeId()) === 0) {
$val->parent = $this;
return $val;
}
if ($found = $val[$offset]) {
return $found;
}
}
return null;
}
/**
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->_parts[] = $value;
$this->_status |= self::STATUS_REINDEX;
} elseif ($part = $this[$offset]) {
if ($part->parent === $this) {
if (($k = array_search($part, $this->_parts, true)) !== false) {
$value->setMimeId($part->getMimeId());
$this->_parts[$k] = $value;
}
} else {
$this->parent[$offset] = $value;
}
}
}
/**
*/
public function offsetUnset($offset)
{
if ($part = $this[$offset]) {
if ($part->parent === $this) {
if (($k = array_search($part, $this->_parts, true)) !== false) {
unset($this->_parts[$k]);
$this->_parts = array_values($this->_parts);
}
} else {
unset($part->parent[$offset]);
}
$this->_status |= self::STATUS_REINDEX;
}
}
/* Countable methods. */
/**
* Returns the number of child message parts (doesn't include
* grandchildren or more remote ancestors).
*
* @return integer Number of message parts.
*/
public function count()
{
return count($this->_parts);
}
/* RecursiveIterator methods. */
/**
* @since 2.8.0
*/
public function current()
{
return (($key = $this->key()) === null)
? null
: $this->getPartByIndex($key);
}
/**
* @since 2.8.0
*/
public function key()
{
return (isset($this->_temp['iterate']) && isset($this->_parts[$this->_temp['iterate']]))
? $this->_temp['iterate']
: null;
}
/**
* @since 2.8.0
*/
public function next()
{
++$this->_temp['iterate'];
}
/**
* @since 2.8.0
*/
public function rewind()
{
$this->_reindex();
reset($this->_parts);
$this->_temp['iterate'] = key($this->_parts);
}
/**
* @since 2.8.0
*/
public function valid()
{
return ($this->key() !== null);
}
/**
* @since 2.8.0
*/
public function hasChildren()
{
return (($curr = $this->current()) && count($curr));
}
/**
* @since 2.8.0
*/
public function getChildren()
{
return $this->current();
}
/* Serializable methods. */
/**
* Serialization.
*
* @return string Serialized data.
*/
public function serialize()
{
$data = array(
// Serialized data ID.
self::VERSION,
$this->_bytes,
$this->_eol,
$this->_hdrCharset,
$this->_headers,
$this->_metadata,
$this->_mimeid,
$this->_parts,
$this->_status,
$this->_transferEncoding
);
if (!empty($this->_contents)) {
$data[] = $this->_readStream($this->_contents);
}
return serialize($data);
}
/**
* Unserialization.
*
* @param string $data Serialized data.
*
* @throws Exception
*/
public function unserialize($data)
{
$data = @unserialize($data);
if (!is_array($data) ||
!isset($data[0]) ||
($data[0] != self::VERSION)) {
switch ($data[0]) {
case 1:
$convert = new Horde_Mime_Part_Upgrade_V1($data);
$data = $convert->data;
break;
default:
$data = null;
break;
}
if (is_null($data)) {
throw new Exception('Cache version change');
}
}
$key = 0;
$this->_bytes = $data[++$key];
$this->_eol = $data[++$key];
$this->_hdrCharset = $data[++$key];
$this->_headers = $data[++$key];
$this->_metadata = $data[++$key];
$this->_mimeid = $data[++$key];
$this->_parts = $data[++$key];
$this->_status = $data[++$key];
$this->_transferEncoding = $data[++$key];
if (isset($data[++$key])) {
$this->setContents($data[$key]);
}
}
/* Deprecated elements. */
/**
* @deprecated
*/
const UNKNOWN = 'x-unknown';
/**
* @deprecated
*/
public static $encodingTypes = array(
'7bit', '8bit', 'base64', 'binary', 'quoted-printable',
// Non-RFC types, but old mailers may still use
'uuencode', 'x-uuencode', 'x-uue'
);
/**
* @deprecated
*/
public static $mimeTypes = array(
'text', 'multipart', 'message', 'application', 'audio', 'image',
'video', 'model'
);
/**
* @deprecated Use setContentTypeParameter with a null $data value.
*/
public function clearContentTypeParameter($label)
{
$this->setContentTypeParam($label, null);
}
/**
* @deprecated Use iterator instead.
*/
public function contentTypeMap($sort = true)
{
$map = array();
foreach ($this->partIterator() as $val) {
$map[$val->getMimeId()] = $val->getType();
}
return $map;
}
/**
* @deprecated Use array access instead.
*/
public function addPart($mime_part)
{
$this[] = $mime_part;
}
/**
* @deprecated Use array access instead.
*/
public function getPart($id)
{
return $this[$id];
}
/**
* @deprecated Use array access instead.
*/
public function alterPart($id, $mime_part)
{
$this[$id] = $mime_part;
}
/**
* @deprecated Use array access instead.
*/
public function removePart($id)
{
unset($this[$id]);
}
}
Horde_Mime-2.9.3/lib/Horde/Mime/QuotedPrintable.php 0000664 0001750 0001750 00000003302 12653751222 020155 0 ustar jan jan
* @category Horde
* @copyright 2014-2016 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Mime
* @since 2.5.0
*/
class Horde_Mime_QuotedPrintable
{
/**
* Decodes quoted-printable data.
*
* @param string $data The Q-P data to decode.
*
* @return string The decoded text.
*/
public static function decode($data)
{
return quoted_printable_decode($data);
}
/**
* Encodes text via quoted-printable encoding.
*
* @param string $text The text to encode (UTF-8).
* @param string $eol The EOL sequence to use.
* @param integer $wrap Wrap a line at this many characters.
*
* @return string The quoted-printable encoded string.
*/
public static function encode($text, $eol = "\n", $wrap = 76)
{
$fp = fopen('php://temp', 'r+');
stream_filter_append(
$fp,
'convert.quoted-printable-encode',
STREAM_FILTER_WRITE,
array(
'line-break-chars' => $eol,
'line-length' => $wrap
)
);
fwrite($fp, $text);
rewind($fp);
$out = stream_get_contents($fp);
fclose($fp);
return $out;
}
}
Horde_Mime-2.9.3/lib/Horde/Mime/Related.php 0000664 0001750 0001750 00000010614 12653751222 016437 0 ustar jan jan
* @category Horde
* @copyright 2012-2016 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Mime
*/
class Horde_Mime_Related implements IteratorAggregate
{
/**
* Content IDs.
*
* @var array
*/
protected $_cids = array();
/**
* Start ID.
*
* @var string
*/
protected $_start;
/**
* Constructor.
*
* @param Horde_Mime_Part $mime_part A MIME part object. Must be of
* type multipart/related.
*/
public function __construct(Horde_Mime_Part $mime_part)
{
if ($mime_part->getType() != 'multipart/related') {
throw new InvalidArgumentException('MIME part must be of type multipart/related');
}
$id = null;
$ids = array();
$related_id = $mime_part->getMimeId();
/* Build a list of parts -> CIDs. */
foreach ($mime_part->partIterator() as $val) {
$part_id = $val->getMimeId();
$ids[] = $part_id;
if ((strcmp($related_id, $part_id) !== 0) &&
($cid = $val->getContentId())) {
$this->_cids[$part_id] = $cid;
}
}
/* Look at the 'start' parameter to determine which part to start
* with. If no 'start' parameter, use the first part (RFC 2387
* [3.1]). */
if ($start = $mime_part->getContentTypeParameter('start')) {
$id = $this->cidSearch(trim($start, '<> '));
}
if (empty($id)) {
reset($ids);
$id = next($ids);
}
$this->_start = $id;
}
/**
* Return the start ID.
*
* @return string The start ID.
*/
public function startId()
{
return $this->_start;
}
/**
* Search for a CID in the related part.
*
* @param string $cid The CID to search for.
*
* @return string The MIME ID or false if not found.
*/
public function cidSearch($cid)
{
return array_search($cid, $this->_cids);
}
/**
* Scan for CID strings in HTML data and replace with data returned from
* a callback method.
*
* @param mixed $text The HTML text (can be Horde_Domhtml object).
* @param callback $callback Callback method. Receives three arguments:
* MIME ID, the attribute name containing the
* content ID, and the node object. Expects
* return value of URL to display the data.
* @param string $charset HTML data charset.
*
* @return Horde_Domhtml A Horde_Domhtml object.
*/
public function cidReplace($text, $callback, $charset = 'UTF-8')
{
$dom = ($text instanceof Horde_Domhtml)
? $text
: new Horde_Domhtml($text, $charset);
foreach ($dom as $node) {
if ($node instanceof DOMElement) {
switch (Horde_String::lower($node->tagName)) {
case 'body':
case 'td':
$this->_cidReplace($node, 'background', $callback);
break;
case 'img':
$this->_cidReplace($node, 'src', $callback);
break;
}
}
}
return $dom;
}
/**
*/
protected function _cidReplace($node, $attribute, $callback)
{
if ($node->hasAttribute($attribute)) {
$val = $node->getAttribute($attribute);
if ((strpos($val, 'cid:') === 0) &&
($id = $this->cidSearch(substr($val, 4)))) {
$node->setAttribute($attribute, call_user_func($callback, $id, $attribute, $node));
}
}
}
/* IteratorAggregate method. */
public function getIterator()
{
return new ArrayIterator($this->_cids);
}
}
Horde_Mime-2.9.3/lib/Horde/Mime/Translation.php 0000664 0001750 0001750 00000001731 12653751222 017355 0 ustar jan jan
* @category Horde
* @copyright 2010-2016 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Mime
*/
class Horde_Mime_Translation extends Horde_Translation_Autodetect
{
/**
* The translation domain
*
* @var string
*/
protected static $_domain = 'Horde_Mime';
/**
* The absolute PEAR path to the translations for the default gettext handler.
*
* @var string
*/
protected static $_pearDirectory = '@data_dir@';
}
Horde_Mime-2.9.3/lib/Horde/Mime/Uudecode.php 0000664 0001750 0001750 00000007000 12653751222 016607 0 ustar jan jan , Arpad Ray
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Mime
*/
/**
* Class used to uudecode data.
*
* Needed because PHP's built-in uudecode() method is broken.
*
* @author Chuck Hagenbuch
* @author Aidan Lister
* @author Michael Slusarz
* @author Michael Wallner
* @category Horde
* @copyright 2009-2016 Horde LLC
* @copyright 2004-2007 Aidan Lister , Arpad Ray
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Mime
* @since 2.5.0
*/
class Horde_Mime_Uudecode implements Countable, IteratorAggregate
{
const UUENCODE_REGEX = "/begin ([0-7]{3}) (.+)\r?\n(.+)\r?\nend/Us";
/**
* Uudecode data.
*
* A list of arrays, with each array corresponding to a file in the input
* and containing the following keys:
* - data: (string) Unencoded data.
* - name: (string) Filename.
* - perms: (string) Octal permissions.
*
* @var array
*/
protected $_data = array();
/**
* Scans $input for uuencoded data and converts it to unencoded data.
*
* @param string $input The input data
*/
public function __construct($input)
{
/* Find all uuencoded sections. */
if (preg_match_all(self::UUENCODE_REGEX, $input, $matches, PREG_SET_ORDER)) {
reset($matches);
while (list(,$v) = each($matches)) {
$this->_data[] = array(
'data' => $this->_uudecode($v[3]),
'name' => $v[2],
'perm' => $v[1]
);
}
}
}
/**
* PHP 5's built-in convert_uudecode() is broken. Need this wrapper.
*
* @param string $input UUencoded input.
*
* @return string Decoded string.
*/
protected function _uudecode($input)
{
$decoded = '';
foreach (explode("\n", $input) as $line) {
$c = count($bytes = unpack('c*', substr(trim($line,"\r\n\t"), 1)));
while ($c % 4) {
$bytes[++$c] = 0;
}
foreach (array_chunk($bytes, 4) as $b) {
$b0 = ($b[0] == 0x60) ? 0 : $b[0] - 0x20;
$b1 = ($b[1] == 0x60) ? 0 : $b[1] - 0x20;
$b2 = ($b[2] == 0x60) ? 0 : $b[2] - 0x20;
$b3 = ($b[3] == 0x60) ? 0 : $b[3] - 0x20;
$b0 <<= 2;
$b0 |= ($b1 >> 4) & 0x03;
$b1 <<= 4;
$b1 |= ($b2 >> 2) & 0x0F;
$b2 <<= 6;
$b2 |= $b3 & 0x3F;
$decoded .= pack('c*', $b0, $b1, $b2);
}
}
return rtrim($decoded, "\0");
}
/* Countable method. */
public function count()
{
return count($this->_data);
}
/* IteratorAggregate method. */
public function getIterator()
{
return new ArrayIterator($this->_data);
}
}
Horde_Mime-2.9.3/lib/Horde/Mime.php 0000664 0001750 0001750 00000025466 12653751222 015072 0 ustar jan jan
* @author Michael Slusarz
* @category Horde
* @copyright 1999-2016 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Mime
*/
class Horde_Mime
{
/**
* The RFC defined EOL string.
*
* @var string
*/
const EOL = "\r\n";
/**
* Use windows-1252 charset when decoding ISO-8859-1 data?
* HTML 5 requires this behavior, so it is the default.
*
* @var boolean
*/
public static $decodeWindows1252 = true;
/**
* Determines if a string contains 8-bit (non US-ASCII) characters.
*
* @param string $string The string to check.
* @param string $charset The charset of the string. Defaults to
* US-ASCII. (@deprecated)
*
* @return boolean True if string contains non 7-bit characters.
*/
public static function is8bit($string, $charset = null)
{
$string = strval($string);
for ($i = 0, $len = strlen($string); $i < $len; ++$i) {
if (ord($string[$i]) > 127) {
return true;
}
}
return false;
}
/**
* MIME encodes a string (RFC 2047).
*
* @param string $text The text to encode (UTF-8).
* @param string $charset The character set to encode to.
*
* @return string The MIME encoded string (US-ASCII).
*/
public static function encode($text, $charset = 'UTF-8')
{
$charset = Horde_String::lower($charset);
$text = Horde_String::convertCharset($text, 'UTF-8', $charset);
$encoded = $is_encoded = false;
$lwsp = $word = null;
$out = '';
/* 0 = word unencoded
* 1 = word encoded
* 2 = spaces */
$parts = array();
/* Tokenize string. */
for ($i = 0, $len = strlen($text); $i < $len; ++$i) {
switch ($text[$i]) {
case "\t":
case "\r":
case "\n":
if (!is_null($word)) {
$parts[] = array(intval($encoded), $word, $i - $word);
$word = null;
} elseif (!is_null($lwsp)) {
$parts[] = array(2, $lwsp, $i - $lwsp);
$lwsp = null;
}
$parts[] = array(0, $i, 1);
break;
case ' ':
if (!is_null($word)) {
$parts[] = array(intval($encoded), $word, $i - $word);
$word = null;
}
if (is_null($lwsp)) {
$lwsp = $i;
}
break;
default:
if (is_null($word)) {
$encoded = false;
$word = $i;
if (!is_null($lwsp)) {
$parts[] = array(2, $lwsp, $i - $lwsp);
$lwsp = null;
}
/* Check for MIME encoding delimiter. Encode it if
* found. */
if (($text[$i] === '=') &&
(($i + 1) < $len) &&
($text[$i +1] === '?')) {
++$i;
$encoded = $is_encoded = true;
}
}
/* Check for 8-bit characters or control characters. */
if (!$encoded) {
$c = ord($text[$i]);
if ($encoded = (($c & 0x80) || ($c < 32))) {
$is_encoded = true;
}
}
break;
}
}
if (!$is_encoded) {
return $text;
}
if (is_null($lwsp)) {
$parts[] = array(intval($encoded), $word, $len);
} else {
$parts[] = array(2, $lwsp, $len);
}
/* Combine parts into MIME encoded string. */
for ($i = 0, $cnt = count($parts); $i < $cnt; ++$i) {
$val = $parts[$i];
switch ($val[0]) {
case 0:
case 2:
$out .= substr($text, $val[1], $val[2]);
break;
case 1:
$j = $i;
for ($k = $i + 1; $k < $cnt; ++$k) {
switch ($parts[$k][0]) {
case 0:
break 2;
case 1:
$i = $k;
break;
}
}
$encode = '';
for (; $j <= $i; ++$j) {
$encode .= substr($text, $parts[$j][1], $parts[$j][2]);
}
$delim = '=?' . $charset . '?b?';
$e_parts = explode(
self::EOL,
rtrim(
chunk_split(
base64_encode($encode),
/* strlen($delim) + 2 = space taken by MIME
* delimiter */
intval((75 - strlen($delim) + 2) / 4) * 4
)
)
);
$tmp = array();
foreach ($e_parts as $val) {
$tmp[] = $delim . $val . '?=';
}
$out .= implode(' ', $tmp);
break;
}
}
return rtrim($out);
}
/**
* Decodes a MIME encoded (RFC 2047) string.
*
* @param string $string The MIME encoded text.
*
* @return string The decoded text.
*/
public static function decode($string)
{
$old_pos = 0;
$out = '';
while (($pos = strpos($string, '=?', $old_pos)) !== false) {
/* Save any preceding text, if it is not LWSP between two
* encoded words. */
$pre = substr($string, $old_pos, $pos - $old_pos);
if (!$old_pos ||
(strspn($pre, " \t\n\r") != strlen($pre))) {
$out .= $pre;
}
/* Search for first delimiting question mark (charset). */
if (($d1 = strpos($string, '?', $pos + 2)) === false) {
break;
}
$orig_charset = substr($string, $pos + 2, $d1 - $pos - 2);
if (self::$decodeWindows1252 &&
(Horde_String::lower($orig_charset) == 'iso-8859-1')) {
$orig_charset = 'windows-1252';
}
/* Search for second delimiting question mark (encoding). */
if (($d2 = strpos($string, '?', $d1 + 1)) === false) {
break;
}
$encoding = substr($string, $d1 + 1, $d2 - $d1 - 1);
/* Search for end of encoded data. */
if (($end = strpos($string, '?=', $d2 + 1)) === false) {
break;
}
$encoded_text = substr($string, $d2 + 1, $end - $d2 - 1);
switch ($encoding) {
case 'Q':
case 'q':
$out .= Horde_String::convertCharset(
quoted_printable_decode(
str_replace('_', ' ', $encoded_text)
),
$orig_charset,
'UTF-8'
);
break;
case 'B':
case 'b':
$out .= Horde_String::convertCharset(
base64_decode($encoded_text),
$orig_charset,
'UTF-8'
);
break;
default:
// Ignore unknown encoding.
break;
}
$old_pos = $end + 2;
}
return $out . substr($string, $old_pos);
}
/* Deprecated methods. */
/**
* @deprecated Use Horde_Mime_Headers_MessageId::create() instead.
*/
public static function generateMessageId()
{
return Horde_Mime_Headers_MessageId::create()->value;
}
/**
* @deprecated Use Horde_Mime_Uudecode instead.
*/
public static function uudecode($input)
{
$uudecode = new Horde_Mime_Uudecode($input);
return iterator_to_array($uudecode);
}
/**
* @deprecated
*/
public static $brokenRFC2231 = false;
/**
* @deprecated
*/
const MIME_PARAM_QUOTED = '/[\x01-\x20\x22\x28\x29\x2c\x2f\x3a-\x40\x5b-\x5d]/';
/**
* @deprecated Use Horde_Mime_Headers_ContentParam#encode() instead.
*/
public static function encodeParam($name, $val, array $opts = array())
{
$cp = new Horde_Mime_Headers_ContentParam(
'UNUSED',
array($name => $val)
);
return $cp->encode(array_merge(array(
'broken_rfc2231' => self::$brokenRFC2231
), $opts));
}
/**
* @deprecated Use Horde_Mime_Headers_ELement_ContentParam instead.
*/
public static function decodeParam($type, $data)
{
$cp = new Horde_Mime_Headers_ContentParam(
'UNUSED',
$data
);
if (strlen($cp->value)) {
$val = $cp->value;
} else {
$val = (Horde_String::lower($type) == 'content-type')
? 'text/plain'
: 'attachment';
}
return array(
'params' => $cp->params,
'val' => $val
);
}
/**
* @deprecated Use Horde_Mime_Id instead.
*/
public static function mimeIdArithmetic($id, $action, $options = array())
{
$id_ob = new Horde_Mime_Id($id);
switch ($action) {
case 'down':
$action = $id_ob::ID_DOWN;
break;
case 'next':
$action = $id_ob::ID_NEXT;
break;
case 'prev':
$action = $id_ob::ID_PREV;
break;
case 'up':
$action = $id_ob::ID_UP;
break;
}
return $id_ob->idArithmetic($action, $options);
}
/**
* @deprecated Use Horde_Mime_Id instead.
*/
public static function isChild($base, $id)
{
$id_ob = new Horde_Mime_Id($base);
return $id_ob->isChild($id);
}
/**
* @deprecated Use Horde_Mime_QuotedPrintable instead.
*/
public static function quotedPrintableEncode($text, $eol = self::EOL,
$wrap = 76)
{
return Horde_Mime_QuotedPrintable::encode($text, $eol, $wrap);
}
}
Horde_Mime-2.9.3/locale/ar/LC_MESSAGES/Horde_Mime.mo 0000664 0001750 0001750 00000000573 12653751222 017646 0 ustar jan jan $ , 8 A 9 Project-Id-Version: Horde_Mime
Report-Msgid-Bugs-To: dev@lists.horde.org
POT-Creation-Date: 2010-10-13 01:27+0200
PO-Revision-Date: 2010-10-13 01:27+0200
Last-Translator: Automatically generated
Language-Team: i18n@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Horde_Mime-2.9.3/locale/ar/LC_MESSAGES/Horde_Mime.po 0000664 0001750 0001750 00000003143 12653751222 017645 0 ustar jan jan # Arabic translations for Horde_Mime module.
# Copyright 2010-2016 Horde LLC (http://www.horde.org/)
# This file is distributed under the same license as the Horde_Mime module.
# Automatically generated, 2010.
#
msgid ""
msgstr ""
"Project-Id-Version: Horde_Mime\n"
"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
"POT-Creation-Date: 2010-10-13 01:27+0200\n"
"PO-Revision-Date: 2010-10-13 01:27+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: i18n@lists.horde.org\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: lib/Horde/Mime/Mdn.php:202
msgid "Disposition Notification"
msgstr ""
#: lib/Horde/Mime/Mail.php:460
msgid "HTML Version of Message"
msgstr ""
#: lib/Horde/Mime/Mail.php:404
#, php-format
msgid "Invalid character in e-mail address: %s."
msgstr ""
#: lib/Horde/Mime/Headers.php:519
msgid "List-Archive"
msgstr ""
#: lib/Horde/Mime/Headers.php:514
#, fuzzy
msgid "List-Help"
msgstr "قائمة عناوين المساعدة"
#: lib/Horde/Mime/Headers.php:521
msgid "List-Id"
msgstr ""
#: lib/Horde/Mime/Headers.php:517
msgid "List-Owner"
msgstr ""
#: lib/Horde/Mime/Headers.php:518
msgid "List-Post"
msgstr ""
#: lib/Horde/Mime/Headers.php:516
msgid "List-Subscribe"
msgstr ""
#: lib/Horde/Mime/Headers.php:515
msgid "List-Unsubscribe"
msgstr ""
#: lib/Horde/Mime/Mail.php:458
msgid "Plaintext Version of Message"
msgstr ""
#: lib/Horde/Mime/Mdn.php:213
#, php-format
msgid ""
"The message sent on %s to %s with subject \"%s\" has been displayed.\n"
"\n"
"This is no guarantee that the message has been read or understood."
msgstr ""
Horde_Mime-2.9.3/locale/bg/LC_MESSAGES/Horde_Mime.mo 0000664 0001750 0001750 00000000573 12653751222 017634 0 ustar jan jan $ , 8 A 9 Project-Id-Version: Horde_Mime
Report-Msgid-Bugs-To: dev@lists.horde.org
POT-Creation-Date: 2010-10-13 01:27+0200
PO-Revision-Date: 2010-10-13 01:27+0200
Last-Translator: Automatically generated
Language-Team: i18n@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Horde_Mime-2.9.3/locale/bg/LC_MESSAGES/Horde_Mime.po 0000664 0001750 0001750 00000003121 12653751222 017627 0 ustar jan jan # Bulgarian translations for Horde_Mime module.
# Copyright 2010-2016 Horde LLC (http://www.horde.org/)
# This file is distributed under the same license as the Horde_Mime module.
# Automatically generated, 2010.
#
msgid ""
msgstr ""
"Project-Id-Version: Horde_Mime\n"
"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
"POT-Creation-Date: 2010-10-13 01:27+0200\n"
"PO-Revision-Date: 2010-10-13 01:27+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: i18n@lists.horde.org\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: lib/Horde/Mime/Mdn.php:202
msgid "Disposition Notification"
msgstr ""
#: lib/Horde/Mime/Mail.php:460
msgid "HTML Version of Message"
msgstr ""
#: lib/Horde/Mime/Mail.php:404
#, php-format
msgid "Invalid character in e-mail address: %s."
msgstr ""
#: lib/Horde/Mime/Headers.php:519
msgid "List-Archive"
msgstr ""
#: lib/Horde/Mime/Headers.php:514
#, fuzzy
msgid "List-Help"
msgstr "Помощ теми"
#: lib/Horde/Mime/Headers.php:521
msgid "List-Id"
msgstr ""
#: lib/Horde/Mime/Headers.php:517
msgid "List-Owner"
msgstr ""
#: lib/Horde/Mime/Headers.php:518
msgid "List-Post"
msgstr ""
#: lib/Horde/Mime/Headers.php:516
msgid "List-Subscribe"
msgstr ""
#: lib/Horde/Mime/Headers.php:515
msgid "List-Unsubscribe"
msgstr ""
#: lib/Horde/Mime/Mail.php:458
msgid "Plaintext Version of Message"
msgstr ""
#: lib/Horde/Mime/Mdn.php:213
#, php-format
msgid ""
"The message sent on %s to %s with subject \"%s\" has been displayed.\n"
"\n"
"This is no guarantee that the message has been read or understood."
msgstr ""
Horde_Mime-2.9.3/locale/bs/LC_MESSAGES/Horde_Mime.mo 0000664 0001750 0001750 00000000573 12653751222 017650 0 ustar jan jan $ , 8 A 9 Project-Id-Version: Horde_Mime
Report-Msgid-Bugs-To: dev@lists.horde.org
POT-Creation-Date: 2010-10-13 01:27+0200
PO-Revision-Date: 2010-10-13 01:27+0200
Last-Translator: Automatically generated
Language-Team: i18n@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Horde_Mime-2.9.3/locale/bs/LC_MESSAGES/Horde_Mime.po 0000664 0001750 0001750 00000003324 12653751222 017650 0 ustar jan jan # Bosnian translations for Horde_Mime module.
# Copyright 2010-2016 Horde LLC (http://www.horde.org/)
# This file is distributed under the same license as the Horde_Mime module.
# Automatically generated, 2010.
#
msgid ""
msgstr ""
"Project-Id-Version: Horde_Mime\n"
"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
"POT-Creation-Date: 2010-10-13 01:27+0200\n"
"PO-Revision-Date: 2010-10-13 01:27+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: i18n@lists.horde.org\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: lib/Horde/Mime/Mdn.php:202
msgid "Disposition Notification"
msgstr ""
#: lib/Horde/Mime/Mail.php:460
msgid "HTML Version of Message"
msgstr ""
#: lib/Horde/Mime/Mail.php:404
#, fuzzy, php-format
msgid "Invalid character in e-mail address: %s."
msgstr "Nedozvoljena slova u email adresi."
#: lib/Horde/Mime/Headers.php:519
#, fuzzy
msgid "List-Archive"
msgstr "Sakrij neupisane"
#: lib/Horde/Mime/Headers.php:514
#, fuzzy
msgid "List-Help"
msgstr "Pomoć"
#: lib/Horde/Mime/Headers.php:521
#, fuzzy
msgid "List-Id"
msgstr "Pomoć"
#: lib/Horde/Mime/Headers.php:517
#, fuzzy
msgid "List-Owner"
msgstr "Pomoć"
#: lib/Horde/Mime/Headers.php:518
msgid "List-Post"
msgstr ""
#: lib/Horde/Mime/Headers.php:516
#, fuzzy
msgid "List-Subscribe"
msgstr "Sakrij neupisane"
#: lib/Horde/Mime/Headers.php:515
#, fuzzy
msgid "List-Unsubscribe"
msgstr "Sakrij neupisane"
#: lib/Horde/Mime/Mail.php:458
msgid "Plaintext Version of Message"
msgstr ""
#: lib/Horde/Mime/Mdn.php:213
#, php-format
msgid ""
"The message sent on %s to %s with subject \"%s\" has been displayed.\n"
"\n"
"This is no guarantee that the message has been read or understood."
msgstr ""
Horde_Mime-2.9.3/locale/ca/LC_MESSAGES/Horde_Mime.mo 0000664 0001750 0001750 00000001376 12653751222 017631 0 ustar jan jan d
$ . = A N
Disposition Notification List-Archive List-Help List-Id List-Owner List-Post List-Subscribe List-Unsubscribe Project-Id-Version: Horde_Mime
Report-Msgid-Bugs-To: dev@lists.horde.org
POT-Creation-Date: 2010-10-13 01:27+0200
PO-Revision-Date: 2010-10-13 01:27+0200
Last-Translator: Automatically generated
Language-Team: i18n@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Notificació de recepció List-Archive List-Help List-Id List-Owner List-Post List-Subscribe List-Unsubscribe Horde_Mime-2.9.3/locale/ca/LC_MESSAGES/Horde_Mime.po 0000664 0001750 0001750 00000003521 12653751222 017626 0 ustar jan jan # Catalan translations for Horde_Mime module.
# Copyright 2010-2016 Horde LLC (http://www.horde.org/)
# This file is distributed under the same license as the Horde_Mime module.
# Automatically generated, 2010.
#
msgid ""
msgstr ""
"Project-Id-Version: Horde_Mime\n"
"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
"POT-Creation-Date: 2010-10-13 01:27+0200\n"
"PO-Revision-Date: 2010-10-13 01:27+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: i18n@lists.horde.org\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: lib/Horde/Mime/Mdn.php:202
msgid "Disposition Notification"
msgstr "Notificació de recepció"
#: lib/Horde/Mime/Mail.php:460
msgid "HTML Version of Message"
msgstr ""
#: lib/Horde/Mime/Mail.php:404
#, fuzzy, php-format
msgid "Invalid character in e-mail address: %s."
msgstr "L'adreça de destinació no és vàlida."
#: lib/Horde/Mime/Headers.php:519
msgid "List-Archive"
msgstr "List-Archive"
#: lib/Horde/Mime/Headers.php:514
msgid "List-Help"
msgstr "List-Help"
#: lib/Horde/Mime/Headers.php:521
msgid "List-Id"
msgstr "List-Id"
#: lib/Horde/Mime/Headers.php:517
msgid "List-Owner"
msgstr "List-Owner"
#: lib/Horde/Mime/Headers.php:518
msgid "List-Post"
msgstr "List-Post"
#: lib/Horde/Mime/Headers.php:516
msgid "List-Subscribe"
msgstr "List-Subscribe"
#: lib/Horde/Mime/Headers.php:515
msgid "List-Unsubscribe"
msgstr "List-Unsubscribe"
#: lib/Horde/Mime/Mail.php:458
msgid "Plaintext Version of Message"
msgstr ""
#: lib/Horde/Mime/Mdn.php:213
#, fuzzy, php-format
msgid ""
"The message sent on %s to %s with subject \"%s\" has been displayed.\n"
"\n"
"This is no guarantee that the message has been read or understood."
msgstr ""
"S'ha mostrat el missatge enviat el %s a %s amb l'assumpte \"%s\". Això no "
"garanteix que s'hagi llegit o entès el missatge."
Horde_Mime-2.9.3/locale/cs/LC_MESSAGES/Horde_Mime.mo 0000664 0001750 0001750 00000001547 12653751222 017653 0 ustar jan jan d
$ . = N
+ = S Disposition Notification List-Archive List-Help List-Id List-Owner List-Post List-Subscribe List-Unsubscribe Project-Id-Version: Horde_Mime
Report-Msgid-Bugs-To: dev@lists.horde.org
POT-Creation-Date: 2010-10-13 01:27+0200
PO-Revision-Date: 2010-10-13 01:27+0200
Last-Translator: Automatically generated
Language-Team: i18n@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;
Dispoziční upozornění Seznam-Archiv Seznam-Nápověda Seznam-Id Seznam-Vlastník Seznam-Odeslání Seznam-Přihlášení Seznam-Odhlášení Horde_Mime-2.9.3/locale/cs/LC_MESSAGES/Horde_Mime.po 0000664 0001750 0001750 00000003711 12653751222 017651 0 ustar jan jan # Czech translations for Horde_Mime module.
# Copyright 2010-2016 Horde LLC (http://www.horde.org/)
# This file is distributed under the same license as the Horde_Mime module.
# Automatically generated, 2010.
#
msgid ""
msgstr ""
"Project-Id-Version: Horde_Mime\n"
"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
"POT-Creation-Date: 2010-10-13 01:27+0200\n"
"PO-Revision-Date: 2010-10-13 01:27+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: i18n@lists.horde.org\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#: lib/Horde/Mime/Mdn.php:202
msgid "Disposition Notification"
msgstr "Dispoziční upozornění"
#: lib/Horde/Mime/Mail.php:460
msgid "HTML Version of Message"
msgstr ""
#: lib/Horde/Mime/Mail.php:404
#, fuzzy, php-format
msgid "Invalid character in e-mail address: %s."
msgstr "Neplatná adresa příjemce."
#: lib/Horde/Mime/Headers.php:519
msgid "List-Archive"
msgstr "Seznam-Archiv"
#: lib/Horde/Mime/Headers.php:514
msgid "List-Help"
msgstr "Seznam-Nápověda"
#: lib/Horde/Mime/Headers.php:521
msgid "List-Id"
msgstr "Seznam-Id"
#: lib/Horde/Mime/Headers.php:517
msgid "List-Owner"
msgstr "Seznam-Vlastník"
#: lib/Horde/Mime/Headers.php:518
msgid "List-Post"
msgstr "Seznam-Odeslání"
#: lib/Horde/Mime/Headers.php:516
msgid "List-Subscribe"
msgstr "Seznam-Přihlášení"
#: lib/Horde/Mime/Headers.php:515
msgid "List-Unsubscribe"
msgstr "Seznam-Odhlášení"
#: lib/Horde/Mime/Mail.php:458
msgid "Plaintext Version of Message"
msgstr ""
#: lib/Horde/Mime/Mdn.php:213
#, fuzzy, php-format
msgid ""
"The message sent on %s to %s with subject \"%s\" has been displayed.\n"
"\n"
"This is no guarantee that the message has been read or understood."
msgstr ""
"Zpráva zaslaná v %s k %s s předmětem \"%s\" byla zobrazena.\n"
"Toto nezaručuje, že zpráva byla přečtena nebo že jí adresát(ka) rozuměl(a)."
Horde_Mime-2.9.3/locale/da/LC_MESSAGES/Horde_Mime.mo 0000664 0001750 0001750 00000002351 12653751222 017624 0 ustar jan jan | ! : R _ i
q | J
+ 6 E V x p
Disposition Notification HTML Version of Message List-Archive List-Help List-Id List-Owner List-Post List-Subscribe List-Unsubscribe Plaintext Version of Message The message sent on %s to %s with subject "%s" has been displayed.
This is no guarantee that the message has been read or understood. Project-Id-Version: Horde_Mime
Report-Msgid-Bugs-To: dev@lists.horde.org
POT-Creation-Date: 2013-10-29 10:13+0100
PO-Revision-Date: 2014-03-20 21:18+0100
Last-Translator: Erling Preben Hansen
Language-Team: i18n@lists.horde.org
Language: da
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=2; plural=(n != 1);
Dispositions melding HTML-udgave af besked Liste-Arkivet Liste-Hjælp Liste-Id Liste-Ejer Liste-Post Liste-Abonnér Liste-Afabonnér Rentekst-udgave af besked Beskeden sendt den. %s til %s med emnet "%s" er set.
This is no guarantee that the message has been read or understood. Horde_Mime-2.9.3/locale/da/LC_MESSAGES/Horde_Mime.po 0000664 0001750 0001750 00000003503 12653751222 017627 0 ustar jan jan # Danish translations for Horde_Mime package.
# Copyright (C) 2014 Horde LLC (http://www.horde.org/)
# This file is distributed under the same license as the Horde_Mime package.
# Erling Preben Hansen , 2013-2014.
#
msgid ""
msgstr ""
"Project-Id-Version: Horde_Mime\n"
"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
"POT-Creation-Date: 2013-10-29 10:13+0100\n"
"PO-Revision-Date: 2014-03-20 21:18+0100\n"
"Last-Translator: Erling Preben Hansen \n"
"Language-Team: i18n@lists.horde.org\n"
"Language: da\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: lib/Horde/Mime/Mdn.php:188
msgid "Disposition Notification"
msgstr "Dispositions melding"
#: lib/Horde/Mime/Mail.php:421
msgid "HTML Version of Message"
msgstr "HTML-udgave af besked"
#: lib/Horde/Mime/Headers.php:542
msgid "List-Archive"
msgstr "Liste-Arkivet"
#: lib/Horde/Mime/Headers.php:537
msgid "List-Help"
msgstr "Liste-Hjælp"
#: lib/Horde/Mime/Headers.php:544
msgid "List-Id"
msgstr "Liste-Id"
#: lib/Horde/Mime/Headers.php:540
msgid "List-Owner"
msgstr "Liste-Ejer"
#: lib/Horde/Mime/Headers.php:541
msgid "List-Post"
msgstr "Liste-Post"
#: lib/Horde/Mime/Headers.php:539
msgid "List-Subscribe"
msgstr "Liste-Abonnér"
#: lib/Horde/Mime/Headers.php:538
msgid "List-Unsubscribe"
msgstr "Liste-Afabonnér"
#: lib/Horde/Mime/Mail.php:419
msgid "Plaintext Version of Message"
msgstr "Rentekst-udgave af besked"
#: lib/Horde/Mime/Mdn.php:200
#, php-format
msgid ""
"The message sent on %s to %s with subject \"%s\" has been displayed.\n"
"\n"
"This is no guarantee that the message has been read or understood."
msgstr ""
"Beskeden sendt den. %s til %s med emnet \"%s\" er set.\n"
"\n"
"This is no guarantee that the message has been read or understood."
Horde_Mime-2.9.3/locale/de/LC_MESSAGES/Horde_Mime.mo 0000664 0001750 0001750 00000001713 12653751222 017631 0 ustar jan jan D l w ^ Disposition Notification HTML Version of Message Plaintext Version of Message The message sent on %s to %s with subject "%s" has been displayed.
This is no guarantee that the message has been read or understood. Project-Id-Version: Horde_Mime
Report-Msgid-Bugs-To: dev@lists.horde.org
POT-Creation-Date: 2015-01-08 11:22+0100
PO-Revision-Date: 2010-10-13 01:27+0200
Last-Translator: Automatically generated
Language-Team: i18n@lists.horde.org
Language:
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=2; plural=(n != 1);
Empfangsbestätigung HTML-Version der Nachricht Textversion der Nachricht Die Nachricht mit dem Betreff "%3$s", die am %1$s an %2$s geschickt wurde, ist angezeigt worden.
Das heißt nicht, dass die Nachricht auch gelesen oder verstanden wurde. Horde_Mime-2.9.3/locale/de/LC_MESSAGES/Horde_Mime.po 0000664 0001750 0001750 00000002501 12653751222 017630 0 ustar jan jan # German translations for Horde_Mime module.
# Copyright 2010-2016 Horde LLC (http://www.horde.org/)
# This file is distributed under the same license as the Horde_Mime module.
# Automatically generated, 2010.
#
msgid ""
msgstr ""
"Project-Id-Version: Horde_Mime\n"
"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
"POT-Creation-Date: 2015-01-08 11:22+0100\n"
"PO-Revision-Date: 2010-10-13 01:27+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: i18n@lists.horde.org\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: lib/Horde/Mime/Mdn.php:188
msgid "Disposition Notification"
msgstr "Empfangsbestätigung"
#: lib/Horde/Mime/Mail.php:439
msgid "HTML Version of Message"
msgstr "HTML-Version der Nachricht"
#: lib/Horde/Mime/Mail.php:437
msgid "Plaintext Version of Message"
msgstr "Textversion der Nachricht"
#: lib/Horde/Mime/Mdn.php:201
#, php-format
msgid ""
"The message sent on %s to %s with subject \"%s\" has been displayed.\n"
"\n"
"This is no guarantee that the message has been read or understood."
msgstr ""
"Die Nachricht mit dem Betreff \"%3$s\", die am %1$s an %2$s geschickt wurde, "
"ist angezeigt worden.\n"
"\n"
"Das heißt nicht, dass die Nachricht auch gelesen oder verstanden wurde."
Horde_Mime-2.9.3/locale/el/LC_MESSAGES/Horde_Mime.mo 0000664 0001750 0001750 00000000773 12653751222 017646 0 ustar jan jan , <