comparison roundup/configuration.py @ 3922:586679a314f7

role checking for PGP mail and docs Erik's suggestion to allow the admin to specify a set of roles to perform PGP processing on seemed like a reasonable one I implemented it. There is a new config option to control it. I also realized that the signature verification had a slight problem: it was simply checking for a valid, known signature before continuing on. If another user in the keyring forged mail it was pass the PGP check and then modify the db as the forged user. I changed the logic to make sure that the author of the email matches the key of the verifying signature. As I was adding the documentation for the PGP processing I noticed that there were several other new-ish options that didn't appear in customizing.txt so I added them as well.
author Justus Pendleton <jpend@users.sourceforge.net>
date Wed, 26 Sep 2007 03:20:21 +0000
parents 6b3919328381
children 1dd64778bc45
comparison
equal deleted inserted replaced
3921:b49bbd4ff6ea 3922:586679a314f7
1 # Roundup Issue Tracker configuration support 1 # Roundup Issue Tracker configuration support
2 # 2 #
3 # $Id: configuration.py,v 1.48 2007-09-22 07:25:34 jpend Exp $ 3 # $Id: configuration.py,v 1.49 2007-09-26 03:20:21 jpend Exp $
4 # 4 #
5 __docformat__ = "restructuredtext" 5 __docformat__ = "restructuredtext"
6 6
7 import ConfigParser 7 import ConfigParser
8 import getopt 8 import getopt
718 "Regular expression matching a blank line."), 718 "Regular expression matching a blank line."),
719 ), "Roundup Mail Gateway options"), 719 ), "Roundup Mail Gateway options"),
720 ("pgp", ( 720 ("pgp", (
721 (BooleanOption, "enable", "no", 721 (BooleanOption, "enable", "no",
722 "Enable PGP processing. Requires pyme."), 722 "Enable PGP processing. Requires pyme."),
723 (NullableOption, "roles", "",
724 "If specified, a comma-separated list of roles to perform\n"
725 "PGP processing on. If not specified, it happens for all\n"
726 "users."),
723 (NullableOption, "homedir", "", 727 (NullableOption, "homedir", "",
724 "Location of PGP directory. Defaults to $HOME/.gnupg if\n" 728 "Location of PGP directory. Defaults to $HOME/.gnupg if\n"
725 "not specified."), 729 "not specified."),
726 ), "OpenPGP mail processing options"), 730 ), "OpenPGP mail processing options"),
727 ("nosy", ( 731 ("nosy", (

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