HEX
Server: Apache
System: Linux hz.vslconceptsdomains.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: dkfounda (3233)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/local/mailchannels/hooks/PostRpmVersionsExim.php
<?php

namespace MailChannels;

class PostRpmVersionsExim extends Hook {

    public function execute($hookData) {
        try {
            if ($this->outboundEnabled() && $this->outboundConfig->enableMailManHeaders()) {
                $this->outboundSMTPService->addMailManHeaders();
                return array(true, "added the X-MC-MailingList header");
            }

            return array(true, "not adding the X-MC-MailingList header; not configured to do so");
        } catch (\Exception $e) {
            return array(false, "an exception occurred adding the X-MC-MailingList header: $e");
        }
    }

    public static function category() {
        return "RPM::Versions";
    }

    public static function event() {
        return "exim";
    }

    public static function stage() {
        return "post";
    }
}