1
by
This commit was manufactured by cvs2svn to create branch |
1 |
# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
|
2 |
#
|
|
3 |
# This program is free software; you can redistribute it and/or
|
|
4 |
# modify it under the terms of the GNU General Public License
|
|
5 |
# as published by the Free Software Foundation; either version 2
|
|
6 |
# of the License, or (at your option) any later version.
|
|
7 |
#
|
|
8 |
# This program is distributed in the hope that it will be useful,
|
|
9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11 |
# GNU General Public License for more details.
|
|
12 |
#
|
|
13 |
# You should have received a copy of the GNU General Public License
|
|
14 |
# along with this program; if not, write to the Free Software
|
|
749
by tkikuchi
FSF office has moved to 51 Franklin Street. |
15 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
1
by
This commit was manufactured by cvs2svn to create branch |
16 |
|
17 |
"""MailList mixin class managing the autoresponder.
|
|
18 |
"""
|
|
19 |
||
20 |
from Mailman import mm_cfg |
|
21 |
from Mailman.i18n import _ |
|
22 |
||
23 |
||
24 |
||
25 |
class Autoresponder: |
|
26 |
def InitVars(self): |
|
27 |
# configurable
|
|
28 |
self.autorespond_postings = 0 |
|
29 |
self.autorespond_admin = 0 |
|
30 |
# this value can be
|
|
31 |
# 0 - no autoresponse on the -request line
|
|
32 |
# 1 - autorespond, but discard the original message
|
|
33 |
# 2 - autorespond, and forward the message on to be processed
|
|
34 |
self.autorespond_requests = 0 |
|
35 |
self.autoresponse_postings_text = '' |
|
36 |
self.autoresponse_admin_text = '' |
|
37 |
self.autoresponse_request_text = '' |
|
38 |
self.autoresponse_graceperiod = 90 # days |
|
39 |
# non-configurable
|
|
40 |
self.postings_responses = {} |
|
41 |
self.admin_responses = {} |
|
42 |
self.request_responses = {} |
|
43 |