Add origin to replied messages, fix address in BadMessage notification
This commit is contained in:
@@ -72,7 +72,7 @@ abstract class Netmails extends Notification //implements ShouldQueue
|
||||
|
||||
protected function sourceSummary(Echomail|Netmail $o,string $item=NULL): string
|
||||
{
|
||||
return sprintf("Your %s was received here on [%s] and it looks like you sent it on [%s].",
|
||||
return sprintf("The %s was received here on [%s] and it looks like your system sent it on [%s].",
|
||||
$item ?: sprintf('%s with ID [%s] to [%s]',$o instanceof Netmail ? 'Netmail' : 'Echomail',$o->msgid,$o->to),
|
||||
Carbon::now()->utc()->toDateTimeString(),
|
||||
$o->date->utc()->toDateTimeString(),
|
||||
|
@@ -49,7 +49,7 @@ class EchomailBadAddress extends Netmails
|
||||
|
||||
$msg->addText($this->sourceSummary($this->mo)."\r\r");
|
||||
|
||||
$msg->addText(sprintf("The address in this echomail [%s] is the wrong address for the domain [%s].\r\r",$this->mo->fftn,$ao->zone->domain->name));
|
||||
$msg->addText(sprintf("The address in this echomail [%s] is the wrong address for the domain [%s].\r\r",$this->mo->set_fftn,$ao->zone->domain->name));
|
||||
|
||||
$msg->addText("This echomail has been rejected and not stored here - so no downstream nodes will receive it. If you think this is a mistake, please let me know.\r\r");
|
||||
|
||||
|
Reference in New Issue
Block a user