More complete rework of packet parsing and packet generation with 29710c
This commit is contained in:
@@ -27,20 +27,18 @@ trait MessagePath
|
||||
|
||||
$reply .= "+--[ PATH ]-------------------------------------------+\r";
|
||||
|
||||
if ($mo instanceof Netmail) {
|
||||
if ($mo->via->count())
|
||||
foreach ($mo->via as $ao)
|
||||
$reply .= sprintf("VIA: %s\r",$mo->via($ao));
|
||||
else
|
||||
$reply .= "No path information? This would be normal if this message came directly to the hub\r";
|
||||
if ($mo->path->count())
|
||||
if ($mo instanceof Netmail) {
|
||||
foreach ($mo->path as $o)
|
||||
$reply .= sprintf("VIA: %s\r",$mo->via($o));
|
||||
|
||||
} else {
|
||||
if ($mo->path->count())
|
||||
foreach ($mo->path as $via)
|
||||
$reply .= sprintf("VIA: %s\r",$via);
|
||||
else
|
||||
$reply .= "No path information? This would be normal if this message came directly to the hub\r";
|
||||
}
|
||||
} else {
|
||||
foreach ($mo->path as $o)
|
||||
$reply .= sprintf("VIA: %s\r",$o->ftn);
|
||||
}
|
||||
|
||||
else
|
||||
$reply .= "No path information? This would be normal if this message came directly to the hub\r";
|
||||
|
||||
$reply .= "+--[ END MESSAGE ]------------------------------------+\r\r";
|
||||
|
||||
|
Reference in New Issue
Block a user