Report a bug via email

General discussion of Mantis.

Moderators: Developer, Contributor

jboulay
Posts: 14
Joined: 16 Jul 2007, 15:49

Post by jboulay »

to provide the path corresponding to your installation path
I have Mantis installed in: C:\wamp\www\mantis
so:
rem provide the path to mantis installation
set mantis_install_path="C:\wamp\www\mantis"
Ok for that...
what do you mean by?
- to execute this script on your server only !!
I mean that the batch file must be run on the server where you installed Apache/Php/MySql !
what task are you talking about here and how do i define it?
- and create a new Windows schedule task
I'm talking about the Windows Scheduled Task ! Are you running a Windows Operating System ?
If yes, in the menu Start/Accessories/System Tools/Schedule Task,
you can define a new schedule task that will run the batch file every 5 minutes.
But first !! Try to run your batch file in order to be sure it works as you want ...
DaVinci
Posts: 95
Joined: 13 Apr 2007, 07:39

Post by DaVinci »

[quote]I'm talking about the Windows Scheduled Task ! Are you running a Windows Operating System ?
If yes, in the menu Start/Accessories/System Tools/Schedule Task,
you can define a new schedule task that will run the batch file every 5 minutes.
But first !! Try to run your batch file in order to be sure it works as you want [/quote]

so you mean that i should schedual: bug_report_mail.php to run every five minutes in Windows tast scheduler?

im running mantis on a VPS machine and it has Windows 2003 installed..
jboulay
Posts: 14
Joined: 16 Jul 2007, 15:49

Post by jboulay »

DaVinci wrote: so you mean that i should schedual: bug_report_mail.php to run every five minutes in Windows tast scheduler?
That's what you want to do, isn't it ?
DaVinci wrote: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
By the batch file, I give you another way to do what you wanted !!
-> automatically create the new ticket sent to the mail box, without connecting to the bug_report_mail.php page !

With this batch file, the bug_report_mail.php script will be directly executed by the php engine installed on your server.

All you have to do is :
Create a new schedule task that execute the batch file !![/quote]
Banek
Posts: 1
Joined: 09 Oct 2007, 13:11

Post by Banek »

Related to the http://www.mantisbt.org/bugs/view.php?id=4286 indy's note 0011287 this patch has abitity to send confirmation about task creation to the reporter.

I've turned on auto_signup, but configrmation doesnt sending, even "reporter" field in issue has "Mail" value instead of reporter email or name.

Has anybody confirmation works with this patch?
DaVinci
Posts: 95
Joined: 13 Apr 2007, 07:39

Post by DaVinci »

i have nearly solved this myth..
all i need now is script or way to unactivate all e-mail warnings for hm@abc.com
hm@abc.com is the account that i use to send all the email to and then bug_report_mail.php collects all e-mails from hm@abc.com
now, if i delete the mail then hm@abc.com gets a notification which then caues bug_report_mail.php to malfunction as it does not recognize
[b][Test 0000696]: Test Case[/b] which is the subject of mail as a ticket subject...
can nayone give a workaround this problem?
nawak
Posts: 2
Joined: 20 Nov 2007, 07:59

Re: Report a bug via email

Post by nawak »

hi everybody,
I have recently installed the patch for mantis 1.05 about reporting via mail and I have few questions :
1) What does exactly the html parser do and more specifically "/usr/bin/w3m -T text/html -dump" ?
2) If I haven't install w3m, what can I put instead of this ?
3) Does someone know the exhaustive list of features provided by this patch ?

that's all ! ;-)
did1979
Posts: 2
Joined: 22 Nov 2007, 15:56

Re: Report a bug via email

Post by did1979 »

Hi,
I ahve a 1.1.0rc2 version and I have downloaded the zip files to install the feature.

I've followed all your discussion but I have always the current problem :

Just after the call function mail_process_all_mails I become :
error:mail
[pear_error: message="Generic login error" code=1 mode=return level=notice prefix="" info=""]


mail is my user with the option in config.inc.

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
	$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"
	# NOTE - doesn't function because the variable doesn't exist in the function where it is used. So just leave OFF
	$g_mail_additional	= OFF;

	# 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	= OFF;

	# Parse HTML mails
	$g_mail_parse_html	= OFF;

	# HTML Parser Command
	# It should print the formatted text to STDOUT
	# For example: "/usr/bin/w3m -T text/html -dump"
	$g_mail_html_parser	= OFF;

	# directory for saving temporary mail content
	$g_mail_tmp_directory	= 'C:/wamp/www/mantis_dev/tmp';

	# Delete incoming mail from POP3 server
	$g_mail_delete		= OFF;

	# Signup new users automatically (possible security risk!)
	# Default is OFF, ignored if mail_use_reporter is ON
	$g_mail_debug		= ON;

	# Save mail contents to this directory if debug mode is ON
	$g_mail_directory	= 'C:/wamp/www/mantis_dev/tmp/mantis';

	# The auth method used for POP3
	# Valid methods are: 'DIGEST-MD5','CRAM-MD5','LOGIN','PLAIN','APOP','USER'
	$g_mail_auth_method	= '';
  //$g_mail_auth_method	= 'USER';

	# Looks for priority header field
	$g_mail_use_bug_priority = OFF;

	# Default priority for mail reported bugs
	$g_mail_bug_priority_default = NORMAL;


	# Default bug category when reporting a new bug
	$g_default_bug_category = 'log';
	# 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 = 'log';

	# Classify bug priorities
	$g_mail_bug_priority = array(
		'5 (lowest)'	=> 10,
		'4 (low)'	=> 20,
		'3 (normal)'	=> 30,
		'2 (high)'	=> 40,
		'1 (highest)'	=> 50,
		'5'		=> 20,
		'4'		=> 20,
		'3'		=> 30,
		'2'		=> 40,
		'1'		=> 50,
		'0'		=> 10,
		'low'		=> 20,
		'normal' 	=> 30,
		'high' 		=> 40,
		'' 		=> 30,
		'?' 		=> 30
	);
I have not undestood if I have to put the name of the Mantis user account in POP3_ACCOUNT or the login of the server POP3.
Can you please give me an answer.

thanks.
NT
Posts: 21
Joined: 30 Oct 2007, 13:35

Re: Report a bug via email

Post by NT »

Hi

Put your logon to the POP3 server in POP3_ACCOUNT.
The mantis account has already been set using $g_mail_reporter in your configuration file.

Nick
DaVinci
Posts: 95
Joined: 13 Apr 2007, 07:39

Re: Report a bug via email

Post by DaVinci »

hello did1979,
what i did on my MANTIS is to use the postmaster account of my domain and in password i have used the ostmasterpassword..
what you have do is:

creat and account for postmaster first
then go to administer projects and make a category called Bugs reportet by e-mails (or something like that)
then go into that category and define as follwoing:
pop3 host: mail.yourdomain.com
pop3 user: postmaster@yourdomain.com
pop3 password: password_4_p0$tmasTer

i have used:
$g_smtp_host = 'smtp.mydomain.com';
$g_mail_auth_method = 'USER';

remenber that its http://.../bug_report_mail.php that actually collects all the files in your postmater inbox so do remember to go there (if everything is ok, it should be a blank page) to collect all the mails

that is all i can think of right now
did1979
Posts: 2
Joined: 22 Nov 2007, 15:56

Re: Report a bug via email

Post by did1979 »

Hi DaVinci,

Thanks very much for you infos.
I had a problem with my lotus domino server. My mail account was not configured in POP3 that's why it won't work.

Now it goes correctly.
Thanks.

Have you tried this version of the php page with the official version 1.0.8 ?

bye.
did
nawak
Posts: 2
Joined: 20 Nov 2007, 07:59

Re: Report a bug via email

Post by nawak »

hi all,
I've got a problem to forward mails ... when I attach files like jpg, txt or whatever else it works good but not with the .eml files ?
Does someone know the reason ?
DaVinci
Posts: 95
Joined: 13 Apr 2007, 07:39

Re: Report a bug via email

Post by DaVinci »

hello again,
thank you for all the help regardin the challanges i had with configuring and installing this module..
it has wotked fine until i we have moved from the basic web-based email for a better and secure version..
the version we are using right now asks the user to accept a certificate when ever a user go to the web-bases mail server..
the thing is that this module of report-via-email is not going around the certificate handling..
can anyone give me solution how to work this out?

i get directed to this age when i go to my web-based mail..i think that the report by mail solution does not suport this..
i get directed to this age when i go to my web-based mail..i think that the report by mail solution does not suport this..
02.jpg (66.68 KiB) Viewed 22466 times
jborn
Posts: 1
Joined: 03 Jun 2008, 15:28

Re: Report a bug via email

Post by jborn »

Hi all,

I'm currently evaluating MantisBT and Roundup as a bug tracking tool for the company I work at. A feature that roundup has is submitting bugs via email and it looks like this feature/extension/patch will do the same thing in MantisBT. However I've been unable to track down how this feature/extension/patch is enabled and downloaded, along with installation instructions. Can someone point me towards the download area for this feature?

Thanks much
Mon1018
Posts: 6
Joined: 10 May 2008, 16:11
Contact:

Re: Report a bug via email

Post by Mon1018 »

I Love This Site
enjoy your stay!
I got the information!!
Excellent information.Many thanks! :roll:
pinto172
Posts: 1
Joined: 27 Jun 2008, 22:05

Re: Report a bug via email

Post by pinto172 »

Alright I have installed this and got it to work for the most part. one issues I have.

1. in the description it won't post anything but as I read in the code its suppose to post it like this:
report from: "users email address and body of email"

Now if I send the email in plain text format it will post the body of the email as the description but it still holds out the users email address.

but if I send it in html format it will not post anything in the description.
Post Reply