Fix packet name sent to remote - now matches packet name stored in DB

This commit is contained in:
Deon George 2022-01-20 23:25:47 +11:00
parent 98c9b880d4
commit fe9fbb88b0
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class Mail extends Item
switch ($action) { switch ($action) {
case self::I_SEND: case self::I_SEND:
$this->file = $mail; $this->file = $mail;
$this->file_name = sprintf('%08x.pkt',Carbon::now()->timestamp); $this->file_name = sprintf('%s.pkt',$mail->name);
$this->file_size = strlen($mail); $this->file_size = strlen($mail);
$this->file_mtime = Carbon::now()->timestamp; // @todo This timestamp should be consistent incase of retries $this->file_mtime = Carbon::now()->timestamp; // @todo This timestamp should be consistent incase of retries

View File

@ -424,7 +424,7 @@ class Address extends Model
* Return a packet of mail * Return a packet of mail
* *
* @param Collection $c * @param Collection $c
* @return Packet * @return Packet|null
*/ */
private function getPacket(Collection $c): ?Packet private function getPacket(Collection $c): ?Packet
{ {