| Line | |
|---|
| 1 | """ |
|---|
| 2 | interfaces for listening to repository changes |
|---|
| 3 | and configuration of hooks |
|---|
| 4 | """ |
|---|
| 5 | |
|---|
| 6 | from trac.core import Interface |
|---|
| 7 | |
|---|
| 8 | class 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.