@@ -72,7 +72,7 @@ class node. Any parts of other types are each stored in separate files
7272an exception, the original message is bounced back to the sender with the
7373explanatory message given in the exception.
7474
75- $Id: mailgw.py,v 1.22 2001-10-21 03:35:13 richard Exp $
75+ $Id: mailgw.py,v 1.23 2001-10-21 04:00:20 richard Exp $
7676'''
7777
7878
@@ -364,6 +364,19 @@ def handle_message(self, message):
364364''' % (nodeid , subject )
365365 messages .append (message_id )
366366 props ['messages' ] = messages
367+
368+ # if the message is currently 'unread', then set it to 'chatting'
369+ if properties .has_key ('status' ):
370+ try :
371+ # determine the id of 'unread' and 'chatting'
372+ unread_id = self .db .status .lookup ('unread' )
373+ chatting_id = self .db .status .lookup ('chatting' )
374+ except KeyError :
375+ pass
376+ else :
377+ if not props ['status' ] or props ['status' ] == unread_id :
378+ props ['status' ] = chatting_id
379+
367380 cl .set (nodeid , ** props )
368381 else :
369382 # If just an item class name is found there, we attempt to create a
@@ -418,6 +431,9 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'),
418431
419432#
420433# $Log: not supported by cvs2svn $
434+ # Revision 1.22 2001/10/21 03:35:13 richard
435+ # bug #473125: Paragraph in e-mails
436+ #
421437# Revision 1.21 2001/10/21 00:53:42 richard
422438# bug #473130: Nosy list not set correctly
423439#
0 commit comments