Update of /cvsroot/tmda/tmda/TMDA
In directory sc8-pr-cvs1:/tmp/cvs-serv11363/TMDA

Modified Files:
        Pending.py 
Log Message:
Massive rewrite of some parts of the interface.

. the pending message list loading doesn't freeze anymore the interface
. a progress bar has been added, and that speeds up the loading by ten
  (psychologically, that is ;)
. Pending and Address now in the same window (kinda tabbed)
. Splitters are now MultiSplitters(TM), which means we can load an
  arbitrary number of terse headers (columns). Yet to implement though.



Index: Pending.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Pending.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- Pending.py  10 Dec 2002 17:15:37 -0000      1.10
+++ Pending.py  11 Dec 2002 23:18:49 -0000      1.11
@@ -241,7 +241,7 @@
         for msgid in self.msgs:
             self.count = self.count + 1
             try:
-                M = Message(msgid, self.command_recipient)
+                M = Message(msgid, self.command_recipient).initMessage()
             except Errors.MessageError, obj:
                 self.cPrint(obj)
                 continue
@@ -385,12 +385,16 @@
             raise Errors.MessageError, '%s not found!' % self.msgid
 
         self.msgobj = email.message_from_file(open(self.msgfile, 'r'))
+        self.recipient = recipient
+
+    def initMessage(self, recipient = None):
         self.return_path = email.Utils.parseaddr(
                                         self.msgobj.get('return-path'))[1]
-        if not recipient:
+        if not recipient and not self.recipient:
             self.recipient = self.msgobj.get('x-tmda-recipient')
         else:
             self.recipient = recipient
+        return self
 
     def release(self):
         """Release a message from the pending queue."""

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs

Reply via email to