Opened 2 years ago

Last modified 2 years ago

#9065 assigned defect

email2trac does not include description when reporter is notified

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

Description

With the new email2trac updated in the past week new tickets submitted via ChimeraX Report a Bug result in an email to the reporter (if the provided an email address) that does not include the description field. The description is the main information about the bug and used to be and should be included in this email to the reporter. The same problem occurs if the ticket is created by emailing to chimerax-bugs@….

If a ticket is created from the ChimeraX Trac web site with New Ticket then the email to the reporter does include the description. So it seems that email2trac is somehow causing the bad email to the reporter.

Change History (6)

comment:1 by Tom Goddard, 2 years ago

Cc: Greg Couch added

This might be caused by the strip_quotes email2trac config option.

strip_quotes	0	OPTIONAL, if set strip quotes from the email, useful when replying to tickets (see also email_quote), default: 0

from the email2trac configuration option documentation

https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracConfiguration

comment:2 by Tom Goddard, 2 years ago

Actually that is probably not it because I tried sending a bug report to chimerax-bugs@… and that had no quotes. The ChimeraX Report a Bug tool adds and to the description, quoting it as a code block.

comment:3 by Tom Goddard, 2 years ago

Here is what the email2trac config file looks like (on plato /usr/local/etc/email2trac.conf)

[DEFAULT]
# in order given by https://oss.trac.surfsara.nl/email2trac/wiki/Email2tracConfiguration                                   
project: /usr/local/share/Trac/projects/chimera/
black_list: MAILER-DAEMON@,postmaster
debug: 0
drop_alternative_html_version: 1
email_triggers_workflow: 0
html2text_cmd: /bin/html2text --unicode-snob
only_strip_on_update: 1
parentdir: /usr/local/share/Trac/projects
reply_all : 0
spam_level: 5
strip_quotes: 1
strip_signature: 1
ticket_update: 1
ticket_update_by_subject: 1
tmpdir: /var/tmp
umask: 022
verbatim_format: 1

[chimera]
#project: /usr/local/share/Trac/projects/chimera/                                                                          
spam_level: 1
log_type: none

[ChimeraX]
project: /usr/local/share/Trac/projects/ChimeraX/
spam_level: 1
log_type: file
log_level: WARN
log_file: /usr/local/share/Trac/projects/ChimeraX/log/email2trac.log

comment:4 by Tom Goddard, 2 years ago

The "strip_quote" and "email_quote" configuration options suggest that lines starting with "> " will be stripped. We don't want that since the Log in the bug reports has all commands starting with "> ".

comment:5 by Tom Goddard, 2 years ago

Ticket #9067 shows that email2trac in fact did not strip "> " lines from the ticket description. Seems like an email2trac bug but not adversely effecting us.

comment:6 by Tom Goddard, 2 years ago

The email to the reporter must come from Trac. And the Trac ticket has the correct description. So it seems like email2trac does something that convinces Trac not to include the description. For instance if a ticket update is done it does not include the description. Maybe email2trac somehow convinces Trac that the new ticket is really an update so it should not include the description. This also would explain bug #9066 where a new ticket made by email2trac does not cause Trac to notify Eric by email even though he has configured Trac to notify him of all new tickets.

Note: See TracTickets for help on using tickets.