Fix messages to points, and fix netmail coming from systems which dont include an Origin line
This commit is contained in:
@@ -33,7 +33,8 @@ class MessageProcess implements ShouldQueue
|
||||
}
|
||||
|
||||
/**
|
||||
* When calling MessageProcess - we assume that the packet is from a valid source
|
||||
* When calling MessageProcess - we assume that the packet is from a valid source, and
|
||||
* the destination (netmail/echomail) is also valid
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
@@ -86,8 +87,8 @@ class MessageProcess implements ShouldQueue
|
||||
$o->set_pkt = $this->packet;
|
||||
$o->set_sender = $this->sender;
|
||||
$o->set_path = $this->msg->pathaddress;
|
||||
// Strip any local flag
|
||||
$o->flags &= ~Message::FLAG_LOCAL;
|
||||
// Strip any local/transit flags
|
||||
$o->flags &= ~(Message::FLAG_LOCAL|Message::FLAG_INTRANSIT);
|
||||
|
||||
// Determine if the message is to this system, or in transit
|
||||
if ($ftns->search(function($item) { return $this->msg->tftn === $item->ftn; }) !== FALSE) {
|
||||
@@ -145,10 +146,10 @@ class MessageProcess implements ShouldQueue
|
||||
$reply .= "\r";
|
||||
$reply .= "\r";
|
||||
$reply .= "This is your original message:\r";
|
||||
$reply .= "------------------------------ BEING MESSAGE ------------------------------\r";
|
||||
$reply .= "------------------------------ BEGIN MESSAGE ------------------------------\r";
|
||||
$reply .= sprintf("TO: %s\r",$this->msg->user_to);
|
||||
$reply .= sprintf("SUBJECT: %s\r",$this->msg->subject);
|
||||
$reply .= $this->msg->message;
|
||||
$reply .= str_replace("\r---","\r#--",$this->msg->message)."\r";
|
||||
$reply .= "------------------------------ CONTROL LINES ------------------------------\r";
|
||||
$reply .= sprintf("DATE: %s\r",$this->msg->date->format('Y-m-d H:i:s'));
|
||||
$reply .= sprintf("MSGID: %s\r",$this->msg->msgid);
|
||||
|
Reference in New Issue
Block a user