Compare commits
2 Commits
b8f0b11c05
...
38e4e551b9
Author | SHA1 | Date | |
---|---|---|---|
38e4e551b9 | |||
43c573f641 |
@ -663,7 +663,7 @@ final class Binkp extends BaseProtocol
|
||||
$offs = (int)$this->strsep($str,' ');
|
||||
$flags = $this->strsep($str,' ');
|
||||
|
||||
if ($name && $size && $time) {
|
||||
if ($name && is_numeric($size) && $time) {
|
||||
return [
|
||||
'file'=>['name'=>$name,'size'=>$size,'mtime'=>$time],
|
||||
'offs'=>$offs,
|
||||
@ -918,6 +918,14 @@ final class Binkp extends BaseProtocol
|
||||
|
||||
$this->recv->new($file['file'],$this->node->address,$this->force_queue);
|
||||
|
||||
// If the file is zero byte size, we'll skip it
|
||||
if ($this->recv->recvsize === 0) {
|
||||
Log::error(sprintf('%s:! SKIPPING zero byte file info [%s]',self::LOGKEY,$this->recv->nameas));
|
||||
|
||||
$this->msgs(self::BPM_SKIP,$this->recv->name_size_time);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
try {
|
||||
switch ($this->recv->open($file['offs']<0,$file['flags'])) {
|
||||
case self::FOP_ERROR:
|
||||
|
@ -62,7 +62,7 @@ class AddressIdle implements ShouldQueue
|
||||
if ($ao->system->last_seen && $ao->system->last_seen->greaterThan($age))
|
||||
continue;
|
||||
|
||||
Log::info(sprintf('%s:- Delisting [%s], not seen for [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.delist')));
|
||||
Log::info(sprintf('%s:- Delisting [%s], not seen for at least [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.delist')));
|
||||
$contact = FALSE;
|
||||
|
||||
// Remove echomail not collected from echomail_seenby
|
||||
@ -126,7 +126,7 @@ class AddressIdle implements ShouldQueue
|
||||
if ($ao->system->last_seen && $ao->system->last_seen->greaterThan($age))
|
||||
continue;
|
||||
|
||||
Log::info(sprintf('%s:- Marking [%s] as DOWN, not seen for [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.down')));
|
||||
Log::info(sprintf('%s:- Marking [%s] as DOWN, not seen for at least [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.down')));
|
||||
$contact = FALSE;
|
||||
|
||||
// Email Alert
|
||||
@ -173,7 +173,7 @@ class AddressIdle implements ShouldQueue
|
||||
|
||||
$contact = FALSE;
|
||||
|
||||
Log::info(sprintf('%s:- Marking [%s] as HOLD, not seen for [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.hold')));
|
||||
Log::info(sprintf('%s:- Marking [%s] as HOLD, not seen for at least [%d] days',self::LOGKEY,$ao->ftn,config('fido.idle.hold')));
|
||||
|
||||
// Email Alert
|
||||
if ($ao->system->users->count()) {
|
||||
|
Loading…
Reference in New Issue
Block a user