diff options
Diffstat (limited to 'email_assistant/plugin.py')
-rw-r--r-- | email_assistant/plugin.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/email_assistant/plugin.py b/email_assistant/plugin.py new file mode 100644 index 0000000..71af44f --- /dev/null +++ b/email_assistant/plugin.py | |||
@@ -0,0 +1,32 @@ | |||
1 | #!/usr/bin/env python3 | ||
2 | |||
3 | # Copyright (C) 2019 James E. Blair <corvus@gnu.org> | ||
4 | # | ||
5 | # This file is part of Email-assistant. | ||
6 | # | ||
7 | # Email-assistant is free software: you can redistribute it and/or | ||
8 | # modify it under the terms of the GNU Affero General Public License | ||
9 | # as published by the Free Software Foundation, either version 3 of | ||
10 | # the License, or (at your option) any later version. | ||
11 | # | ||
12 | # Email-assistant is distributed in the hope that it will be useful, | ||
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | # General Public License for more details. | ||
16 | # | ||
17 | # You should have received a copy of the GNU General Public License | ||
18 | # along with Email-assistant. If not, see | ||
19 | # <https://www.gnu.org/licenses/>. | ||
20 | |||
21 | import logging | ||
22 | |||
23 | class Plugin: | ||
24 | def __init__(self, assistant): | ||
25 | self.assistant = assistant | ||
26 | self.log = logging.getLogger('assistant.%s' % self.name) | ||
27 | |||
28 | def match(self, msg): | ||
29 | raise NotImplemented() | ||
30 | |||
31 | def get_events(self, msg): | ||
32 | raise NotImplemented() | ||