From 24be39cae3c551358bb8e17cef2425c20a4f2eb7 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 7 May 2020 14:36:09 +0200 Subject: Strip Agade footer from emails --- mail.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mail.php b/mail.php index 1092b91..84e6a8d 100644 --- a/mail.php +++ b/mail.php @@ -160,6 +160,14 @@ function mail_parse_message ($body,$prefill_info=[]) $headers[count ($headers)-1]['val'].=' '.trim ($line); } + $desc_begin=$i; + $desc_len=null; + for (; $i