Auto create FTN address for intransit netmail when the destination is not known.

This commit is contained in:
Deon George
2022-11-06 14:40:03 +11:00
parent 9a8ee1aa2b
commit 6284016400
4 changed files with 49 additions and 5 deletions

View File

@@ -128,7 +128,8 @@ class NodelistImport implements ShouldQueue
$node = 0;
switch ($fields[0]) {
case 'Zone': $zone = $fields[1];
case 'Zone':
$zone = $fields[1];
Zone::unguard();
$zo = Zone::firstOrNew([
'zone_id'=>$zone,
@@ -364,7 +365,6 @@ class NodelistImport implements ShouldQueue
} catch (\Exception $e) {
Log::error(sprintf('%s:Error with line [%s] (%s)',self::LOGKEY,$line,$e->getMessage()),['fields'=>$fields]);
throw new \Exception($e->getMessage());
}
if (! ($c % 100)) {