top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can I attach documents in email from bugzilla

+1 vote
488 views

How can I change the template file for getting attachments that are attached from bugzilla to any person who are on the CC list for the bug.

posted Apr 2, 2014 by Naveena Garg

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

This is would not be so easy and I doubt that one should implement that only by a changed template, because you need properly MIME encoded data and such. Instead I would have a look at Bugzilla extensions, especially the hook mailer_before_send, because there you have objects which can be updated and changed easier.

Templates:
templateendefaultemail
http://www.bugzilla.org/docs/4.4/en/html/cust-templates.html

Extension:
http://www.bugzilla.org/docs/4.4/en/html/extensions.html
http://www.bugzilla.org/docs/4.4/en/html/api/Bugzilla/Hook.html#mailer_before_send
http://www.bugzilla.org/docs/4.4/en/html/api/Bugzilla/Extension.html#Template_Hooks

answer Apr 2, 2014 by Navneet
Similar Questions
0 votes

Is there a way to ban a email id from reporting a bug on a particular product. ?

0 votes

I have bugzilla 4.2.5 running on Ubuntu using postfix. Email from bugzilla is sent from bugzilla-daemon@myhost.mydomain.com. (The real name is altered). The email is sent through Exchange server. Up until recently everything worked perfectly. A few days back mail stopped being delivered. Mailq on bugzilla shows "(host exchange.mydomain.com[xxx.xxx.xxx.xxx] said: 452 4.3.1 Insufficient system resources (in reply to MAIL FROM command))".

Restart of the Transport service and even rebooting exchange didn't help. Mailq -q, postfix -f didn't help. I did figured out, however, that when mail gets to exchange as bugzilla-daemon@mydomain.com it is accepted.

Can somebody suggest what needs to be done either on bugzilla or on exchange in order to fix it?

0 votes

I'm the administrator of Bugzilla in Micron Catania (Italy) for Product Engineer Department and we have installed the 4.0 running on Windows Server 2008 R2. According to my customer requirements, I've the need to change two default fields from optional to required: "Orig. Est" (field name "estimated_time") and "Deadline" (field name "deadline" which type is Date/Time) respectively. As far as I understood I've to modify the templates: I guess that the involved one is "create.html.tmpl". Moreover, I suppose to add the required string into the "header.htmpl.tmpl" file but the real problem is how to manage the validation (I suppose) using a javascript (maybe inside the folder "js"). If so, unfortunately, I'm not able to do that ... otherwise I kindly ask if another choice is possible.

+2 votes

Does someone know how to setup the email_in.pl on a windows machine? I have only come across instructions for a Linux box which require you to use procmail. I haven't been able to find a procmail equivalent for windows.

Please suggest steps on could take to set this up on Windows.

...