Opened 5 years ago
Closed 5 years ago
#1484811 closed Bugs (fixed)
Handling of long headers inconsistent (Received and From)
| Reported by: | memoryhole | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.1.1 |
| Component: | IMAP connection | Version: | git-master |
| 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 (1)
Change History (4)
Changed 5 years ago by memoryhole
comment:1 Changed 5 years ago by seansan
Review in 0.1.1
comment:2 Changed 5 years ago by seansan
- Milestone set to 0.1.1
comment:3 Changed 5 years ago by till
- Resolution set to fixed
- Status changed from new to closed
Thanks, committed in [14432db3]
Note: See
TracTickets for help on using
tickets.

Broad header unfolding fix.