[Mailman-Users] Mime in subject ... more=?us-ascii?Q?__=C4=C5=D6=E4=E5=F6?=

I.Ioannou roryt at hol.gr
Sun Oct 29 16:57:40 CET 2000


On 05-Oct-00 Seppo Kallio wrote:
> 
> Any European users? Hallo? Do you have this problem solved?
> 
I didn't see any solution for this (sorry if I'm missing
something) so I did a litle debuging on pipermail.

This small hack (fix ?) for pipemail.py, 
hope fixes things (v 2.0.rc1) 
(I don't know python at all but for me it is working)

I.Ioannou <roryt at hol.gr>
-------------- next part --------------
--- pipermail.py.org    Fri Oct 20 09:18:11 2000
+++ pipermail.py        Sun Oct 29 16:42:55 2000
@@ -7,6 +7,8 @@
 import string
 import time

+from Mailman import EncWord
+
 try:
     import cPickle
     pickle = cPickle
@@ -558,8 +560,16 @@

             author = fixAuthor(article.author)
             subject = string.lower(article.subject)
-
-            article.parentID = parentID = self.get_parent_info(arch, article)
+
+           # decode the mime subjects
+           try:
+                   s, c = EncWord.decode(subject)
+           except ValueError:
+                   s = subject
+
+           subject = s
+
+           article.parentID = parentID = self.get_parent_info(arch, article)
             if parentID:
                 parent = self.database.getArticle(arch, parentID)
                 article.threadKey = parent.threadKey + article.date + '-'      
  


More information about the Mailman-Users mailing list