Mantis 使用信件回報問題的設定

主要是使用 Mantis 的 EmailReporting plugin 模組來達成..

  • 設定環境 :
    • Mantis : 1.2.3
    • EmailReporting : 0.8.1
  1. 下載 EmailReporting plugin 解開到 mantis/plugins 內
  2. 使用 Mantis 的管理介面安裝
  3. 在 /etc/crontab 內增加每五分鐘讀取信箱功能
    :
    # Mantis EMail Report
    */5 * * * * root php /var/www/html/mantis/plugins/EmailReporting/scripts/bug_report_mail.php
    :

  1. 因為 mbstring 似乎不支援 gb2312 所以無法轉換 gb2312 簡體中文編碼信件
  2. mbstring 內的 Big5 是 Big-5 所以信件內出現 big5 在 parser.php 內要小改一下

  • pear 需要安裝的套件如下:
    • Mail_mimeDecode
    • Net_POP3
    • Net_IMAP
    • Net_Socket
[root@server2 bin]# ./pear list
Installed packages, channel pear.php.net:
=========================================
Package           Version State
Archive_Tar       1.3.7   stable
Config            1.10.11 stable
Console_Getopt    1.2.3   stable
HTML_Template_IT  1.3.0   stable
MDB2              2.4.1   stable
MIME_Type         1.2.0   stable
PEAR              1.9.1   stable
PEAR_Frontend_Web 0.7.4   beta
Structures_Graph  1.0.3   stable
 
[root@server2 bin]# ./pear install Mail_mimeDecode Net_POP3 Net_IMAP Net_Socket
[root@server2 bin]# ./pear list
Installed packages, channel pear.php.net:
=========================================
Package           Version State
Archive_Tar       1.3.7   stable
Config            1.10.11 stable
Console_Getopt    1.2.3   stable
HTML_Template_IT  1.3.0   stable
MDB2              2.4.1   stable
MIME_Type         1.2.0   stable
Mail_Mime         1.8.0   stable
Mail_mimeDecode   1.5.4   stable
Net_IMAP          1.1.0   stable
Net_POP3          1.3.7   stable
Net_Socket        1.0.9   stable
PEAR              1.9.1   stable
PEAR_Frontend_Web 0.7.4   beta
Structures_Graph  1.0.3   stable

參考網址

 
回到頁頂
tech/mantismailreport.txt (1045) · 上一次變更: 2010-10-11 16:15 由 jonathan
 
 
CC Attribution-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0