Mercurial > p > roundup > code
comparison roundup/mailgw.py @ 571:2998d683e2cf
Fixed status change in mail gateway.
| author | Roche Compaan <rochecompaan@users.sourceforge.net> |
|---|---|
| date | Tue, 22 Jan 2002 11:54:45 +0000 |
| parents | d7b9751f8927 |
| children | f0513f650042 |
comparison
equal
deleted
inserted
replaced
| 570:e346a9792335 | 571:2998d683e2cf |
|---|---|
| 71 set() method to add the message to the item's spool; in the second case we | 71 set() method to add the message to the item's spool; in the second case we |
| 72 are calling the create() method to create a new node). If an auditor raises | 72 are calling the create() method to create a new node). If an auditor raises |
| 73 an exception, the original message is bounced back to the sender with the | 73 an exception, the original message is bounced back to the sender with the |
| 74 explanatory message given in the exception. | 74 explanatory message given in the exception. |
| 75 | 75 |
| 76 $Id: mailgw.py,v 1.55 2002-01-21 10:05:47 rochecompaan Exp $ | 76 $Id: mailgw.py,v 1.56 2002-01-22 11:54:45 rochecompaan Exp $ |
| 77 ''' | 77 ''' |
| 78 | 78 |
| 79 | 79 |
| 80 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri | 80 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri |
| 81 import time, random | 81 import time, random |
| 578 resolved_id = self.db.status.lookup('resolved') | 578 resolved_id = self.db.status.lookup('resolved') |
| 579 chatting_id = self.db.status.lookup('chatting') | 579 chatting_id = self.db.status.lookup('chatting') |
| 580 except KeyError: | 580 except KeyError: |
| 581 pass | 581 pass |
| 582 else: | 582 else: |
| 583 current_status = cl.get(nodeid, 'status') | |
| 583 if (not props.has_key('status') and | 584 if (not props.has_key('status') and |
| 584 properties['status'] == unread_id or | 585 current_status == unread_id or |
| 585 properties['status'] == resolved_id): | 586 current_status == resolved_id): |
| 586 props['status'] = chatting_id | 587 props['status'] = chatting_id |
| 587 | 588 |
| 588 # add nosy in arguments to issue's nosy list | 589 # add nosy in arguments to issue's nosy list |
| 589 if not props.has_key('nosy'): props['nosy'] = [] | 590 if not props.has_key('nosy'): props['nosy'] = [] |
| 590 n = {} | 591 n = {} |
| 751 l.append(section) | 752 l.append(section) |
| 752 return summary, '\n\n'.join(l) | 753 return summary, '\n\n'.join(l) |
| 753 | 754 |
| 754 # | 755 # |
| 755 # $Log: not supported by cvs2svn $ | 756 # $Log: not supported by cvs2svn $ |
| 757 # Revision 1.55 2002/01/21 10:05:47 rochecompaan | |
| 758 # Feature: | |
| 759 # . the mail gateway now responds with an error message when invalid | |
| 760 # values for arguments are specified for link or multilink properties | |
| 761 # . modified unit test to check nosy and assignedto when specified as | |
| 762 # arguments | |
| 763 # | |
| 764 # Fixed: | |
| 765 # . fixed setting nosy as argument in subject line | |
| 766 # | |
| 756 # Revision 1.54 2002/01/16 09:14:45 grubert | 767 # Revision 1.54 2002/01/16 09:14:45 grubert |
| 757 # . if the attachment has no name, name it unnamed, happens with tnefs. | 768 # . if the attachment has no name, name it unnamed, happens with tnefs. |
| 758 # | 769 # |
| 759 # Revision 1.53 2002/01/16 07:20:54 richard | 770 # Revision 1.53 2002/01/16 07:20:54 richard |
| 760 # simple help command for mailgw | 771 # simple help command for mailgw |
