Ticket #1484811 (closed Bugs: fixed)

Opened 9 months ago

Last modified 8 months ago

Handling of long headers inconsistent (Received and From)

Reported by: memoryhole Owned by:
Priority: 5 Milestone: 0.1.1
Component: IMAP connection Version: svn-trunk
Severity: major Keywords:
Cc:

Description

When transferring headers from incoming emails, usually newlines are stripped from them. In the case of Received headers, for some reason, they are not. Thus, if the Received header is getting long, mails are fed to sendmail that have extra newlines in the Received header. This can break things.

The simple solution is to strip newlines from Received headers, just like all other headers.

However, handling of wrapped headers is pretty fragile in its current form. The attached patch, to unfold all headers before parsing them, should be a better solution.

Attachments

roundcube-references2.patch (1.6 kB) - added by memoryhole 9 months ago.
Broad header unfolding fix.

Change History

Changed 9 months ago by memoryhole

Broad header unfolding fix.

Changed 9 months ago by seansan

Review in 0.1.1

Changed 9 months ago by seansan

  • milestone set to 0.1.1

Changed 8 months ago by till

  • status changed from new to closed
  • resolution set to fixed

Thanks, committed in r1204

Note: See TracTickets for help on using tickets.