diff options
Diffstat (limited to 'src/MailmanMessage.php')
-rw-r--r-- | src/MailmanMessage.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/MailmanMessage.php b/src/MailmanMessage.php new file mode 100644 index 0000000..c284a8e --- /dev/null +++ b/src/MailmanMessage.php @@ -0,0 +1,17 @@ +<?php + +require_once(__DIR__ . '/EmailMessage.php'); + +class MailmanMessage extends EmailMessage { + public function __construct($input) { + parent::__construct($input); + } + + public function getSource() { + return self::parse_addr( + substr_replace($this->msg->headers['list-post'], '', 1, 7) + ); + } +} + +?> |