fetchmail mimedecode option drops last message line if unterminated

Bug #1171818 reported by Axel G. Rossberg
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
fetchmail (Debian)
Fix Released
Unknown
fetchmail (Fedora)
Fix Released
High
fetchmail (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Won't Fix
Medium
Unassigned

Bug Description

Over the last year or so (perhaps since update to fetchmail 6.3.21), I had a problem that in messages sent from one particular mail server (Microsoft Exchange) the messages I recieved had no text in the body at all.

I then found that for plain text messages that are not terminated with a newline (sent using the ms webmail interface) the last line of the message gets lost. I assume that HTML messages are sent as a single, unterminated line, and therefore get entirely lost.

The problem disappeared (at least that for plain text messages) when turning the mimedecode option off under fetchmail.

Ubunutu release: 12.04

Tags: patch
Revision history for this message
Matthias Andree (matthias-andree) wrote :

Confirmed by upstream maintainer (yours truly), to be fixed in 6.3.26 (not yet released).

Changed in fetchmail (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Andree (matthias-andree) wrote : Re: [Bug 1171818] Re: fetchmail mimedecode option drops last message line

I have just released fetchmail 6.3.26 to fix this bug.

Revision history for this message
Matthias Andree (matthias-andree) wrote : Re: fetchmail mimedecode option drops last message line

This should be made "High" priority as it causes data corruption for some users.

This should be marked "triage".

A patch is available from the upstream Git repo:
http://gitorious.org/fetchmail/fetchmail/commit/21ac960a3e648cd53c155bd2b724f72f0164416f?format=patch

tags: added: patch
Revision history for this message
In , Matthias (matthias-redhat-bugs) wrote :

Description of problem:
fetchmail loses the last line of a message (and thus possibly the entire message if it is HTML) if the mimedecode option is enabled and the last line is not properly terminated (CRLF/LF).

This is confirmed by the upstream author.

Version-Release number of selected component (if applicable):
Affects all upstream releases before 6.3.26 unless specifically patched.

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:

Expected results:

Additional info:

Revision history for this message
In , Matthias (matthias-redhat-bugs) wrote :
Revision history for this message
Matthias Andree (matthias-andree) wrote :

Note that the mimedecode option defaults to "off".

summary: - fetchmail mimedecode option drops last message line
+ fetchmail mimedecode option drops last message line if unterminated
Changed in fetchmail (Debian):
status: Unknown → Confirmed
Revision history for this message
In , Vitezslav (vitezslav-redhat-bugs) wrote :

Thanks Matthias, applied.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

fetchmail-6.3.22-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/fetchmail-6.3.22-2.fc18

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

Package fetchmail-6.3.22-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing fetchmail-6.3.22-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-6632/fetchmail-6.3.22-2.fc18
then log in and leave karma (feedback).

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

fetchmail-6.3.22-2.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.

Changed in fetchmail (Debian):
status: Confirmed → Fix Released
Changed in fetchmail (Fedora):
importance: Unknown → High
status: Unknown → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

Trusty is carrying 6.3.26, so this issue affects Precise only, which reached EOL this past April.

Changed in fetchmail (Ubuntu Precise):
status: New → Triaged
importance: Undecided → Medium
Changed in fetchmail (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

The Precise Pangolin has reached end of life, so this bug will not be fixed for that release

Changed in fetchmail (Ubuntu Precise):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.