Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mautic.corals.io/app/bundles/EmailBundle/MonitoredEmail/Processor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mautic.corals.io/app/bundles/EmailBundle/MonitoredEmail/Processor/Address.php
<?php

namespace Mautic\EmailBundle\MonitoredEmail\Processor;

class Address
{
    /**
     * @param string $addresses String of email address from an email header
     */
    public static function parseList($addresses): array
    {
        $results         = [];
        $parsedAddresses = imap_rfc822_parse_adrlist($addresses, 'default.domain.name');
        foreach ($parsedAddresses as $parsedAddress) {
            if (
                isset($parsedAddress->host)
                && '.SYNTAX-ERROR.' != $parsedAddress->host
                && 'default.domain.name' != $parsedAddress->host
            ) {
                $email           = $parsedAddress->mailbox.'@'.$parsedAddress->host;
                $name            = $parsedAddress->personal ?? null;
                $results[$email] = $name;
            }
        }

        return $results;
    }

    public static function parseAddressForStatHash($address): ?string
    {
        if (preg_match('#^(.*?)\+(.*?)@(.*?)$#', $address, $parts)) {
            if (strstr($parts[2], '_')) {
                // Has an ID hash so use it to find the lead
                [$ignore, $hashId] = explode('_', $parts[2]);

                return $hashId;
            }
        }

        return null;
    }
}

Spamworldpro Mini