Closed Bug 2063803 Opened 3 months ago Closed 3 months ago

Reply from Template Filter Action Replaces MIME Headers

Categories

(MailNews Core :: Filters, defect)

Thunderbird 156
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 326181

People

(Reporter: homemade, Unassigned)

Details

Attachments

(1 file)

188.42 KB, application/x-zip-compressed
Details
Attached file filter action bug.zip —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0

Steps to reproduce:

  1. create a template with an attachment (image 1, template.eml)
  • example verified on Nightly uses an image (test image.png)
  • initially observed on 140.9.1esr using a video
  1. setup a filter action to Reply with Template to a given trigger (image 2)
  • verified example uses a subject line trigger
  1. send a message that triggers the filter and observe the response (image 3, response.eml)

n.b. while the verified example uses the same account to send and receive, this was initially observed with different sending and receiving accounts.

Actual results:

While the attachment will be displayed correctly in the template preview, and if the message is sent directly from the template editor, it will render as an encoded data string in the message received from the filter action.

Examination of the source of the template, and the received message reveal what I believe the problem is.

The template has a Content-Type: multipart/mixed; header (line 1), which is correct, as it has an attachment. The message actually received has a Content-Type: text/html; header instead (line 88). This causes the MIME boundary, part headers, and encoded data to display inline with the rest of the message. (see image 3)

It appears that the Reply from Template action is not respecting the MIME headers set in the template and is replacing them with Content-Type: text/html;

Expected results:

The attachment should be interpreted as separate MIME part, and correctly decoded and rendered.

see also 1649014

Please note, the I have also tested to see whether this behavior may have been causing the similar issue observed by the original poster in the issue above.

  • The filter was modified to forward instead of reply (image 4)
  • The template was modified slightly and sent as the trigger message

It does not appear that the Forward filter action is affected by this behavior. (image 5, response 2.eml)

Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Duplicate of bug: 326181
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: