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

[or-cvs] r18038: {projects} Ignore lines starting with ">" in request emails TODO-- (in projects/gettor: . gettor)



Author: kaner
Date: 2009-01-08 22:25:41 -0500 (Thu, 08 Jan 2009)
New Revision: 18038

Modified:
   projects/gettor/TODO
   projects/gettor/gettor/requests.py
Log:
Ignore lines starting with ">" in request emails
TODO--


Modified: projects/gettor/TODO
===================================================================
--- projects/gettor/TODO	2009-01-09 03:13:48 UTC (rev 18037)
+++ projects/gettor/TODO	2009-01-09 03:25:41 UTC (rev 18038)
@@ -12,4 +12,3 @@
   attachment
 - Add a follow up reply that describes an introduction to bridges
 - Add better support emails in responses for times when something goes wrong
-- Treat lines starting with ">" as data to ignore

Modified: projects/gettor/gettor/requests.py
===================================================================
--- projects/gettor/gettor/requests.py	2009-01-09 03:13:48 UTC (rev 18037)
+++ projects/gettor/gettor/requests.py	2009-01-09 03:25:41 UTC (rev 18038)
@@ -48,6 +48,9 @@
         # If no package name could be recognized, use 'None'
         self.returnPackage = None
         for line in email.Iterators.body_line_iterator(self.parsedMessage):
+            # Remove comments
+            if line.startswith(">"):
+                continue
             for package in packages.keys():
                 match = re.match(package, line)    
                 if match: