Newlines in Email notification

Calvert, Douglas dcalvert at AllianceBankNA.com
Thu Oct 20 21:19:12 UTC 2005


Hello,
 I am not sure if this is a bug in bugzilla or some screwy interaction
between bugzilla and outlook. I also checked the list of bugs and did
not see anything obvious. Why is there not a new line between the
comment#/reporter/date and the first line of the comment the comment
start? The same thing also happens with the %reasonsbody%. The
reasonsbody starts like this in bugmail:

    my $reasonsbody = "------- You are receiving this mail because:
-------\n";

The \n is there, so I do not understand why there is no newline in the
actual email. Is something wrong on my end or is this a bug in bugzilla?
I have included a copy of the email, the changed email parameter and the
way the comment appears on the bug page. Thanks for your help...


#######Email Message#######
http://bugzilla/show_bug.cgi?id=133





------- Comment #2 from dcalvert at alliancebankna.com  2005-10-20 17:07
------- this is a comment that is wrapped automagically in the bugzilla
text window, this line will end with a hard return now.
This shorter line that will be followed by a empty line

Now we will have another comment that is wrapped automagically in the
bugzilla text window, this line will end with a hard return now.
And another comment that is wrapped automagically in the bugzilla text
window, this line will end with a hard return now.


--
Configure bugmail: http://bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: ------- You reported the
bug, or are watching the reporter.
You are the assignee for the bug, or are watching the assignee.


############change email in defparams#########
From: bugzilla-daemon
To: %to%
Subject: [Bug %bugid%] %neworchanged%%summary%
%threadingmarker%
X-Bugzilla-Reason: %reasonsheader%
X-Bugzilla-Product: %product%
X-Bugzilla-Component: %component%

%urlbase%show_bug.cgi?id=%bugid%

%diffs%

--%space%
Configure bugmail: %urlbase%userprefs.cgi?tab=email
%reasonsbody%


#######Comment as printed when viewing ticket-------
this is a comment that is wrapped automagically in the bugzilla text
window,
this line will end with a hard return now.
This shorter line that will be followed by a empty line

Now we will have another comment that is wrapped automagically in the
bugzilla
text window, this line will end with a hard return now.
And another comment that is wrapped automagically in the bugzilla text
window,
this line will end with a hard return now.




More information about the developers mailing list