mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
revised ms journal handling
This commit is contained in:
@ -58,8 +58,11 @@ class ControllerMessageBulkrestore extends Controller {
|
||||
if(count($rcpt) > 0) {
|
||||
$piler_id = $this->model_search_message->get_piler_id_by_id($id);
|
||||
|
||||
$msg = $this->model_search_message->get_raw_message($piler_id);
|
||||
$this->model_search_message->remove_journal($msg);
|
||||
|
||||
$x = $this->model_mail_mail->send_smtp_email(SMARTHOST, SMARTHOST_PORT, SMTP_DOMAIN, SMTP_FROMADDR, $rcpt,
|
||||
"Received: by piler" . EOL . PILER_HEADER_FIELD . $id . EOL . $this->model_search_message->get_raw_message($piler_id) );
|
||||
"Received: by piler" . EOL . PILER_HEADER_FIELD . $id . EOL . $msg );
|
||||
|
||||
if($x == 1) { $this->data['restored']++; }
|
||||
}
|
||||
|
@ -41,10 +41,9 @@ class ControllerMessageDownload extends Controller {
|
||||
header("Content-Transfer-Encoding: binary\n");
|
||||
|
||||
|
||||
print $this->model_search_message->get_raw_message($this->data['piler_id']);
|
||||
exit;
|
||||
|
||||
$this->render();
|
||||
$msg = $this->model_search_message->get_raw_message($this->data['piler_id']);
|
||||
$this->model_search_message->remove_journal($msg);
|
||||
print $msg;
|
||||
}
|
||||
|
||||
|
||||
|
@ -58,8 +58,11 @@ class ControllerMessageRestore extends Controller {
|
||||
|
||||
$this->data['piler_id'] = $this->model_search_message->get_piler_id_by_id($this->data['id']);
|
||||
|
||||
$msg = $this->model_search_message->get_raw_message($this->data['piler_id']);
|
||||
$this->model_search_message->remove_journal($msg);
|
||||
|
||||
$x = $this->model_mail_mail->send_smtp_email(SMARTHOST, SMARTHOST_PORT, SMTP_DOMAIN, SMTP_FROMADDR, $rcpt,
|
||||
"Received: by piler" . EOL . PILER_HEADER_FIELD . $this->data['id'] . EOL . $this->model_search_message->get_raw_message($this->data['piler_id']) );
|
||||
"Received: by piler" . EOL . PILER_HEADER_FIELD . $this->data['id'] . EOL . $msg );
|
||||
|
||||
if($x == 1) { $this->data['data'] = $this->data['text_restored']; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user