Skip to content

Commit df33824

Browse files
author
Richard Jones
committed
Fix unread->chatting auto transition, thanks Roch'e
1 parent 6d8250b commit df33824

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

roundup/mailgw.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class node. Any parts of other types are each stored in separate files
7272
an exception, the original message is bounced back to the sender with the
7373
explanatory message given in the exception.
7474
75-
$Id: mailgw.py,v 1.23 2001-10-21 04:00:20 richard Exp $
75+
$Id: mailgw.py,v 1.24 2001-10-23 22:57:52 richard Exp $
7676
'''
7777

7878

@@ -374,7 +374,8 @@ def handle_message(self, message):
374374
except KeyError:
375375
pass
376376
else:
377-
if not props['status'] or props['status'] == unread_id:
377+
if (not props.has_key('status') or
378+
props['status'] == unread_id):
378379
props['status'] = chatting_id
379380

380381
cl.set(nodeid, **props)
@@ -431,6 +432,9 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'),
431432

432433
#
433434
# $Log: not supported by cvs2svn $
435+
# Revision 1.23 2001/10/21 04:00:20 richard
436+
# MailGW now moves 'unread' to 'chatting' on receiving e-mail for an issue.
437+
#
434438
# Revision 1.22 2001/10/21 03:35:13 richard
435439
# bug #473125: Paragraph in e-mails
436440
#

0 commit comments

Comments
 (0)