1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-01-05 21:19:16 +00:00

add option to skip footer on reply e-mails

This commit is contained in:
FreddleSpl0it
2023-12-22 10:39:07 +01:00
parent 515b85bb2f
commit efab11720d
7 changed files with 27 additions and 9 deletions

View File

@@ -49,13 +49,14 @@ $from = $headers['From'];
$empty_footer = json_encode(array(
'html' => '',
'plain' => '',
'skip_replies' => 0,
'vars' => array()
));
error_log("FOOTER: checking for domain " . $domain . ", user " . $username . " and address " . $from . PHP_EOL);
try {
$stmt = $pdo->prepare("SELECT `plain`, `html`, `mbox_exclude` FROM `domain_wide_footer`
$stmt = $pdo->prepare("SELECT `plain`, `html`, `mbox_exclude`, `skip_replies` FROM `domain_wide_footer`
WHERE `domain` = :domain");
$stmt->execute(array(
':domain' => $domain