Opened 16 years ago

Closed 15 years ago

#37 closed defect (fixed)

greedy matching in Subject line

Reported by: dmaziuk@… Owned by: bas
Priority: trivial Milestone:
Component: email2trac Version: 0.1
Keywords: Cc:


Current TICKET_RE greedy-matching (the default), so Subject like

#1?resolution=worksforme: Re: ia ia ia cthulhu f'tagn

will fail to update the ticket properly (ticketnr_fields will match to the colon after Re instead of the one after worksforme).

The fix is to use non-greedy qualifier: .*?: instead of .*:

Attachments (0)

Change History (4)

comment:1 Changed 16 years ago by bas

  • Status changed from new to assigned

Thanks for the patch. I will apply it to the trunk version

comment:2 Changed 16 years ago by dmaziuk@…

Keep in mind that I haven't tested it, nor gotten around to learning Python yet.

comment:3 Changed 15 years ago by bas

Thanks for the info. I will test it before i apply the patch

comment:4 Changed 15 years ago by anonymous

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

Is fixed in the new release and trunk version

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.