mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-26 07:02:08 +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;
|
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
|
* Constructor
|
||||||
*/
|
*/
|
||||||
@ -1656,7 +1664,7 @@ abstract class Merge
|
|||||||
$mail_bo->openConnection();
|
$mail_bo->openConnection();
|
||||||
try
|
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)
|
catch (Api\Exception\WrongUserinput $e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user