~ubuntu-branches/ubuntu/oneiric/mailman/oneiric

« back to all changes in this revision

Viewing changes to Mailman/Handlers/Replybot.py

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2009-12-31 15:50:29 UTC
  • mfrom: (1.1.6 upstream) (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20091231155029-wmhhmczxazp5hrk6
Tags: 1:2.1.13-1
* New upstream release. Patches incorporated:
  - 16_update_debian (partially)
  - 30_pipermail_threads
  - 65_handle_templates_directories
  - 77_header_folding_in_attachments
* Remove msgfmt.py, only used at build-time (closes: #555416).
* Remove adduser calls for 'list' user. Base-passwd guarantees it
  to be available, and trying to add it if it were not present may
  lead to inconsistencies regarding expectations for that user.
* Document second parameter of postfix-to-mailman.py to be
  ${mailbox}, effectively reverting inappropriate fix for #305762
  (closes: #549224).

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    if ack <> 'yes' and precedence in ('bulk', 'junk', 'list'):
44
44
        return
45
45
    # Check to see if the list is even configured to autorespond to this email
46
 
    # message.  Note: the mailowner script sets the `toadmin' or `toowner' key
47
 
    # (which for replybot purposes are equivalent), and the mailcmd script
48
 
    # sets the `torequest' key.
 
46
    # message.  Note: the owner script sets the `toowner' key, and the various
 
47
    # confirm, join, leave, request, subscribe and unsubscribe scripts set the
 
48
    # keys we use for `torequest'.
49
49
    toadmin = msgdata.get('toowner')
50
 
    torequest = msgdata.get('torequest')
 
50
    torequest = msgdata.get('torequest') or msgdata.get('toconfirm') or \
 
51
                    msgdata.get('tojoin') or msgdata.get('toleave')
51
52
    if ((toadmin and not mlist.autorespond_admin) or
52
53
           (torequest and not mlist.autorespond_requests) or \
53
54
           (not toadmin and not torequest and not mlist.autorespond_postings)):