We run Bugzilla 3.4.4 and would like to try out this feature.
I would much appreciate any help on how to do this?
And any experience with this, bad or good.
Thanks!
Best regards,
Marina
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
email_in.pl is the file that does the actual input, so if you run 'perldoc -F email_in.pl', you'll get most of the information you need. The script is easy to modify if you're familiar with perl. The hardest part of the set up is getting email to your system. I looked on the wiki for some instructions, but it looks a little thin: https://wiki.mozilla.org/Bugzilla:PostfixMTA. These are the steps I followed on linux:
Create a user and home directory for the mail
# useradd -d /var/www/bugmail -m -g apache -p bG8$sdyF -s /bin/bash bugzilla-daemon
# mkdir /var/www/bugmail/Mail
# chown -R bugzilla-daemon:apache /var/www/bugmail/Mail
Create the .procmailrc file in /var/www/bugmail/ and modify it for the new $BUGZILLA_HOME and email_in.pl script:
$ more .procmailrc
#:0 fhw
#| formail -I "From " -a "From "
BUGZILLA_HOME=/var/www/localhost/htdocs/bugzilla
:0
#* ^Subject: .*\[Bug .*\]
#* ^Subject: .*\[[Bb]ug .*\]
RESULT=|(cd $BUGZILLA_HOME && ./email_in.pl -vvv > $HOME/bug_email.out 2>&1)
# Feed mail to stdin of bug_email.pl
#:0 Ec
#* !^Subject: .*[Bug .*]
#RESULT=|(cd $BUGZILLA_HOME && ./bug_email.pl > /tmp/bug_email 2>&1)
# write result to a logfile
:0 c
|echo `date '+%d.%m.%y %H:%M: '` $RESULT >> $HOME/bug_email.log
:0 c
|echo "----------------------------------" >> $HOME/bug_email.log
:0 c
$HOME/bug_email.log
# Move mail to the inbox
:0
$HOME/Mail/INBOX
Install procmail (gentoo example), and configure it:
# emerge procmail
# vi /etc/postfix/main.cf, add mydestination=<hostname>.<domain>, and enable procmail command (with EXTENSION)
# vi /etc/postfix/master.cf
# vi /etc/mail/aliases and added my email for root: (middle of file)
# newaliases
# /etc/init.d/postfix restart
I hope this helps, but it isn't meant to be the steps you'd need to complete on your own system, only an example. If you're not familiar with setting up mail on a server, it's better to grab someone around you that is. I'd be surprised if you find someone who knows something like procmail (that's why I included the example script). The older versions of Bugzilla had two scripts for incoming email, one for adding comments to existing bugs and one for adding new bugs. Those older versions (I think 2.18.3 was one of them) had more information about the setup and the example procmail script, so if you're having trouble, download the old tarball and check it out.
Wow, would you put those on the Wiki somewhere? It would be great to
have that documented.
-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.