~msapiro/mailman/topics

« back to all changes in this revision

Viewing changes to Mailman/Handlers/Replybot.py

  • Committer: Mark Sapiro
  • Date: 2009-09-14 01:24:18 UTC
  • mfrom: (1006.1.71 2.2)
  • Revision ID: mark@msapiro.net-20090914012418-2qngbqwc28fe278a
Merged changes from 2.2 branch.

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)):