Silently sign-up reporting user and subscribe them to the bu

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
ehanuise
Posts: 2
Joined: 03 May 2017, 09:10

Silently sign-up reporting user and subscribe them to the bu

Post by ehanuise »

Hi all.
I'm setting up MantisBT latest with EmailReporting.
Creating bugs and notes from email works fine, but I'm struggling to find how to configure it to our specific needs.
We want to set up a very userfriendly workflow via email :
- anon user sends a mail to our support address
- mantis picks up that mail through emailreporting and creates the issue (that part works fine)
- the user gets a confirmation email with issue number
- when the issue gets updated/fixed, the user gets notification emails as well

So far what we have is the anon user can create an issue by sending email, but he does not receive notifications.
If I activate creation of users from email reporting, the user gets a notification email asking them to log in to mantis and set a password, which we don't want (we want the reporting user never to have to deal with Mantis web, and keep it only-email as far as they are concerned).
Our staff has 'proper' antis accounts and uses the web interface, but we want to somehow shield the reporting users from that level of complexity.

So is there a config option to do this, or a plugin ? Is this at all possible using Mantis ?
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Silently sign-up reporting user and subscribe them to th

Post by SL-Gundam »

EmailReporting only deals with processing emails to issues
For the notifications to users EmailReporting relies on MantisBT. MantisBT requires that users have an account to be able to get notifications

The users will not need to set up an actual account though so that email where they have to choose a password can be ignored but the MantisBT notification emails do contain links to the MantisBT web interface
So its possible a user ends up on the MantisBT web interface through that
ehanuise
Posts: 2
Joined: 03 May 2017, 09:10

Re: Silently sign-up reporting user and subscribe them to th

Post by ehanuise »

SL-Gundam wrote:EmailReporting only deals with processing emails to issues
For the notifications to users EmailReporting relies on MantisBT. MantisBT requires that users have an account to be able to get notifications

The users will not need to set up an actual account though so that email where they have to choose a password can be ignored but the MantisBT notification emails do contain links to the MantisBT web interface
So its possible a user ends up on the MantisBT web interface through that
Actually mantisBT does not end outgoing emails other than the PW request as long as the user hasn't set up a password. This is good to prevent spam, but somehow an issue in this specific situation.

Should I move the question to another part of the forum ?
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Silently sign-up reporting user and subscribe them to th

Post by SL-Gundam »

Hmm thats an issue i would have to look at
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Silently sign-up reporting user and subscribe them to th

Post by SL-Gundam »

I tested and as far as i can see it will send notification emails.

You might need to look at your notification settings
It might also help to enable: http://www.mantisbt.org/wiki/doku.php/m ... eceive_own
a.corbi
Posts: 1
Joined: 30 Oct 2018, 17:16

Re: Silently sign-up reporting user and subscribe them to the bu

Post by a.corbi »

Hello,

I have the same configuration concern as ehanuise.
I tested several configuration combinations, and it never works without enabling automatic account creation.
Can you guide me?
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Silently sign-up reporting user and subscribe them to the bu

Post by SL-Gundam »

Like posted above.
Anonymous users cannot receive notifications. If the user accounts already exist then EmailReporting should use them, otherwise a fallback user account will be used.

If the user account does not exist, automatic signup is required to connect a proper user account to the issue

So in short there are 2 options:
1. Make absolutely sure all the required user accounts exist in MantisBT with the proper email addresses.
2. Enable automatic signup to make sure missing user accounts are created when necessary

In my company we've connected MantisBT by using LDAP to Microsoft Active Directory.
I don't think users receive a notification of an account creation.

You could try turning OFF the 2 options below

Code: Select all

/**
 * If ON, users will be sent their password when their account is created
 * or password reset (this requires mail settings to be correctly configured).
 * If OFF, then the Administrator will have to provide a password when
 * creating new accounts, and the password will be set to blank when reset.
 * @global integer $g_send_reset_password
 */
$g_send_reset_password	= ON;

Code: Select all

/**
 * Allow users to signup for their own accounts.
 * If ON, then $g_send_reset_password must be ON as well, and mail settings
 * must be correctly configured
 * @see $g_send_reset_password
 * @global integer $g_allow_signup
 */
$g_allow_signup			= ON;
Post Reply