Custom Query (332 matches)
Results (268 - 270 of 332)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#294 | fixed | emailtotrac | bas | m.frigui@… |
Description |
Hello I have a one question there is a possibility to create a ticket with the command line emailtotrac thank you for your answer your sincerely Mr frigui |
|||
#295 | fixed | Patch to get email2trac to work correctly with the Agilo plugin | bas | anonymous |
Description |
The Agilo plugin breaks email2trac because it redefines Ticket. The following patch is a quick hack to get it working again. --- email2trac.orig 2012-05-04 17:31:44.959978983 -0400 +++ email2trac 2012-05-04 17:32:03.960302778 -0400 @@ -1187,6 +1187,10 @@ self.logger.debug('function new_ticket') tkt = Ticket(self.env) + from agilo.utils.config import AgiloConfig + from agilo.ticket.model import AgiloTicket + if AgiloConfig(self.env).is_agilo_enabled: + tkt = AgiloTicket(self.env) self.set_reply_fields(tkt, msg) |
|||
#296 | fixed | A small patch that adds a configurable strip_signature_regex | bas | steverweber@… |
Description |
Find attached... A small patch that adds a configurable strip_signature_regex We have been using email2trac for some time and been maintaining a private copy with a small change.. I feel it would be best if it was merged into your version of the.. email2trac.py.in The attached file is in .py format and differs a little because I just need the simple script.. Anyways it allows email2trac.ini to have a.. strip_signature_regex = -----Original Message-----$|-- $|--$ it adds def setup_parameters(self): if self.parameters.umask: os.umask(self.parameters.umask) ---------- if not self.parameters.strip_signature_regex: self.parameters.strip_signature_regex = '^-----Original Message-----$|^-- $|^--$' ---------- and def strip_signature(self, text): """ Strip signature from message, inspired by Mailman software """ self.logger.debug('function strip_signature') body = [] for line in text.splitlines(): ---------- if re.match(self.parameters.strip_signature_regex, line): ---------- break body.append(line) please merge something along those lines into the trunk/master.. I probably should have compiled the regex instead of using it like i did wasting cpu... but you should get the idea.. Thanks |