Bug 1328933

Summary: X-Bugzilla headers shouldn't be visible in HTML emails
Product: [Community] Bugzilla Reporter: Michal Sekletar <msekleta>
Component: Email NotificationsAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: huiwang, mtahir, qgong
Target Milestone: 4.4   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.4.12051.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-01 04:46:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
email displayed by gmail in Firefox
none
email message from bugzilla
none
Test_result_against_build_4.4.12051.1 none

Description Michal Sekletar 2016-04-20 15:57:01 UTC
Created attachment 1149122 [details]
email displayed by gmail in Firefox

Description of problem:
I've configured in "General Preferences" following,
  * Include X-Bugzilla- headers in BugMail body : On
  * Preferred email format : HTML

I started receiving HTML emails and X-Bugzilla headers are included in the message body, however they are visible. According to upstream commit, they should be hidden, i.e. CSS style used for the paragraph should set font size to 0pt. As this information is not really meant to be read by the end user rather used to provide possibility to effectively filter bugmail using Gmail.


Version-Release number of selected component (if applicable):
Red Hat Bugzilla 4.4

How reproducible:
always

Steps to Reproduce:
1. set Include X-Bugzilla- headers in BugMail body : On
2. set Preferred email format : HTML
3. open new email from bugzilla in Gmail web UI using Firefox / alternatively see screen-shot provided 

Actual results:
X-Bugzilla headers visible


Expected results:
X-Bugzilla headers present in message body but not displayed

Additional info:

Comment 1 Michal Sekletar 2016-04-20 15:57:42 UTC
Created attachment 1149123 [details]
email message from bugzilla

Comment 2 Michal Sekletar 2016-04-20 15:59:28 UTC
upstream commit implementing "Include X-Bugzilla- headers in BugMail body" feature.

https://git.mozilla.org/?p=webtools/bmo/bugzilla.git;a=commitdiff;h=9552ab9

Comment 3 Michal Sekletar 2016-04-27 10:38:45 UTC
Is there any ETA for the fix?

I also think that this bug should have a lot higher priority because if fixed it would solve a big pain point for many people which is effective filtering of bugzilla email in Gmail. This of course applies to both RH internal and community bugzilla users.

Comment 4 Rony Gong 🔥 2016-07-15 09:02:48 UTC
Created attachment 1180073 [details]
Test_result_against_build_4.4.12051.1

It still including the X-bugzilla-headers in the mailbody when:
1. set Include X-Bugzilla- headers in BugMail body : On
2. set Preferred email format : HTML

Please check the attachment.

And it will not including the X-bugzilla-headers in the mailbody and header for html file when:
1. set Include X-Bugzilla- headers in BugMail body : off
2. set Preferred email format : HTML

Comment 5 Jeff Fearn 🐞 2016-07-17 22:00:04 UTC
(In reply to Rony Gong from comment #4)
> Created attachment 1180073 [details]
> Test_result_against_build_4.4.12051.1
> 
> It still including the X-bugzilla-headers in the mailbody when:
> 1. set Include X-Bugzilla- headers in BugMail body : On
> 2. set Preferred email format : HTML
> 
> Please check the attachment.
> 
> And it will not including the X-bugzilla-headers in the mailbody and header
> for html file when:
> 1. set Include X-Bugzilla- headers in BugMail body : off
> 2. set Preferred email format : HTML

This bug isn't to remove them, it's to make them invisible, which is done by setting font size to zero as suggested by the OP.

Comment 6 Rony Gong 🔥 2016-07-18 01:54:56 UTC
@Jeff, thank you. It works well now after let mail send to a mail client.