Update of /cvsroot/mailman/mailman/Mailman/Queue
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13941/Queue

Modified Files:
      Tag: Release_2_1-maint
        NewsRunner.py 
Log Message:
Request from Brad Knowles. We need subject prefix stripped
from the posts from mailling list for gatewaying to nntp.


Index: NewsRunner.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Queue/NewsRunner.py,v
retrieving revision 2.14.2.1
retrieving revision 2.14.2.2
diff -u -d -r2.14.2.1 -r2.14.2.2
--- NewsRunner.py       22 Sep 2003 02:34:10 -0000      2.14.2.1
+++ NewsRunner.py       12 Feb 2005 14:31:45 -0000      2.14.2.2
@@ -102,11 +102,14 @@
         del msg['approved']
         msg['Approved'] = mlist.GetListEmail()
     # Should we restore the original, non-prefixed subject for gatewayed
-    # messages?
-    origsubj = msgdata.get('origsubj')
-    if not mlist.news_prefix_subject_too and origsubj is not None:
+    # messages? TK: We use stripped_subject (prefix stripped) which was
+    # crafted in CookHeaders.py to ensure prefix was stripped from the subject
+    # came from mailing list user.
+    stripped_subject = msgdata.get('stripped_subject') \
+                       or msgdaga.get('origsubj')
+    if not mlist.news_prefix_subject_too and stripped_subject is not None:
         del msg['subject']
-        msg['subject'] = origsubj
+        msg['subject'] = stripped_subject
     # Add the appropriate Newsgroups: header
     ngheader = msg['newsgroups']
     if ngheader is not None:

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to