[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Strange Bug in Bugzilla?



Hello,

this is rather strange a problem so instead of immediately filing a bug
I ask if others have had similar experience and if this is a bug in the
upstream or in the Debian package. I also feel this is pretty strange as
it seems to be a serious problem and yet I found only two articles with
Google:

	1) http://www.geocrawler.com/archives/3/142/2001/6/50/601671
	2) http://www.geocrawler.com/archives/3/142/2001/8/50/650639

they are not the same problem but they might be related if one would 
RTFS enough.

I have this problem in two systems - both at work and at my own domain.
There's no such bug in bugs.debian.org. So is it just me? Does the
Univers really hate me this much?

Description: 

Debian testing with a self compiled 2.4.17 kernel. 

after apt-get install bugzilla everything works find, but later, after 
modifiying parameters <URL: http://127.0.0.1/cgi-bin/bugzilla/editparam
> bugzilla does not succeed to send email with the exception of asking 
a forgotten password.

If MTA is qmail the mailing silently fails. If sendmail is used one gets 
a string "No recipient addresses found in header" in the page which says
that the bug report has been added and mailed. This string comes from 
/usr/lib/sendmail:

$ strings /usr/lib/sendmail | egrep -c 'No recipient addresses found in
header'
1

>From the mail log /var/log/mail/mail.info I noticed that there was no 
to-field at all.

I was able to locate the problem to the file
/usr/share/bugzilla/lib/processmail and I changed the code so that
before sending the email it would save the $msg variable to a file and 
I found out that there's very odd lack of new lines. The header had just
From-header - everyting else was after it on one single line. 

I've kludged around it but the end of the mail still looks like this:

<clip>
bar
22
 
 22    ------- You are receiving this mail because: -------
 You reported the bug, or are watching the reporter.
</clip>

The very horrible kludge, which probably breaks some other mailing (next
I'll add some if's so that this replace is not done always):

<clip>
	# this is added before opening a pipe to sendmail
        $msg =~ s/To:/\nTo:/;
        $msg =~ s/Subject:/\nSubject:/;
	$msg =~ s/X-Bugzilla-Reason: (\w*)/\nX-Bugzilla-Reason: $1\n\n/;
</clip>

The mailing of a forgotten password seems to use some other code for
mailing and it still works.

-- 
#!/usr/bin/perl -w --  Ari Makela <hauva@arska.org> http://arska.org/hauva/ #



Reply to: