added an option to specify the imap restore folder

This commit is contained in:
SJ 2015-03-18 10:54:02 +01:00
parent b747921b7e
commit 5bbd6f18de
3 changed files with 3 additions and 2 deletions

View File

@ -108,6 +108,7 @@ $config['STRIP_DOMAIN_NAME_FROM_USERNAME'] = 0;
$config['ENABLE_IMAP_AUTH'] = 0; $config['ENABLE_IMAP_AUTH'] = 0;
$config['RESTORE_OVER_IMAP'] = 0; $config['RESTORE_OVER_IMAP'] = 0;
$config['IMAP_RESTORE_FOLDER'] = 'INBOX';
$config['IMAP_HOST'] = 'mail.yourdomain.com'; $config['IMAP_HOST'] = 'mail.yourdomain.com';
$config['IMAP_PORT'] = 993; $config['IMAP_PORT'] = 993;
$config['IMAP_SSL'] = true; $config['IMAP_SSL'] = true;

View File

@ -88,7 +88,7 @@ class ControllerMessageBulkrestore extends Controller {
if(RESTORE_OVER_IMAP == 1) { if(RESTORE_OVER_IMAP == 1) {
if($imap_ok) { if($imap_ok) {
$x = $this->imap->append('INBOX', $msg); $x = $this->imap->append(IMAP_RESTORE_FOLDER, $msg);
} }
else { $x = 0; } else { $x = 0; }
} }

View File

@ -74,7 +74,7 @@ class ControllerMessageRestore extends Controller {
if(RESTORE_OVER_IMAP == 1) { if(RESTORE_OVER_IMAP == 1) {
if($this->model_mail_mail->connect_imap()) { if($this->model_mail_mail->connect_imap()) {
$x = $this->imap->append('INBOX', $msg); $x = $this->imap->append(IMAP_RESTORE_FOLDER, $msg);
$this->model_mail_mail->disconnect_imap(); $this->model_mail_mail->disconnect_imap();
} }
else { else {