summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d5d1fe3)
raw | patch | inline | side by side (parent: d5d1fe3)
author | schlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 10 Jan 2011 16:04:09 +0000 (16:04 +0000) | ||
committer | schlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 10 Jan 2011 16:04:09 +0000 (16:04 +0000) |
override
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4578 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4578 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/mailgw.py | patch | blob | history |
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index b67c5c9bd030d03514a1aa907bbae3752d767ff6..cd068899b2c622f35e8e2ab0f144c20b602a65ae 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
class MailGW:
+ # To override the message parsing, derive your own class from
+ # parsedMessage and assign to parsed_message_class in a derived
+ # class of MailGW
+ parsed_message_class = parsedMessage
+
def __init__(self, instance, arguments=()):
self.instance = instance
self.arguments = arguments
The following code expects an opened database and a try/finally
that closes the database.
'''
- parsed_message = parsedMessage(self, message)
+ parsed_message = self.parsed_message_class(self, message)
# Filter out messages to ignore
parsed_message.handle_ignore()