app/mailers/notify.rb
def mail_answer_thread(model, headers = {})
    headers['Message-ID'] = "<#{SecureRandom.hex}@#{Gitlab.config.gitlab.host}>"
    headers['In-Reply-To'] = message_id(model)
    headers['References'] = message_id(model)

    headers[:subject].prepend('Re: ') if headers[:subject]

    mail_thread(model, headers)
  end
# Send an email that responds to an existing conversation thread,
# with headers suitable for grouping by thread in email clients.
#
# For grouping emails by thread, email clients heuristics require the answers to:
#
#  * have a subject that begin by 'Re: '
#  * have a 'In-Reply-To' or 'References' header that references the original 'Message-ID'
#
Send an email that responds to an existing conversation thread,
with headers suitable for grouping by thread in email clients.

For grouping emails by thread, email clients heuristics require the answers to.


Send an email that responds to an existing conversation thread with headers suitable for grouping by thread in email clients . For grouping emails by thread email clients heuristics require the answers to .
def mail_answer_thread(model, headers = {})
    headers['Message-ID'] = "<#{SecureRandom.hex}@#{Gitlab.config.gitlab.host}>"
    headers['In-Reply-To'] = message_id(model)
    headers['References'] = message_id(model)
    headers[:subject].prepend('Re: ') if headers[:subject]
    mail_thread(model, headers)
  end
def mail_answer_thread ( model , headers = { } ) headers [ 'Message-ID' ] = "<#{SecureRandom.hex}@#{Gitlab.config.gitlab.host}>" headers [ 'In-Reply-To' ] = message_id ( model ) headers [ 'References' ] = message_id ( model ) headers [ :subject ] . prepend ( 'Re: ' ) if headers [ :subject ] mail_thread ( model , headers ) end
Send an email that responds to an existing conversation thread,
with headers suitable for grouping by thread in email clients.
Send an email that responds to an existing conversation thread with headers suitable for grouping by thread in email clients .
model
headers