BINKP responding to incoming netmail pings
This commit is contained in:
@@ -94,7 +94,7 @@ class Item
|
||||
throw new Exception('Invalid request for key: '.$key);
|
||||
|
||||
case 'recvas':
|
||||
return '/tmp/'.$this->file_name; // @todo this should be inbound temp
|
||||
return $this->file_name;
|
||||
|
||||
case 'sendas':
|
||||
return basename($this->file_name);
|
||||
@@ -114,6 +114,7 @@ class Item
|
||||
static $ext = ['su','mo','tu','we','th','fr','sa','req'];
|
||||
|
||||
$x = strrchr($this->file_name,'.');
|
||||
|
||||
if (! $x || (strlen(substr($x,1)) != 3))
|
||||
return self::IS_FILE;
|
||||
|
||||
|
Reference in New Issue
Block a user