Project

General

Profile

Defect #31503 » fix-31503-trunk.diff

patch for the trunk - Go MAEDA, 2019-06-09 14:07

View differences:

app/models/mail_handler.rb (作業コピー)
274 274
        add_attachments(reply)
275 275
        reply
276 276
      else
277
        logger&.info "MailHandler: ignoring reply from [#{sender_email}] to a locked topic"
277
        logger&.info "MailHandler: ignoring reply from [#{email.from.first}] to a locked topic"
278 278
      end
279 279
    end
280 280
  end
test/unit/mail_handler_test.rb (作業コピー)
1002 1002
    assert_equal Message.find(1), m.parent
1003 1003
  end
1004 1004

  
1005
  def test_reply_to_a_locked_message
1006
    # Lock the topic
1007
    Message.find(2).parent.update_attribute :locked, true
1008

  
1009
    assert_no_difference('Message.find(1).replies_count') do
1010
      m = submit_email('message_reply_by_subject.eml')
1011
    end
1012
  end
1013

  
1005 1014
  def test_should_convert_tags_of_html_only_emails
1006 1015
    with_settings :text_formatting => 'textile' do
1007 1016
      issue = submit_email('ticket_html_only.eml', :issue => {:project => 'ecookbook'})
(1-1/2)