Feature #40422
openPrint name and email to request that was create through email
0%
Description
We have introduced an enhancement to our email-based task creation functionality.
Traditionally, we have utilized the IMAP method for generating new tasks through emails, as detailed on the Redmine documentation page: https://www.redmine.org/projects/redmine/wiki/redminereceivingemails#Fetching-emails-from-an-IMAP-server.
Due to security considerations, we opted against using the parameter unknown_user="create" which would automatically create a new Redmine user if the email sender wasn't recognized. Instead, we chose the unknown_user="accept" setting. This approach, however, resulted in tasks that seemed to be created by an anonymous user, without indicating the email sender's identity.
To address this issue, we've added a novel parameter "insert_name_and_email_to_description". When set to 1, this parameter ensures that the sender's name and email address are included in the first line of the task description in the format <<<[name-from-header];[email-sender]>>> as illustrated in the attached screenshot.
Below is an example of how we invoke the script with this new parameter:
/opt/bitnami/ruby/bin/bundle exec /opt/bitnami/ruby/bin/rake redmine:email:receive_imap RAILS_ENV="production" host="xxx" username="xxx" password="xxx" unknown_user="accept" no_permission_check=1 project="xxx" no_account_notice=1 insert_name_and_email_to_description=1 --trace
It's important to note that the "insert_name_and_email_to_description" parameter is optional. If it's not set, or if its value is 0, the functionality reverts to its previous behavior.
I am also attaching a "patch" file detailing these modifications against the last commit on the master branch in our git repository.
Files