New algorithm for calculating packet name, EMSI/BINKP inbound processing tested, Netmail rejection and intransit processing
This commit is contained in:
@@ -120,6 +120,7 @@ final class Send extends Item
|
||||
*
|
||||
* @param string $file
|
||||
* @throws Exception
|
||||
* @todo Catch if we add the same file twice
|
||||
*/
|
||||
public function add(string $file): void
|
||||
{
|
||||
@@ -277,7 +278,8 @@ final class Send extends Item
|
||||
throw new Exception('No file open for seek');
|
||||
|
||||
if ($this->sending instanceof Mail) {
|
||||
$rc = ($pos < $this->size) ? $pos : $this->size;
|
||||
$pos = ($pos < $this->size) ? $pos : $this->size;
|
||||
$rc = TRUE;
|
||||
|
||||
} else {
|
||||
$rc = (fseek($this->f,$pos,SEEK_SET) === 0);
|
||||
|
Reference in New Issue
Block a user