[Mailman-Users] Tip for finding in the source

Oliver Schulze L. oliver at samera.com.py
Fri Mar 17 21:45:44 CET 2006


(To list moderator: please don't block this email, its an already 
started discussion,
I need to provide feedback to Mark, I need to post the patch, thanks)

Hi Mark,
I think I found were the original email get attached to the notification 
email.

What I need to do is:
- if the email have been marked as Spam by the Mailman Spam filters,
  comment the line:
  #nmsg.attach(MIMEMessage(msg))
  else, include the original email:
  nmsg.attach(MIMEMessage(msg))
- Detect if the email has been rejected because the Mailman Spam Filter
  made a hit.
- I never code in python(but did in C++, php, perl, etc). My question 
is, how do
  I convert the Hold.py to Hold.pyc ?

I made this patch to:
Mailman/Handlers/Hold.py
--- Hold.py.ori 2006-03-17 17:03:27.000000000 -0300
+++ Hold.py     2006-03-17 17:02:55.000000000 -0300
@@ -274,7 +274,7 @@
             dmsg['Sender'] = requestaddr
             dmsg['From'] = requestaddr
             nmsg.attach(text)
-            nmsg.attach(MIMEMessage(msg))
+            #nmsg.attach(MIMEMessage(msg))
             nmsg.attach(MIMEMessage(dmsg))
             nmsg.send(mlist, **{'tomoderators': 1})
         finally:

Many thanks!
Oliver

Mark Sapiro wrote:
> The process is driven by Mailman/Queue/BounceRunner.py and the actual
> sending of notices, scoring of bounces, etc. is done in
> Mailman/Bouncer.py.
>   
-- 
Oliver Schulze L.
<oliver at samera.com.py>




More information about the Mailman-Users mailing list