6.0.0-alpha14
7/2/25

[#15019] IMP creates email with empty to field
Summary IMP creates email with empty to field
Queue IMP
Queue Version FRAMEWORK_5_2
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester o+horde (at) immerda (dot) ch
Created 07/06/2020 (1822 days ago)
Due
Updated 07/19/2020 (1809 days ago)
Assigned
Resolved 07/19/2020 (1809 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/19/2020 08:35:36 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 652b282435a235c8e56240a675e9e1bebf21dd57
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun, 19 Jul 2020 16:35:27 -0400

[mjr] Prevent creating an empty To: header (Bug #15019).

  M docs/changelog.yml

https://github.com/horde/imp/commit/652b282435a235c8e56240a675e9e1bebf21dd57
07/19/2020 08:29:13 PM Michael Rubinsky Comment #3
State ⇒ Resolved
Version ⇒ FRAMEWORK_5_2
Reply to this comment
I was unable to reproduce this in the master branch, where the ticket 
was created. However, this is reproducible in current release code.   
Fix for next release.
07/19/2020 08:27:49 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 9bd74049449f9a21f9f4dd63eac3baaeb96c10e2
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun, 19 Jul 2020 16:27:37 -0400

Bug: 15019  Fix creating and empty To: header when no To: is present.

RFC 4322 requires a non-empty To: header, or it should be omitted.

  M lib/Compose.php

https://github.com/horde/imp/commit/9bd74049449f9a21f9f4dd63eac3baaeb96c10e2
07/06/2020 09:18:19 AM o+horde (at) immerda (dot) ch Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ IMP creates email with empty to field
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
When the user provides only bcc recipients, then imp creates a mail 
with an empty "to: " header, ie. it adds the header with an empty 
header body field.

Apparently this is not compliant with RFC 4322, which defines the 
syntax of the header as follows:

to              =   "To:" address-list CRLF
address-list    =   (address *("," address)) / obs-addr-list

where the address-list has to contain at least one address. For an 
empty to: the mua is supposed to generate a message without to.

we believe that this issue is currently causing the affected emails to 
be rejected by gmx/web.de

Saved Queries