Mercurial > p > roundup > code
comparison roundup/mailgw.py @ 476:00450ff9c4e7
ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 02 Jan 2002 02:32:38 +0000 |
| parents | a1a44636bace |
| children | 9ad589d0a60f c242455d9b46 |
comparison
equal
deleted
inserted
replaced
| 475:a1a44636bace | 476:00450ff9c4e7 |
|---|---|
| 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.46 2002-01-02 02:31:38 richard Exp $ | 76 $Id: mailgw.py,v 1.47 2002-01-02 02:32:38 richard 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 |
| 385 # | 385 # |
| 386 # handle the users | 386 # handle the users |
| 387 # | 387 # |
| 388 | 388 |
| 389 # Don't create users if ANONYMOUS_REGISTER is denied | 389 # Don't create users if ANONYMOUS_REGISTER is denied |
| 390 if self.ANONYMOUS_ACCESS == 'deny': | 390 if self.ANONYMOUS_REGISTER == 'deny': |
| 391 create = 0 | 391 create = 0 |
| 392 else: | 392 else: |
| 393 create = 1 | 393 create = 1 |
| 394 author = self.db.uidFromAddress(message.getaddrlist('from')[0], | 394 author = self.db.uidFromAddress(message.getaddrlist('from')[0], |
| 395 create=create) | 395 create=create) |
| 706 l.append(section) | 706 l.append(section) |
| 707 return summary, '\n\n'.join(l) | 707 return summary, '\n\n'.join(l) |
| 708 | 708 |
| 709 # | 709 # |
| 710 # $Log: not supported by cvs2svn $ | 710 # $Log: not supported by cvs2svn $ |
| 711 # Revision 1.46 2002/01/02 02:31:38 richard | |
| 712 # Sorry for the huge checkin message - I was only intending to implement #496356 | |
| 713 # but I found a number of places where things had been broken by transactions: | |
| 714 # . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename | |
| 715 # for _all_ roundup-generated smtp messages to be sent to. | |
| 716 # . the transaction cache had broken the roundupdb.Class set() reactors | |
| 717 # . newly-created author users in the mailgw weren't being committed to the db | |
| 718 # | |
| 719 # Stuff that made it into CHANGES.txt (ie. the stuff I was actually working | |
| 720 # on when I found that stuff :): | |
| 721 # . #496356 ] Use threading in messages | |
| 722 # . detectors were being registered multiple times | |
| 723 # . added tests for mailgw | |
| 724 # . much better attaching of erroneous messages in the mail gateway | |
| 725 # | |
| 711 # Revision 1.45 2001/12/20 15:43:01 rochecompaan | 726 # Revision 1.45 2001/12/20 15:43:01 rochecompaan |
| 712 # Features added: | 727 # Features added: |
| 713 # . Multilink properties are now displayed as comma separated values in | 728 # . Multilink properties are now displayed as comma separated values in |
| 714 # a textbox | 729 # a textbox |
| 715 # . The add user link is now only visible to the admin user | 730 # . The add user link is now only visible to the admin user |
