Project

General

Profile

Actions

Defect #25269

closed

Emails with no text or html Content not handled properly

Added by Felix Schäfer about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Email receiving
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

This currently only affects trunk.

The change to the handling of incoming emails committed in r16371 and proposed in #25256 unfortunately improperly handles emails with multipart content but no content in a text or html part of the email. This might be the case if the email is intentionally left blank.

I will provide a patch and a test for that case.


Files


Related issues

Related to Redmine - Defect #25256: Mail parts with empty content should be ignoredClosedJean-Philippe Lang

Actions
Actions #1

Updated by Felix Schäfer about 7 years ago

Attached is a patch with the fix and a test for the case of no content in the html or text parts. Also included are comments provided by my colleague Holger Just to make clear what each part does in what case.

Actions #2

Updated by Go MAEDA about 7 years ago

  • Related to Defect #25256: Mail parts with empty content should be ignored added
Actions #3

Updated by Felix Schäfer about 7 years ago

My previous patch did not include the fixture email file for the test, sorry for the oversight.

Actions #4

Updated by Jean-Philippe Lang about 7 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Thanks for this fix.

Actions

Also available in: Atom PDF