-
- Downloads
There was an error fetching the commit references. Please try again later.
Improve and finish the fallback to the In-Reply-To and References header for...
Improve and finish the fallback to the In-Reply-To and References header for the reply-by-email feature A few things to note: - The IncomingEmail feature is now enabled even without a correctly-formatted sub-address - Message-ID for new thread mail are kept the same so that subsequent notifications to this thread are grouped in the thread by the email service that receives the notification (i.e. In-Reply-To of the answer == Message-ID of the first thread message) - To maximize our chance to be able to retrieve the reply key, we look for it in the In-Reply-To header and the References header - The pattern for the fallback reply message id is "reply-[key]@[gitlab_host]" - Improve docs thanks to Axil
Showing
- CHANGELOG 1 addition, 0 deletionsCHANGELOG
- app/mailers/notify.rb 5 additions, 7 deletionsapp/mailers/notify.rb
- config/gitlab.yml.example 1 addition, 1 deletionconfig/gitlab.yml.example
- config/mail_room.yml 1 addition, 1 deletionconfig/mail_room.yml
- doc/incoming_email/README.md 84 additions, 24 deletionsdoc/incoming_email/README.md
- lib/gitlab/email/receiver.rb 5 additions, 5 deletionslib/gitlab/email/receiver.rb
- lib/gitlab/incoming_email.rb 10 additions, 6 deletionslib/gitlab/incoming_email.rb
- lib/tasks/gitlab/check.rake 0 additions, 15 deletionslib/tasks/gitlab/check.rake
- spec/fixtures/emails/reply_without_subaddressing_and_key_inside_references.eml 2 additions, 2 deletions...reply_without_subaddressing_and_key_inside_references.eml
- spec/fixtures/emails/valid_reply.eml 2 additions, 2 deletionsspec/fixtures/emails/valid_reply.eml
- spec/lib/gitlab/email/receiver_spec.rb 18 additions, 8 deletionsspec/lib/gitlab/email/receiver_spec.rb
- spec/lib/gitlab/incoming_email_spec.rb 8 additions, 18 deletionsspec/lib/gitlab/incoming_email_spec.rb
- spec/mailers/notify_spec.rb 44 additions, 26 deletionsspec/mailers/notify_spec.rb
- spec/mailers/shared/notify.rb 67 additions, 10 deletionsspec/mailers/shared/notify.rb
Please register or sign in to comment