Add new optional beta email parser thats based on ImapEngine instead of Webklex

This commit is contained in:
johnnyq
2026-02-26 16:11:49 -05:00
parent 1ba19cc249
commit 9cb1ff7330
682 changed files with 101834 additions and 8 deletions

View File

@@ -0,0 +1,66 @@
<?php
/**
* This file is part of the ZBateson\MailMimeParser project.
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
namespace ZBateson\MailMimeParser\Parser\Part;
use ZBateson\MailMimeParser\Message\PartHeaderContainer;
/**
* Header container representing the start line of a uu-encoded part.
*
* The line may contain a unix file mode and a filename.
*
* @author Zaahid Bateson
*/
class UUEncodedPartHeaderContainer extends PartHeaderContainer
{
/**
* @var ?int the unix file permission
*/
protected ?int $mode = null;
/**
* @var ?string the name of the file in the uuencoding 'header'.
*/
protected ?string $filename = null;
/**
* Returns the file mode included in the uuencoded 'begin' line for this
* part.
*/
public function getUnixFileMode() : ?int
{
return $this->mode;
}
/**
* Sets the unix file mode for the uuencoded 'begin' line.
*/
public function setUnixFileMode(int $mode) : static
{
$this->mode = $mode;
return $this;
}
/**
* Returns the filename included in the uuencoded 'begin' line for this
* part.
*/
public function getFilename() : ?string
{
return $this->filename;
}
/**
* Sets the filename included in the uuencoded 'begin' line.
*/
public function setFilename(string $filename) : static
{
$this->filename = $filename;
return $this;
}
}