Page 2 of 4
Posted: 19 Jul 2007, 08:07
by DaVinci
i really appereciate ur help..
the error has now disappeared and i get a blankpage when i go to
http://my.domain.com/bug_report_mail.php
i have tried all the valid methods in
# The auth method used for POP3
# Valid methods are: 'DIGEST-MD5','CRAM-MD5','LOGIN','PLAIN','APOP','USER'
$g_mail_auth_method = 'USER';
i have a server from someone called
http://www.web10.nu
and this is ofcourse a test-stage-server..
and eventhough i get the messages in inbox..the project doesnot get updated..
Posted: 26 Jul 2007, 13:27
by DaVinci
im this close to pull all my hair off..
can anyone please help me srt this out!
i dont get any mail notifications at all :(
i was getting then before in my mailbox butthen i changed the mail address from
hm@abc.com to helpdesk@abc.com..thats when i didnt get any notificationsa at all :(
and the sadest part is that the mail does not open nay ticket..
and http://my_domain.com/bug_mail_report.php shows an empty page
Posted: 27 Jul 2007, 05:37
by jboulay
Hi Davinci,
You're really close to make the mail reporter working.
But please, don't mix the mail reporter and mail notification.
DaVinci wrote:
i dont get any mail notifications at all

i was getting then before in my mailbox butthen i changed the mail address from
hm@abc.com to helpdesk@abc.com..thats when i didnt get any notificationsa at all
Why did you change this email adress if the notification was working ?
Which parameter did you change on which page?
DaVinci wrote:
and the sadest part is that the mail does not open nay ticket..
and http://my_domain.com/bug_mail_report.php shows an empty page
Please try to put the following parameters in the config_inc.php file ?
Code: Select all
######################
# Mail Reporting
######################
# --- mail reporting settings -----
# This tells Mantis to report all the Mail with only one account
$g_mail_use_reporter = ON;
# The account's name for mail reporting
# Also used for fallback if a user is not found in database
# Put your reporter user here
$g_mail_reporter = 'mail';
# Signup new users automatically (possible security risk!)
# Default is OFF, ignored if mail_use_reporter is ON
$g_mail_auto_signup = OFF;
# How many mails should be fetched at the same time
# If big mails with attachments should be received, specify only one
$g_mail_fetch_max = 1;
# Write complete mail into the "Additional Information"
$g_mail_additional = ON;
# Write sender of the message into the bug report
$g_mail_save_from = OFF;
# Parse MIME mails (may require a lot of memory)
$g_mail_parse_mime = ON;
# Parse HTML mails
$g_mail_parse_html = ON;
# HTML Parser Command
# It should print the formatted text to STDOUT
# For example: "/usr/bin/w3m -T text/html -dump"
$g_mail_html_parser = ON;
# directory for saving temporary mail content
#Configure here the path for your temporary directory
$g_mail_tmp_directory = 'C:/TEMP';
# Delete incoming mail from POP3 server
$g_mail_delete = ON;
# Debug mode
$g_mail_debug = ON;
# Save mail contents to this directory if debug mode is ON
$g_mail_directory = 'C:/TEMP/mantis';
# Looks for priority header field
$g_mail_use_bug_priority = ON;
# Default priority for mail reported bugs
$g_mail_bug_priority_default = NORMAL;
It should work ...
Posted: 27 Jul 2007, 07:20
by DaVinci
i have changed the mail account because
hm@abc.com is a personal account and
helpdesk@abc.com is something i want to use...
when i wrote mail notification i ment that i got a mail with a 'bug' in my mai but the mail did not update mantis..
now i have added the parametes in my config_inc.php file (not in config_default_inc.php) but im still getting a blank page in ../bug_report_mail.php and still no bug mail when someone sends mail to
helpdesk@abc.com
Posted: 27 Jul 2007, 07:39
by DaVinci
i was wondering if the code below is the reason that that mantis didnt get up dated:
Code: Select all
# Default bug category for mail reported bugs (Defaults to "default_bug_category")
# Because in Mantis 1.1.0a3 a category is required, we need a default category for issues reported by email.
# Make sure the category exists and it has been configured correctly
$g_mail_default_bug_category = '%default_bug_category%';
do i have to change anything there?
i have made a category that is called
Miscellaneous Cases with a space between
miscellaneous and
cases
where do i define the
'%default_bug_category% and do i need to define it like:
Code: Select all
$g_mail_default_bug_category = '%Miscellaneous Cases%';
or in another way
Posted: 27 Jul 2007, 08:19
by jboulay
Try this
Code: Select all
$g_mail_default_bug_category = 'Miscellaneous Cases';
Posted: 27 Jul 2007, 09:04
by DaVinci
no man...
still not working..
are u sure that i dont have to do changes elsewhere?
what about this line:
[code]
# The account's name for mail reporting
# Also used for fallback if a user is not found in database
$g_mail_reporter = 'mail';
[/code]
the account name that has email
helpdesk@abc.com has username helpdesk..
i have changed:
$g_mail_reporter = 'mail';
to
$g_mail_reporter = 'helpdesk';
still not working :(
Posted: 27 Jul 2007, 09:22
by jboulay
If you take a look at the directory configured with the variable
$g_mail_tmp_directory
Can you find some temporary file in this directory ?
Posted: 27 Jul 2007, 09:48
by DaVinci
the directory
[code]$g_mail_directory = '/tmp/mantis';[/code]
is empty...
may bei have to give full path..
is it usr/var/<domain_name>/tmp/mantis?
Posted: 20 Sep 2007, 07:47
by DaVinci
thanks for all your help the last time..
now i am having another problem..
i do not wish that a person who reports a bug can be a member of mantis...is there anyway aroud this problem?
i have defined:
# Signup new users automatically (possible security risk!)
# Default is OFF, ignored if mail_use_reporter is ON
$g_mail_auto_signup = OFF;
this results in that the name of the account (helpdesk) which i have created to report all the bugs (
hm@abc.com) comes up in the [b]Reported by[/b] box (se the attached picture).
[img]
http://aftab.watapage.com/mantis_report_help.JPG[/img]
and which again results in that when i reply to the bug, the reply goes to
hm@abc.com where it is collect by
http://my.domain.com/bug_report_mail.php and thus the reporter does not get any mail.
so what i want to do is that:
* the name of the reporter comes up in [b]Reported by[/b] so that when ever someone responds to the bug the email goes to the reporter and not to
hm@abc.com
* the reporter does not get signed up atomatic
[/img]
Posted: 20 Sep 2007, 08:09
by DaVinci
another problem that im having is that our postserver abcserv01.abc.com does not respont on port 110 which i am prettry sure is necessary for POP3..
is there a way to work around this problem too?
Posted: 20 Sep 2007, 13:18
by jboulay
DaVinci wrote:another problem that im having is that our postserver abcserv01.abc.com does not respont on port 110 which i am prettry sure is necessary for POP3..
is there a way to work around this problem too?
There is a work around in file /core/mail_api.php:
function mail_process_all_mails around line 228:
Code: Select all
$t_pop3->connect($t_pop3_host, 110);
Try to modify 110 by setting your smtp port number there
Posted: 25 Sep 2007, 10:02
by DaVinci
thanks for all the help
i have solved 90% of issues with mantis mail hack..
now i want a simple php script..
since we have to go to
http://my.domain.com/bug_report_mail.php everytime we need to update the tickets..i was wondering if there is a possibility to add an script in:
http://my.domain.com/my_view_page.php
that actually sends the user to
http://my.domain.com/bug_report_mail.php every 5 minute and then back to
http://my.domain.com/my_view_page.php so that
http://my.domain.com/my_view_page.php gets updated if someone has posted any new ticket
Posted: 25 Sep 2007, 13:25
by jboulay
DaVinci wrote:thanks for all the help
i have solved 90% of issues with mantis mail hack..
now i want a simple php script..
You're welcome !
I use a batch file in a schedule task for retrieving the mail automatically:
Copy the following code in a file called bug_report_mail.bat
Code: Select all
echo off
rem Mantis - a php based bugtracking system
rem
rem Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
rem Copyright (C) 2002 - 2004 Mantis Team - mantisbt-dev@lists.sourceforge.net
rem This program is distributed under the terms and conditions of the GPL
rem See the README and LICENSE files for details
rem ---------------------------------------------------------------------------
rem bug_report_mail.bat 2007/04/19 22:32:05 jboulay
rem ---------------------------------------------------------------------------
rem ---------------------------------------------------------------------------
rem This script is running the bug_report_mail php function
rem Use a cron tab for scanning POP3 email adress every time it's needed
rem ---------------------------------------------------------------------------
rem provide the path to php extension php_gd2.dll
set gd2_extension_path="C:\Program Files\EasyPHP1-8\php\extensions"
rem provide the path to php engine
set php_engine_path="C:\Program Files\EasyPHP1-8\php"
rem provide the path to mantis installation
set mantis_install_path="C:\Program Files\EasyPHP1-8\www\mantis"
set path=%path%;%gd2_extension_path%
cd %mantis_install_path%
rem execute the mail reporting function
%php_engine_path%\php.exe %mantis_install_path%\bug_report_mail.php
Don't forget :
- to provide the path corresponding to your installation path
- to execute this script on your server only !!
- and create a new Windows schedule task
That's it !!
Posted: 25 Sep 2007, 13:46
by DaVinci
thank you for the patch..
however i am wondering about:
[quote]to provide the path corresponding to your installation path[/quote]
I have Mantis installed in: C:\wamp\www\mantis
so:
[quote]rem provide the path to mantis installation
set mantis_install_path="C:\wamp\www\mantis" [/quote]
what do you mean by?
[quote]- to execute this script on your server only !! [/quote]
what task are you talking about here and how do i define it?
[quote]- and create a new Windows schedule task [/quote]