Merge branch 'mid' into 'master'
[mailman.git] / src / mailman / interfaces / action.py
blobcc28f7005ed765fd710bfce2c56e6752c62c0663
1 # Copyright (C) 2007-2023 by the Free Software Foundation, Inc.
3 # This file is part of GNU Mailman.
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.
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.
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/>.
18 """Message actions."""
20 from enum import Enum
21 from public import public
24 @public
25 class Action(Enum):
26 hold = 0
27 reject = 1
28 discard = 2
29 accept = 3
30 defer = 4
33 @public
34 class FilterAction(Enum):
35 hold = 0
36 reject = 1
37 discard = 2
38 accept = 3
39 defer = 4
40 forward = 5
41 preserve = 6