Some messages have the origin in the middle of the message - change strpos to strrpos
This commit is contained in:
parent
a00534794e
commit
f1780e61ea
@ -701,7 +701,7 @@ class Message extends FTNBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Anything after the origin line is also kludge data.
|
// Anything after the origin line is also kludge data.
|
||||||
if ($originpos = strpos($kl,"\r * Origin: ")) {
|
if ($originpos = strrpos($kl,"\r * Origin: ")) {
|
||||||
if (! $this->message) {
|
if (! $this->message) {
|
||||||
$this->message .= substr($kl,$retpos+1,$originpos-$retpos-1);
|
$this->message .= substr($kl,$retpos+1,$originpos-$retpos-1);
|
||||||
$this->parseOrigin(substr($kl,$originpos+1));
|
$this->parseOrigin(substr($kl,$originpos+1));
|
||||||
|
@ -37,6 +37,7 @@ final class Echomail extends Model implements Packet
|
|||||||
{
|
{
|
||||||
parent::boot();
|
parent::boot();
|
||||||
|
|
||||||
|
// @todo if the message is updated with new SEEN-BY's from another route, we'll delete the pending export for systems (if there is one)
|
||||||
static::created(function($model) {
|
static::created(function($model) {
|
||||||
if (! $model->echoarea_id) {
|
if (! $model->echoarea_id) {
|
||||||
Log::alert(sprintf('%s:- Message has no echo area, no exporting',self::LOGKEY,$model->id));
|
Log::alert(sprintf('%s:- Message has no echo area, no exporting',self::LOGKEY,$model->id));
|
||||||
|
Loading…
Reference in New Issue
Block a user