Vote #64907
未完了Better handling of unknown and aliased email addresses when submitting issue via email
0%
説明
Currently incoming emails from unknown addresses are not processed.
Some redmine users also like to submit tickets from alternative or personal email addresses, and an ideal enhancement to the email submission would be:
1) possibility to add email aliases in addition to the default email address that is used for sending notifications. this way, an email from the default address or the secondary alias address will be accepted.
2) possibility to allow ticket submission from a previously unknown address. this could be mapped to a default generic user, or a new username created from the email address (both options could be avaialable to the administrator).
journals
I added some functionality that might be interesting. Basicly some more options for receiving e-mail, like what do to with unknown addresses. it's a little bit configurable like i thought it could be usefull.
A new user will be created from the email address:
<pre>
email = from
firstname = from.split(@).split(.).first
lastname = from.split(@).split(.).last
password = generated
</pre>
Tests included
Use as you like. (i suggest this would resolve point 2)
--------------------------------------------------------------------------------
This patch is somehow better.
--------------------------------------------------------------------------------
Modified the patch a little. Role creation was broken against current trunk. Modified patch available at github, http://github.com/terotil/redmine/commit/458682467dc21a7cf0ad769fd5f351fbd96a468a
--------------------------------------------------------------------------------
Tero
Thankyou. How to implement your patch? The github gives a 1.2mb tar file of the a fork rather than a .patch diff file.
I am using the latest svn checkout.
--------------------------------------------------------------------------------
patch attached
--------------------------------------------------------------------------------
Extracted from issue #2230:
> "Kolja K.":http://www.redmine.org/users/8546 wrote on 2009-11-20 17:46:
> > If you plan to put this issue in 0.9, it would be a really good idea to allow anonymous tickets with an email adress attached. This way, you are not forced to have every email to create an user only to know who has created the ticket. Kind of light users only with an email adress and unable to log in. Think of redirecting your webmaster@domain.com into redmine... and btw: there is a "patch":/issues/3187 to activate a permission called "view own issues" - perfect solution for inbox projects.
> "Jean-Philippe Lang":http://www.redmine.org/users/1 replied on 2009-11-21 13:34:
> > Yes, this would be a really good idea. But time is missing for adding this in 0.9.
--------------------------------------------------------------------------------
> Some redmine users also like to submit tickets from alternative or personal email addresses
Solution implemented r2789:
* deals with unknown e-mails very well (AFAIK, at least)
* does not address need to associate to each user a collection of alternate e-mail adresses.
The one that bites hard here is people replying to _existing_ issues with a different e-mail address... replies get lost.
That need of alternate e-mail addresses is *de facto* discussed in #4244, although the initial title and description are different.
If each issue is to be kept focused for clarity, should a separate dedicated issue be created ?
--------------------------------------------------------------------------------
related_issues
relates,Closed,2334,Autocreate user account when user submits email that creates new issue
precedes,New,2230,Issue creation via email from anyone without a Redmine account using an Inbox project