Bug 107692
Summary: | messages are rejected by fetchmail | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alexandre Oliva <oliva> | ||||||||
Component: | fetchmail | Assignee: | Nalin Dahyabhai <nalin> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brock Organ <borgan> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | rawhide | CC: | fabrice, steve | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | i386 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | fetchmail-6.2.5-6 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2005-03-11 18:00:06 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Alexandre Oliva
2003-10-22 03:27:42 UTC
Created attachment 95376 [details]
the mailbox that triggers the bug
I have the same problem. This is related to the patch fetchmail-6.2.0-reply_hack.patch. In my case the message is silently flushed from the server despite the error. The problem is that linelen is modified by reply_hack(), but its value is used elsewhere to decrement a char counter in the mainloop. Does this patch work for you ? --- transact.c 2003-11-13 18:09:39.000000000 +0100 +++ transact.c.new 2003-11-13 18:05:11.000000000 +0100 @@ -415,7 +415,7 @@ skipcount = 0; ctl->mimemsg = 0; - for (remaining = fetchlen; remaining > 0 || protocol->delimited; remaining -= linelen) + for (remaining = fetchlen; remaining > 0 || protocol->delimited; ) { char *line; int overlong = FALSE; @@ -433,6 +433,7 @@ return(PS_SOCKET); } set_timeout(0); + remaining -= n; linelen += n; msgblk.msglen += n; Thanks, I can confirm that the patch fixes the problem, apparently without introducing any ill effects. Maybe an updated package could be released for Fedora Core 1 (as this bug also applies to FC1) ? Any reason why this patch didn't make it even to FC2test1? Patch still applies cleanly atop of 6.2.0-10, and avoids the unfetchable-message problem we've had since 6.2.0-8. Could you please oh please merge the patch in? I've rolled my own RPMS to fix the issue, and I could provide diffs to spec files if you'd like. Created attachment 99088 [details]
Proposed patch
Created attachment 99089 [details]
Proposed spec patch
Now you don't have any excuse not to close this bug. ;)
In the meantime, for those interested, you can find the RPM at http://nomis80.org/rpms/fetchmail-6.2.0-8.1.i386.rpm. |