source: mailtotracplugin/0.12/plugin/mail2trac/interface.py

Last change on this file was 16530, checked in by Ryan J Ollos, 6 years ago

Fix indentation

File size: 536 bytes
Line 
1"""
2interfaces for listening to repository changes
3and configuration of hooks
4"""
5
6from trac.core import Interface
7
8class IEmailHandler(Interface):
9
10    def match(message):
11        """
12        whether this handler can be used on this message
13        """
14
15    def invoke(message, warnings):
16        """
17        what to do on receiving an email;
18        returns the message if it is availble to other
19        IEmailHandler plugins or None
20        if the message is consumed
21        warnings is a list of warnings to append to
22        """
Note: See TracBrowser for help on using the repository browser.