mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
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:
@ -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(); }
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user