FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Reject or remove mails with X-Spam-Flag headers
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Reject or remove mails with X-Spam-Flag headers [message #41364 is a reply to message #41229] Wed, 11 June 2008 14:34 Go to previous messageGo to previous message
TrevorPH is currently offline  TrevorPH   United Kingdom
Messages: 4
Registered: June 2008
Karma:
Junior Member
Patch follows

--- maillist.php 2008-05-22 01:23:57.000000000 +0100
+++ newmail.php 2008-06-11 15:32:38.000000000 +0100
@@ -421,6 +421,10 @@
q("UPDATE ".sql_p."msg SET mlist_msg_id="._esc($emsg->msg_id)." WHERE id=".(int)$m[1]." AND mlist_msg_id IS NULL");
return;
}
+ if (isset($emsg->headers['x-spam-flag']) && ($emsg->headers['x-spam-flag'] == 'YES'))
+ {
+ return;
+ }

$msg_post->post_stamp = !empty($emsg->headers['date']) ? strtotime($emsg->headers['date']) : 0;
if ($msg_post->post_stamp < 1 || $msg_post->post_stamp > __request_timestamp__) {
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Different sized backups of same forum?
Next Topic: Case-insensitive search
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 15:44:56 GMT 2024

Total time taken to generate the page: 0.04997 seconds