mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 11:17: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']++; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user