Auto create FTN address for intransit netmail when the destination is not known.
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user