Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34788 - fetchmail bad pop 3headers cause protocol error
Summary: fetchmail bad pop 3headers cause protocol error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 62434 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-30 17:57 UTC by John Huttley
Modified: 2004-10-21 05:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Broken headers patch proposal (resides in files directory) (fetchmail-broken-headers.patch,250 bytes, patch)
2004-06-01 08:56 UTC, Philippe Weibel
Details | Diff
fetchmail-6.2.5-r1.ebuild (fetchmail-6.2.5-r1.ebuild,2.34 KB, text/plain)
2004-06-01 08:57 UTC, Philippe Weibel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Huttley 2003-11-30 17:57:28 UTC
version 6.2.3 (shipping version in 1.4) will fail if it sees imperfect headers 
in pop mailboxes. It reports  a protocol error and stops.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
Best would have been to ignore the header and download anyway.

The problem does not seem to occur in 6.2.5.
Suggest releasing it immediately.

Since NO pop mail is retreived, mailboxes overflow quickly.
Comment 1 SpanKY gentoo-dev 2003-11-30 19:56:46 UTC
you never actually said what program is failing
Comment 2 John Huttley 2003-11-30 22:13:48 UTC
Ahem, sorry,
The program with the problem fetchmail 6.2.3.
This is the stock version as at 2003-12-01.

A bit stressed here.
Comment 3 Philippe Weibel 2004-06-01 08:56:14 UTC
Created attachment 32465 [details, diff]
Broken headers patch proposal (resides in files directory)

Just accept mail that contains invalid headers (warning still issued) if end of
headers is found. This resolved the problem for me.
Comment 4 Philippe Weibel 2004-06-01 08:57:30 UTC
Created attachment 32466 [details]
fetchmail-6.2.5-r1.ebuild

New ebuild using my patch (~x86)
Comment 5 Philippe Weibel 2004-06-01 09:03:49 UTC
I've got tons of messages in logfiles like "incorrect header line found while scanning headers". Mails where then deleted by default (!!)

I tried some other fetchmail versions, all of them having the same problem (6.2.0, debian patched 6.2.5-7 and 6.2.5-8)...

The patch + ebuild corrects the problem for me.

Could you add these files to portage?
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2004-09-03 10:42:33 UTC
robbat2, what do you think? I find this patch useful, as I experienced this fetchmail behavior several times already and it's annoying. For now, I'll be using fetchmail with this patch applied, even if it's not in portage yet.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-03 12:48:10 UTC
Ticho: looks good to me, but I only use fetchmail with IMAP. Could you please also send the patch to upstream?
Comment 8 Andrej Kacian (RETIRED) gentoo-dev 2004-09-03 12:59:36 UTC
-r1 ebuild, with patch submitted here, committed to CVS. Thank you, John!
Comment 9 Andrej Kacian (RETIRED) gentoo-dev 2004-09-04 01:40:29 UTC
*** Bug 62434 has been marked as a duplicate of this bug. ***
Comment 10 Philippe Weibel 2004-10-20 16:30:20 UTC
"Thank you, John!" ???

Just saw the patch submitted was attribued to reporter of this bug... :-(. Ok, It's one line - patch...
Comment 11 Andrej Kacian (RETIRED) gentoo-dev 2004-10-20 16:39:39 UTC
I'm terribly sorry, Philippe, I should have checked who submitted the patch. Fixed the ChangeLog for fetchmail.

Once again, I apologize.
Comment 12 Philippe Weibel 2004-10-21 05:10:51 UTC
Forget this.
I'm happy to contribute ;-)