SOLVED (?) Re: mailman & mime sta headers
I.Ioannou
roryt at hol.gr
Sun Oct 29 20:25:01 EET 2000
I wrote:
> Kala kai agia ta archives pou fiaxnei alla den katalabainei apo mime
> sta headers, me apotelesma na bgainoun peripou etsi :
Gia opoion endiaferetai to parakatw patch sto pipermail.py
(psilo)diorthwnei tin katastasi
I.Ioannou <roryt at hol.gr>
-----cut here-------
--- 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 Linux-greek-users
mailing list