Tuesday 25 October 2016

Creating bug through E-mail on Bugzilla

Pre-requistes:

1) configure a mail box in linux to receive email for a particular id which opens bug against bugzilla

2) Install Procmail

3) Make sure email_in.pl is available in bugzilla to create email for incoming request

Procedure:

1) install procmail and MTA of your choice(sendmail (or) Postfix)

2) Create a user and added to apache group

useradd -m -G www-data bug-mail



3) Create /home/bug-mail/.procmail as follows

$cat /home/bug-mail/.procmail
LOGFILE=/home/bug-mail/procmail.log
:0:
|/path/to/bugzilla/email_in.pl -vvv
4)steps to create a new bug

The script expects to read an email with the following format:
 
 @product ProductName 
 @component ComponentName 
 @version 1.0 
 
Note: All the necessary fields which are mandatory in bugzilla should be included in this mail 
format
 
for. eg. @op_sys, @platform , @summary etc..
 
This is a bug description. It will be entered into the bug exactly as   written here. 
 
It can be multiple paragraphs. 
 
--    This is a signature line, and will be removed automatically, 
It will not   be included in the bug description.

Send mail and the bug will be created in bugzilla.



No comments:

Post a Comment