Normalise tagline/tearline/origin
This commit is contained in:
@@ -58,7 +58,7 @@ abstract class Echomails extends Notification //implements ShouldQueue
|
||||
|
||||
$o->flags = (Message::FLAG_LOCAL);
|
||||
|
||||
$o->tearline = sprintf('%s (%04X)',Setup::PRODUCT_NAME,Setup::PRODUCT_ID);
|
||||
$o->set_tearline = sprintf('%s (%04X)',Setup::PRODUCT_NAME,Setup::PRODUCT_ID);
|
||||
|
||||
return $o;
|
||||
}
|
||||
|
@@ -48,7 +48,6 @@ class AbsentNodes extends Echomails
|
||||
$o->subject = 'Status changes for nodes';
|
||||
$o->fftn_id = ($x=our_address($echoarea->domain)->last())->id;
|
||||
$o->kludges->put('CHRS:','CP437 2');
|
||||
$o->origin = sprintf('%s (%s)',Setup::PRODUCT_NAME,$x->ftn4d);
|
||||
|
||||
// Message
|
||||
$msg = new Page;
|
||||
@@ -95,7 +94,8 @@ class AbsentNodes extends Echomails
|
||||
$msg->addText("\rEmails and/or Netmails have been sent to these nodes. If you can help let them know that they have outstanding mail on the Hub, that would be helpful :)");
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'When life gives you lemons, freeze them and throw them back.';
|
||||
$o->set_tagline = 'When life gives you lemons, freeze them and throw them back.';
|
||||
$o->set_origin = sprintf('%s (%s)',Setup::PRODUCT_NAME,$x->ftn4d);
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -50,7 +50,6 @@ class Test extends Echomails
|
||||
$o->replyid = $this->mo->msgid;
|
||||
$o->subject = 'Test Reply';
|
||||
$o->kludges->put('CHRS:',$this->mo->kludges->get('chrs') ?: 'CP437 2');
|
||||
$o->origin = sprintf('%s (%s)',Setup::PRODUCT_NAME,$x->ftn4d);
|
||||
|
||||
// Message
|
||||
$msg = new Page;
|
||||
@@ -74,7 +73,8 @@ class Test extends Echomails
|
||||
$msg->addText($this->message_path($this->mo));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'I ate a clock yesterday, it was very time-consuming.';
|
||||
$o->set_tagline = 'I ate a clock yesterday, it was very time-consuming.';
|
||||
$o->set_origin = sprintf('%s (%s)',Setup::PRODUCT_NAME,$x->ftn4d);
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -64,7 +64,7 @@ abstract class Netmails extends Notification //implements ShouldQueue
|
||||
$o->flags = (Message::FLAG_LOCAL|Message::FLAG_PRIVATE);
|
||||
$o->cost = 0;
|
||||
|
||||
$o->tearline = sprintf('%s (%04X)',Setup::PRODUCT_NAME,Setup::PRODUCT_ID);
|
||||
$o->set_tearline = sprintf('%s (%04X)',Setup::PRODUCT_NAME,Setup::PRODUCT_ID);
|
||||
|
||||
return $o;
|
||||
}
|
||||
|
@@ -59,7 +59,7 @@ class AddressLink extends Netmails
|
||||
));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Address Linking...';
|
||||
$o->set_tagline = 'Address Linking...';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -55,7 +55,7 @@ class Areafix extends Netmails
|
||||
$msg->addText($this->message_path($this->mo));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Why did the robot cross the road? The chicken programmed it.';
|
||||
$o->set_tagline = 'Why did the robot cross the road? The chicken programmed it.';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -55,7 +55,7 @@ class NotConfiguredHere extends Netmails
|
||||
$msg->addText($this->message_path($this->mo));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Why did the robot cross the road? The chicken programmed it.';
|
||||
$o->set_tagline = 'Why did the robot cross the road? The chicken programmed it.';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -63,7 +63,7 @@ class EchoareaNoWrite extends Netmails
|
||||
$msg->addText($this->message_path($this->mo));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'See something wrong? Do something right.';
|
||||
$o->set_tagline = 'See something wrong? Do something right.';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -65,7 +65,7 @@ class EchoareaNotExist extends Netmails
|
||||
$msg->addText($this->message_path($this->mo));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Don\'t let your trash become someone else\'s treasure. Feed your shredder often.';
|
||||
$o->set_tagline = 'Don\'t let your trash become someone else\'s treasure. Feed your shredder often.';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -64,7 +64,7 @@ class EchoareaNotSubscribed extends Netmails
|
||||
$msg->addText($this->message_path($this->mo));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Don\'t let your trash become someone else\'s treasure. Feed your shredder.';
|
||||
$o->set_tagline = 'Don\'t let your trash become someone else\'s treasure. Feed your shredder.';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -64,7 +64,7 @@ class EchomailBadAddress extends Netmails
|
||||
$msg->addText($this->message_path($this->mo));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'I enjoyed reading your message, even though nobody else will get it :)';
|
||||
$o->set_tagline = 'I enjoyed reading your message, even though nobody else will get it :)';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -61,7 +61,7 @@ class NetmailForward extends Netmails
|
||||
$msg->addText(sprintf("To avoid receiving this netmail, send messages to [%s] to [%s].\r\r",$this->mo->to,$this->ao->ftn3d));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Thank you so much for your mail. I love it already.';
|
||||
$o->set_tagline = 'Thank you so much for your mail. I love it already.';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -64,7 +64,7 @@ class NetmailHubNoUser extends Netmails
|
||||
$msg->addText($this->message_path($this->mo));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Do you think it was fate which brought us together? Nah, bad luck :(';
|
||||
$o->set_tagline = 'Do you think it was fate which brought us together? Nah, bad luck :(';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -50,7 +50,7 @@ class NodeDelisted extends Netmails //implements ShouldQueue
|
||||
->addText(sprintf('If you think about returning to %s, then reach out and we can get you back online pretty quickly.',$x));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'You\'ve been DE-LISTED';
|
||||
$o->set_tagline = 'You\'ve been DE-LISTED';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -55,7 +55,7 @@ class NodeMarkedDown extends Netmails //implements ShouldQueue
|
||||
->addText("If you think you've received this netmail by mistake or need help, please let me know.\r");
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Pending de-list';
|
||||
$o->set_tagline = 'Pending de-list';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -55,7 +55,7 @@ class NodeMarkedHold extends Netmails //implements ShouldQueue
|
||||
->addText("If you think you've received this netmail by mistake or need help, please let me know.\r");
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'You\'ve been marked HOLD';
|
||||
$o->set_tagline = 'You\'ve been marked HOLD';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -62,7 +62,7 @@ class PacketPasswordInvalid extends Netmails
|
||||
$msg->addText("Head over to the website if you dont know what your packet password should be :)\r");
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Safety first, password second.';
|
||||
$o->set_tagline = 'Safety first, password second.';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -63,7 +63,7 @@ class Ping extends Netmails
|
||||
$msg->addText($this->message_path($this->mo));
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'My ping pong opponent was not happy with my serve. He kept returning it.';
|
||||
$o->set_tagline = 'My ping pong opponent was not happy with my serve. He kept returning it.';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -47,7 +47,7 @@ class PollingFailed extends Netmails
|
||||
$msg->addText("To fix this, update your details that I use in the web interface, or change your system to HOLD while you are there.\r\r");
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Painful? We can make that painless :)';
|
||||
$o->set_tagline = 'Painful? We can make that painless :)';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@@ -40,7 +40,7 @@ class Test extends Netmails
|
||||
);
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->tagline = 'Testing, testing, 1 2 3.';
|
||||
$o->set_tagline = 'Testing, testing, 1 2 3.';
|
||||
|
||||
$o->save();
|
||||
|
||||
|
Reference in New Issue
Block a user