summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d2be762)
raw | patch | inline | side by side (parent: d2be762)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 14 Feb 2002 23:46:02 +0000 (23:46 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 14 Feb 2002 23:46:02 +0000 (23:46 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@627 57a73879-2fb5-44c3-a270-3262357dd7e2
diff --git a/CHANGES.txt b/CHANGES.txt
index a14d0e562dfa82c6849e017cf8f92bb47ba378a5..6a7ba2271e328a989fb3dc7a28bcddb4b8bafbb8 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
. Added a uniquely Roundup header to email, "X-Roundup-Name"
. All forms now have "double-submit" protection when Javascript is enabled
on the client-side.
-
+ . #516883 ] mail interface + ANONYMOUS_REGISTER
2002-01-24 - 0.4.0
Feature:
diff --git a/MIGRATION.txt b/MIGRATION.txt
index 7c78194254bc0ea09715f5206f920a5aad993926..b40b0e81faa8b23bd70349c43e8e969207e60f0e 100644 (file)
--- a/MIGRATION.txt
+++ b/MIGRATION.txt
accordingly.
This file contains information for users upgrading from:
+ 0.4.0 -> 0.4.1
0.3.x -> 0.4.x
0.2.x -> 0.3.x
+Migrating from 0.4.0 to 0.4.1
+=============================
+
+Configuration
+-------------
+
+To allow more fine-grained access control, the variable used to check
+permission to auto-register users in the mail gateway is now called
+ANONYMOUS_REGISTER_MAIL rather than overloading ANONYMOUS_REGISTER. If the
+variable doesn't exist, then ANONYMOUS_REGISTER is tested as before.
+
+
+
Migrating from 0.3.x to 0.4.x
=============================
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index 9a3083adfd49b628a1ab9fb5c064fc08638be81e..b3bda148934ca24c3ed115e77c1d1f3482219db1 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
an exception, the original message is bounced back to the sender with the
explanatory message given in the exception.
-$Id: mailgw.py,v 1.63 2002-02-12 08:08:55 grubert Exp $
+$Id: mailgw.py,v 1.64 2002-02-14 23:46:02 richard Exp $
'''
# handle the users
#
- # Don't create users if ANONYMOUS_REGISTER is denied
- if self.instance.ANONYMOUS_REGISTER == 'deny':
+ # Don't create users if ANONYMOUS_REGISTER_MAIL is denied
+ # ... fall back on ANONYMOUS_REGISTER if the other doesn't exist
+ create = 1
+ if hasattr(self.instance, 'ANONYMOUS_REGISTER_MAIL'):
+ if self.instance.ANONYMOUS_REGISTER_MAIL == 'deny':
+ create = 0
+ elif self.instance.ANONYMOUS_REGISTER == 'deny':
create = 0
- else:
- create = 1
+
author = self.db.uidFromAddress(message.getaddrlist('from')[0],
create=create)
if not author:
#
# $Log: not supported by cvs2svn $
+# Revision 1.63 2002/02/12 08:08:55 grubert
+# . Clean up mail handling, multipart handling.
+#
# Revision 1.62 2002/02/05 14:15:29 grubert
# . respect encodings in non multipart messages.
#
diff --git a/roundup/templates/classic/instance_config.py b/roundup/templates/classic/instance_config.py
index ac2cffea7acc07b7be0730f35a030c9d6e4009cb..e36d1bbfd6a2b75d2063ede134c165358f5b817c 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: instance_config.py,v 1.10 2001-11-26 22:55:56 richard Exp $
+# $Id: instance_config.py,v 1.11 2002-02-14 23:46:02 richard Exp $
MAIL_DOMAIN=MAILHOST=HTTP_HOST=None
HTTP_PORT=0
# Deny or allow anonymous users to register through the web interface
ANONYMOUS_REGISTER = 'deny' # either 'deny' or 'allow'
+# Deny or allow anonymous users to register through the mail interface
+ANONYMOUS_REGISTER_MAIL = 'deny' # either 'deny' or 'allow'
+
# Send nosy messages to the author of the message
MESSAGES_TO_AUTHOR = 'no' # either 'yes' or 'no'
#
# $Log: not supported by cvs2svn $
+# Revision 1.10 2001/11/26 22:55:56 richard
+# Feature:
+# . Added INSTANCE_NAME to configuration - used in web and email to identify
+# the instance.
+# . Added EMAIL_SIGNATURE_POSITION to indicate where to place the roundup
+# signature info in e-mails.
+# . Some more flexibility in the mail gateway and more error handling.
+# . Login now takes you to the page you back to the were denied access to.
+#
+# Fixed:
+# . Lots of bugs, thanks Roché and others on the devel mailing list!
+#
# Revision 1.9 2001/10/30 00:54:45 richard
# Features:
# . #467129 ] Lossage when username=e-mail-address
diff --git a/roundup/templates/extended/instance_config.py b/roundup/templates/extended/instance_config.py
index 97cf108ee4a9f794172bb879e8f857e2392e649e..f3ddcd1bbb03b7b80121fee7af5bda8ebdebdf17 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: instance_config.py,v 1.10 2001-11-26 22:55:56 richard Exp $
+# $Id: instance_config.py,v 1.11 2002-02-14 23:46:02 richard Exp $
MAIL_DOMAIN=MAILHOST=HTTP_HOST=None
HTTP_PORT=0
# Deny or allow anonymous users to register through the web interface
ANONYMOUS_REGISTER = 'deny'
+# Deny or allow anonymous users to register through the mail interface
+ANONYMOUS_REGISTER_MAIL = 'deny'
+
# Send nosy messages to the author of the message
MESSAGES_TO_AUTHOR = 'no' # either 'yes' or 'no'
#
# $Log: not supported by cvs2svn $
+# Revision 1.10 2001/11/26 22:55:56 richard
+# Feature:
+# . Added INSTANCE_NAME to configuration - used in web and email to identify
+# the instance.
+# . Added EMAIL_SIGNATURE_POSITION to indicate where to place the roundup
+# signature info in e-mails.
+# . Some more flexibility in the mail gateway and more error handling.
+# . Login now takes you to the page you back to the were denied access to.
+#
+# Fixed:
+# . Lots of bugs, thanks Roché and others on the devel mailing list!
+#
# Revision 1.9 2001/10/30 00:54:45 richard
# Features:
# . #467129 ] Lossage when username=e-mail-address