Opened 2 days ago

#19721 assigned defect

email2trac bug

Reported by: Eric Pettersen Owned by: Greg Couch
Priority: high Milestone: 1.12
Component: Infrastructure Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The unique_attachment_names() function in email2trac is looking for the variable "filename" to be the string "None" when in fact it is the Python value None. I think this is happening because of a signature block in Ute Ermel's replies. It affected ticket #19718 multiple times.

The original message was received at Mon, 12 Jan 2026 16:27:05 -0800
from cgl-primary.cgl.ucsf.edu [169.230.27.17]

----- The following addresses had permanent fatal errors -----

"|run_email2trac --project=ChimeraX"

(reason: 1)
(expanded from: <chimerax-bugs@…>)

----- Transcript of session follows -----

Message delivered to mailing list <chimerax-bugs@…>
Traceback (most recent call last):

File "/usr/local/bin/email2trac", line 2936, in <module>

tktparser.parse(sys.stdin)

File "/usr/local/bin/email2trac", line 1874, in parse

self.parse_subject_field(m, subject, spam_msg)

File "/usr/local/bin/email2trac", line 1970, in parse_subject_field

elif not self.ticket_update(m, result.group('reply')[:-1], spam_msg):

File "/usr/local/bin/email2trac", line 1093, in ticket_update

message_parts = self.unique_attachment_names(message_parts)

File "/usr/local/bin/email2trac", line 2355, in unique_attachment_names

filename = filename.replace('
', '_')

AttributeError: 'NoneType' object has no attribute 'replace'

Change History (0)

Note: See TracTickets for help on using tickets.