~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/xmlrpc/ProcessMail.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    secret = xmlrpcobj._instr(secret)
17
17
    mail = str(mail)
18
18
 
19
 
    if request.cfg.secrets['xmlrpc/ProcessMail'] != secret:
 
19
    if not request.cfg.mail_import_secret:
 
20
        return u"No password set"
 
21
 
 
22
    if request.cfg.mail_import_secret != secret:
20
23
        return u"Invalid password"
21
24
 
22
25
    try: