1# Copyright (C) 2009-2020 by the Free Software Foundation, Inc. 2# 3# This file is part of GNU Mailman. 4# 5# GNU Mailman is free software: you can redistribute it and/or modify it under 6# the terms of the GNU General Public License as published by the Free 7# Software Foundation, either version 3 of the License, or (at your option) 8# any later version. 9# 10# GNU Mailman is distributed in the hope that it will be useful, but WITHOUT 11# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13# more details. 14# 15# You should have received a copy of the GNU General Public License along with 16# GNU Mailman. If not, see <https://www.gnu.org/licenses/>. 17 18"""One last digest.""" 19 20from enum import Enum 21from public import public 22from zope.interface import Attribute, Interface 23 24 25@public 26class DigestFrequency(Enum): 27 yearly = 0 28 monthly = 1 29 quarterly = 2 30 weekly = 3 31 daily = 4 32 33 34@public 35class IOneLastDigest(Interface): 36 """Users who should receive one last digest.""" 37 38 mailing_list = Attribute( 39 """The mailing list for the one last digest.""") 40 41 address = Attribute( 42 """The address to receive the one last digest.""") 43 44 delivery_mode = Attribute( 45 """The digest delivery mode to send.""") 46