Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Model
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-16 22:17:19 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-17 10:38:10 +0300
commitca1b379a5fb6579e4da818804adbf6685255a2ae (patch)
tree71598923c3473afb0de3f601735bc98bf4a32c70 /lib/Model
parentec3e82831086eaac68af0036f81a4f0502255c6e (diff)
Add forward as attachment
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/IMAPMessage.php2
-rw-r--r--lib/Model/IMessage.php2
-rw-r--r--lib/Model/Message.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Model/IMAPMessage.php b/lib/Model/IMAPMessage.php
index 96689f0cc..19c35cbb3 100644
--- a/lib/Model/IMAPMessage.php
+++ b/lib/Model/IMAPMessage.php
@@ -601,7 +601,7 @@ class IMAPMessage implements IMessage, JsonSerializable {
*
* @return void
*/
- public function addForwardedAttachment(string $name, string $content): void {
+ public function addRawAttachment(string $name, string $content): void {
throw new Exception('IMAP message is immutable');
}
diff --git a/lib/Model/IMessage.php b/lib/Model/IMessage.php
index 09adcb05f..284f6c2c0 100644
--- a/lib/Model/IMessage.php
+++ b/lib/Model/IMessage.php
@@ -129,7 +129,7 @@ interface IMessage {
* @param string $name
* @param string $content
*/
- public function addForwardedAttachment(string $name, string $content): void;
+ public function addRawAttachment(string $name, string $content): void;
/**
* @param File $fileName
diff --git a/lib/Model/Message.php b/lib/Model/Message.php
index 90aced254..37d231c4b 100644
--- a/lib/Model/Message.php
+++ b/lib/Model/Message.php
@@ -217,7 +217,7 @@ class Message implements IMessage {
* Adds a file that's coming from another email's attachment (typical
* use case is forwarding a message)
*/
- public function addForwardedAttachment(string $name, string $content): void {
+ public function addRawAttachment(string $name, string $content): void {
$mime = 'application/octet-stream';
if (extension_loaded('fileinfo')) {
$finfo = new finfo(FILEINFO_MIME_TYPE);