gui refactoring, using the zend mail library 1.2.x

Change-Id: Ie019ae0c241263e3acfeb09ea6779d90487fde8e
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ
2016-09-17 15:30:47 +02:00
parent 91fbeebc0f
commit ee2f507074
6 changed files with 101 additions and 447 deletions

View File

@ -58,8 +58,6 @@ class ControllerMessageBulkrestore extends Controller {
}
$this->model_search_message->connect_to_pilergetd();
foreach($idlist as $id) {
AUDIT(ACTION_RESTORE_MESSAGE, '', '', $id, '');
@ -110,8 +108,6 @@ class ControllerMessageBulkrestore extends Controller {
}
}
$this->model_search_message->disconnect_from_pilergetd();
if(RESTORE_OVER_IMAP == 1) { $this->model_mail_mail->disconnect_imap(); }

View File

@ -49,9 +49,7 @@ class ControllerMessageDownload extends Controller {
header("Content-Disposition: attachment; filename=" . $filename . ".eml");
header("Content-Transfer-Encoding: binary\n");
$this->model_search_message->connect_to_pilergetd();
$msg = $this->model_search_message->get_raw_message($this->data['piler_id']);
$this->model_search_message->disconnect_from_pilergetd();
$this->model_search_message->remove_journal($msg);
print $msg;

View File

@ -70,9 +70,7 @@ class ControllerMessageRestore extends Controller {
$this->data['piler_id'] = $this->model_search_message->get_piler_id_by_id($this->data['id']);
$this->model_search_message->connect_to_pilergetd();
$msg = $this->model_search_message->get_raw_message($this->data['piler_id']);
$this->model_search_message->disconnect_from_pilergetd();
$this->model_search_message->remove_journal($msg);