mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 04:31:06 +01:00
* Calendar: fix meeting invitations to allow accept or reject in Outlook (not set "Content-Disposition: attachment" for ical alternative)
This commit is contained in:
parent
923789c5e1
commit
2620a1eb55
@ -367,7 +367,7 @@ class egw_mailer extends Horde_Mime_Mail
|
||||
/**
|
||||
* Adds a string or binary attachment (non-filesystem) to the list.
|
||||
*
|
||||
* "text/calendar; method=..." get automatic detected and added as highes priority alternative,
|
||||
* "text/calendar; method=..." get automatic detected and added as highest priority alternative,
|
||||
* overwriting evtl. existing html body!
|
||||
*
|
||||
* @param string $content String attachment data.
|
||||
@ -392,10 +392,6 @@ class egw_mailer extends Horde_Mime_Mail
|
||||
}
|
||||
$part->setCharset('utf-8');
|
||||
$part->setContents($content);
|
||||
// this should not be necessary, because binary data get detected by mime-type,
|
||||
// but at least Cyrus complains about NUL characters
|
||||
$part->setTransferEncoding('base64', array('send' => true));
|
||||
$part->setName($filename);
|
||||
|
||||
// store "text/calendar" as _htmlBody, to trigger "multipart/alternative"
|
||||
if (stripos($type,"text/calendar; method=") !== false)
|
||||
@ -403,6 +399,10 @@ class egw_mailer extends Horde_Mime_Mail
|
||||
$this->_htmlBody = $part;
|
||||
return;
|
||||
}
|
||||
// this should not be necessary, because binary data get detected by mime-type,
|
||||
// but at least Cyrus complains about NUL characters
|
||||
$part->setTransferEncoding('base64', array('send' => true));
|
||||
$part->setName($filename);
|
||||
$part->setDisposition('attachment');
|
||||
|
||||
return $this->addMimePart($part);
|
||||
|
Loading…
Reference in New Issue
Block a user