Fix packet name sent to remote - now matches packet name stored in DB
This commit is contained in:
parent
98c9b880d4
commit
fe9fbb88b0
@ -20,7 +20,7 @@ class Mail extends Item
|
||||
switch ($action) {
|
||||
case self::I_SEND:
|
||||
$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_mtime = Carbon::now()->timestamp; // @todo This timestamp should be consistent incase of retries
|
||||
|
||||
|
@ -424,7 +424,7 @@ class Address extends Model
|
||||
* Return a packet of mail
|
||||
*
|
||||
* @param Collection $c
|
||||
* @return Packet
|
||||
* @return Packet|null
|
||||
*/
|
||||
private function getPacket(Collection $c): ?Packet
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user