[ mailman-Bugs-825084 ] HyperArch.py allows empty subjects

SourceForge.net noreply at sourceforge.net
Thu Oct 16 18:11:51 EDT 2003


Bugs item #825084, was opened at 2003-10-16 13:49
Message generated for change (Settings changed) made by lanclos
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=825084&group_id=103

>Category: Pipermail
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Kyle Lanclos (lanclos)
Assigned to: Nobody/Anonymous (nobody)
Summary: HyperArch.py allows empty subjects

Initial Comment:
Messages coming into HyperArch.py with a subject of
"Re: " (or similar) come out having no subject at all.
This is Bad(tm), because the HREF links in the HTML
archives are keyed to the subject, and if there's no
subject, there's no link.

Here's a simple fix, against the 2.1.3 source.


--- mailman-2.1.3/Mailman/Archiver/HyperArch.py     
Sun Sep 21 19:40:51 2003
+++ /opt/mailman/Mailman/Archiver/HyperArch.py Thu Oct
16 13:38:39 2003
@@ -262,6 +262,8 @@
             if result:
                 i = result.end(0)
                 self.subject = self.subject[i:]
+               if self.subject.strip() == EMPTYSTRING:
+                       self.subject = '(no subject)'
             else:
                 i = -1
         # Useful to keep around


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=825084&group_id=103



More information about the Mailman-coders mailing list