Modify

Opened 6 years ago

Closed 6 years ago

#346 closed enhancement (fixed)

too eager subject parsing in ticket update

Reported by: thomas.moschny@… Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 2.8.4
Keywords: Cc:

Description

For this example subject

[hic] #1529?owner=bas,priority=medium: Re: LRZ

the fields part is parsed as:

owner=bas,priority=medium: Re

so in the end, the ticket field priority would be set to

medium: Re

This can be easily fixed:

  • email2trac.py.in

     
    18591859        #
    18601860        ticket_regex = r'''
    18611861            (?P<new_fields>[#][?].*)
    1862             |(?P<reply>(?P<id>[#][\d]+)(?P<fields>\?.*)?:)
     1862            |(?P<reply>(?P<id>[#][\d]+)(?P<fields>\?[^:]*)?:)
    18631863            '''
    18641864
    18651865        ## Check if  FullBlogPlugin is installed

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by bas

  • Status changed from new to assigned
  • Type changed from defect to enhancement

Thanks I will apply it.

comment:2 Changed 6 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

In 657:

ticket updates by subject parsing is too eager, closes #346

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.