Mercurial > p > roundup > code
comparison roundup/configuration.py @ 3831:14ec78618bd5
Allow customisation of regular expressions used in email parsing...
...thanks Bruno Damour
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 26 Mar 2007 04:04:42 +0000 |
| parents | 771248aa8302 |
| children | b66615f3007b |
comparison
equal
deleted
inserted
replaced
| 3830:a48c514c465f | 3831:14ec78618bd5 |
|---|---|
| 1 # Roundup Issue Tracker configuration support | 1 # Roundup Issue Tracker configuration support |
| 2 # | 2 # |
| 3 # $Id: configuration.py,v 1.40 2007-02-19 20:27:53 a1s Exp $ | 3 # $Id: configuration.py,v 1.41 2007-03-26 04:04:42 richard Exp $ |
| 4 # | 4 # |
| 5 __docformat__ = "restructuredtext" | 5 __docformat__ = "restructuredtext" |
| 6 | 6 |
| 7 import getopt | 7 import getopt |
| 8 import imp | 8 import imp |
| 651 "designator [prefix]. \"never\" turns off matching.\n" | 651 "designator [prefix]. \"never\" turns off matching.\n" |
| 652 "\"creation + interval\" or \"activity + interval\"\n" | 652 "\"creation + interval\" or \"activity + interval\"\n" |
| 653 "will match an issue for the interval after the issue's\n" | 653 "will match an issue for the interval after the issue's\n" |
| 654 "creation or last activity. The interval is a standard\n" | 654 "creation or last activity. The interval is a standard\n" |
| 655 "Roundup interval."), | 655 "Roundup interval."), |
| 656 (Option, "refwd_re", "\s*\W?\s*(fw|fwd|re|aw|sv|ang)\W\s*", | |
| 657 "Regular expression matching a single reply or forward\n" | |
| 658 "prefix prepended by the mailer. This is explicitly\n" | |
| 659 "stripped from the subject during parsing."), | |
| 660 (Option, "origmsg_re", "^[>|\s]*-----\s?Original Message\s?-----$", | |
| 661 "Regular expression matching start of an original message\n" | |
| 662 "if quoted the in body."), | |
| 663 (Option, "sign_re", "^[>|\s]*-- ?$", | |
| 664 "Regular expression matching the start of a signature\n" | |
| 665 "in the message body."), | |
| 666 (Option, "eol_re", r"[\r\n]+", | |
| 667 "Regular expression matching end of line."), | |
| 668 (Option, "blankline_re", r"[\r\n]+\s*[\r\n]+", | |
| 669 "Regular expression matching a blank line."), | |
| 656 ), "Roundup Mail Gateway options"), | 670 ), "Roundup Mail Gateway options"), |
| 657 ("nosy", ( | 671 ("nosy", ( |
| 658 (RunDetectorOption, "messages_to_author", "no", | 672 (RunDetectorOption, "messages_to_author", "no", |
| 659 "Send nosy messages to the author of the message.", | 673 "Send nosy messages to the author of the message.", |
| 660 ["MESSAGES_TO_AUTHOR"]), | 674 ["MESSAGES_TO_AUTHOR"]), |
