Defect #43666
closedredmine:email:receive_imap does not read issue attributes from the body of the email
0%
Description
I'm following the official guide (https://www.redmine.org/projects/redmine/wiki/redminereceivingemails), trying to fetch ( IMAP ) and create new issues from emails.
Using Linux, launching redmine:6.1.1-trixie in docker (paired with postgres:14.5).
Allowed anonymous users to create an issue in the Redmine settings.
Created a project "test-project".
I use the body of the letter the same as the official guides:
This is a new issue that overrides a few attributes
[...]
Project: test-project
Tracker: Bug
Priority: Urgent
Status: New
For fetch, I run the following command:
docker compose exec redmine rake redmine:email:receive_imap \
RAILS_ENV=production unknown_user=accept \
host=<masked> starttls=true username=<masked> password=<masked>
and get this error:
E, [2026-01-12T10:54:36.953222 #161] ERROR -- : MailHandler: Validation failed: Tracker cannot be blank, Priority cannot be blank, Status cannot be blank
Updated by Holger Just 1 day ago
- File deleted (
clipboard-202601121518-w0ugz.png)
Updated by Holger Just 1 day ago
- Status changed from New to Closed
- Resolution set to Invalid
You need to specify the attributes which should be settable form the mail body with --allow-override or set --allow-override=all to allow all attributes to be set there.
Updated by arut s2 about 8 hours ago
Yes, I'm sorry, I forgot to point out that I already tried with allow_override=all (and not --allow-override, because invalid option: --allow-override=all) but the situation has not changed:
➜ docker compose exec redmine rake redmine:email:receive_imap \
RAILS_ENV=production unknown_user=accept \
host=<masked> starttls=true username=<masked> password=<masked> \
allow_override=all --trace
** Invoke redmine:email:receive_imap (first_time)
** Invoke environment (first_time)
** Execute environment
I, [2026-01-13T07:13:25.312581 #66] INFO -- : [#<Pathname:/usr/src/redmine/app/assets/fonts>, #<Pathname:/usr/src/redmine/app/assets/images>, #<Pathname:/usr/src/redmine/app/assets/javascripts>, #<Pathname:/usr/src/redmine/app/assets/stylesheets>, #<Pathname:/usr/src/redmine/app/assets/themes>, #<Pathname:/usr/src/redmine/app/javascript>, #<Pathname:/usr/src/redmine/vendor/javascript>, #<Pathname:/usr/local/bundle/gems/requestjs-rails-0.0.14/app/assets/javascripts>, #<Pathname:/usr/local/bundle/gems/doorkeeper-5.8.2/app/assets/stylesheets>, #<Pathname:/usr/local/bundle/gems/doorkeeper-5.8.2/vendor/assets/stylesheets>, #<Pathname:/usr/local/bundle/gems/stimulus-rails-1.3.4/app/assets/javascripts>, #<Pathname:/usr/local/bundle/gems/actioncable-7.2.3/app/assets/javascripts>, #<Pathname:/usr/local/bundle/gems/actionview-7.2.3/app/assets/javascripts>, #<Pathname:/usr/src/redmine/app/assets/javascripts>, #<Pathname:/usr/src/redmine/app/assets/images>, #<Pathname:/usr/src/redmine/app/assets/stylesheets>, #<Pathname:/usr/src/redmine/app/assets/themes/alternate/stylesheets>, #<Pathname:/usr/src/redmine/app/assets/themes/classic/stylesheets>, #<Pathname:/usr/src/redmine/app/assets/themes/classic/images>]
** Execute redmine:email:receive_imap
E, [2026-01-13T07:13:26.603637 #66] ERROR -- : MailHandler: Validation failed: Tracker cannot be blank, Priority cannot be blank, Status cannot be blank