diff roundup/mailgw.py @ 1616:6d1af2e441f4 maint-0.5

email registered users shouldn't be able to log in [SF#714673]
author Richard Jones <richard@users.sourceforge.net>
date Thu, 24 Apr 2003 07:51:52 +0000
parents 5a2a89a2f4aa
children
line wrap: on
line diff
--- a/roundup/mailgw.py	Thu Apr 24 06:58:05 2003 +0000
+++ b/roundup/mailgw.py	Thu Apr 24 07:51:52 2003 +0000
@@ -73,7 +73,7 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception. 
 
-$Id: mailgw.py,v 1.104.2.2 2003-04-23 12:10:51 richard Exp $
+$Id: mailgw.py,v 1.104.2.3 2003-04-24 07:49:31 richard Exp $
 '''
 
 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
@@ -839,12 +839,12 @@
         # attach the files to the issue
         if nodeid:
             # extend the existing files list
-            fileprop = cl.get(nodeid, 'file')
+            fileprop = cl.get(nodeid, 'files')
             fileprop.extend(files)
             props['files'] = fileprop
         else:
             # pre-load the files list
-            props['files'] = fileprop
+            props['files'] = files
 
 
         # 
@@ -931,7 +931,8 @@
     # couldn't match address or username, so create a new user
     if create:
         return db.user.create(username=address, address=address,
-            realname=realname, roles=db.config.NEW_EMAIL_USER_ROLES)
+            realname=realname, roles=db.config.NEW_EMAIL_USER_ROLES,
+            password=password.Password(password.generatePassword()))
     else:
         return 0
 

Roundup Issue Tracker: http://roundup-tracker.org/