mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Add a keep emails flag (default true), set to false to skip saving merged emails to sent folder
This commit is contained in:
parent
20629e2a16
commit
f2cfd94391
@ -107,6 +107,14 @@ abstract class Merge
|
||||
*/
|
||||
public $report_memory_usage = false;
|
||||
|
||||
/**
|
||||
* Save sent emails. Used when merge template is an email. Default is true,
|
||||
* to save sent emails in your sent folder.
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
public $keep_emails = true;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@ -1656,7 +1664,7 @@ abstract class Merge
|
||||
$mail_bo->openConnection();
|
||||
try
|
||||
{
|
||||
$msgs = $mail_bo->importMessageToMergeAndSend($this, $content_url, $ids, $_folder='');
|
||||
$msgs = $mail_bo->importMessageToMergeAndSend($this, $content_url, $ids, $_folder=($this->keep_emails ? '' : FALSE));
|
||||
}
|
||||
catch (Api\Exception\WrongUserinput $e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user