Mercurial > p > roundup > code
comparison roundup/mailgw.py @ 309:f193e0a1b9a5
[SF#473130]: Nosy list not set correctly
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 21 Oct 2001 00:53:42 +0000 |
| parents | fd9835c1e58d |
| children | 0ec8a9f1cbe6 |
comparison
equal
deleted
inserted
replaced
| 308:e32af1eff4ea | 309:f193e0a1b9a5 |
|---|---|
| 70 set() method to add the message to the item's spool; in the second case we | 70 set() method to add the message to the item's spool; in the second case we |
| 71 are calling the create() method to create a new node). If an auditor raises | 71 are calling the create() method to create a new node). If an auditor raises |
| 72 an exception, the original message is bounced back to the sender with the | 72 an exception, the original message is bounced back to the sender with the |
| 73 explanatory message given in the exception. | 73 explanatory message given in the exception. |
| 74 | 74 |
| 75 $Id: mailgw.py,v 1.20 2001-10-17 23:13:19 richard Exp $ | 75 $Id: mailgw.py,v 1.21 2001-10-21 00:53:42 richard Exp $ |
| 76 ''' | 76 ''' |
| 77 | 77 |
| 78 | 78 |
| 79 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri | 79 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri |
| 80 import traceback | 80 import traceback |
| 380 if properties.has_key('status') and not props.has_key('status'): | 380 if properties.has_key('status') and not props.has_key('status'): |
| 381 props['status'] = '1' # "unread" | 381 props['status'] = '1' # "unread" |
| 382 if properties.has_key('title') and not props.has_key('title'): | 382 if properties.has_key('title') and not props.has_key('title'): |
| 383 props['title'] = title | 383 props['title'] = title |
| 384 props['messages'] = [message_id] | 384 props['messages'] = [message_id] |
| 385 props['nosy'] = recipients[:] | 385 props['nosy'] = props.get('nosy', []) + recipients |
| 386 props['nosy'].append(author) | 386 props['nosy'].append(author) |
| 387 props['nosy'].sort() | 387 props['nosy'].sort() |
| 388 nodeid = cl.create(**props) | 388 nodeid = cl.create(**props) |
| 389 | 389 |
| 390 def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'), | 390 def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'), |
| 416 l.append(section) | 416 l.append(section) |
| 417 return summary, '\n'.join(l) | 417 return summary, '\n'.join(l) |
| 418 | 418 |
| 419 # | 419 # |
| 420 # $Log: not supported by cvs2svn $ | 420 # $Log: not supported by cvs2svn $ |
| 421 # Revision 1.20 2001/10/17 23:13:19 richard | |
| 422 # Did a fair bit of work on the admin tool. Now has an extra command "table" | |
| 423 # which displays node information in a tabular format. Also fixed import and | |
| 424 # export so they work. Removed freshen. | |
| 425 # Fixed quopri usage in mailgw from bug reports. | |
| 426 # | |
| 421 # Revision 1.19 2001/10/11 23:43:04 richard | 427 # Revision 1.19 2001/10/11 23:43:04 richard |
| 422 # Implemented the comma-separated printing option in the admin tool. | 428 # Implemented the comma-separated printing option in the admin tool. |
| 423 # Fixed a typo (more of a vim-o actually :) in mailgw. | 429 # Fixed a typo (more of a vim-o actually :) in mailgw. |
| 424 # | 430 # |
| 425 # Revision 1.18 2001/10/11 06:38:57 richard | 431 # Revision 1.18 2001/10/11 06:38:57 richard |
