[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r21137: {projects} Fix 'Farsi mails won't parse correct' bug (in projects/gettor: . lib/gettor)



Author: kaner
Date: 2009-12-09 11:31:16 -0500 (Wed, 09 Dec 2009)
New Revision: 21137

Modified:
   projects/gettor/TODO
   projects/gettor/lib/gettor/requests.py
Log:
Fix 'Farsi mails won't parse correct' bug


Modified: projects/gettor/TODO
===================================================================
--- projects/gettor/TODO	2009-12-09 08:54:07 UTC (rev 21136)
+++ projects/gettor/TODO	2009-12-09 16:31:16 UTC (rev 21137)
@@ -3,9 +3,6 @@
 - Testing and proposals to better support users with limited email bandwidth
   (multi-part download, etc.).
 - Split (at least) tiger bundle into several smaller archives to avoid ~20MB
-- Add more translations
-    - Freeze messages for translation
-    - Put po files into pootle for translation
 - Think about opening up GetTor to non-DKIM users because Gmail & co are 
   blocked in Iran:
     - One option would be to use a "3 way handshake" to send out packages:
@@ -15,6 +12,7 @@
     - Just send out packages to everyone without asking (Potential DoS of moria
       and every Inbox around the globe)
     - ???
+- Remove deprecated 'MimeWriter' and use python email module instead
 - Clean distdir and packdir on each fetching/packaging run
 - Write instructions on the website on how to use GetTor. Put that site into
   pootle for translation so for example chinese and iranian users have a

Modified: projects/gettor/lib/gettor/requests.py
===================================================================
--- projects/gettor/lib/gettor/requests.py	2009-12-09 08:54:07 UTC (rev 21136)
+++ projects/gettor/lib/gettor/requests.py	2009-12-09 16:31:16 UTC (rev 21137)
@@ -84,7 +84,7 @@
 	    self.findOutLang()
         self.checkLang()
         # Parse line by line
-        for line in email.Iterators.body_line_iterator(self.parsedMessage):
+        for line in email.Iterators.body_line_iterator(self.parsedMessage, decode=1):
             # Skip quotes
             if line.startswith(">"):
                 continue