fetchmail-friends
[Top] [All Lists]

[fetchmail]broken message handling

2002-01-09 18:20:35
Frist a trivial thing: on http://www.tuxedo.org/~esr/fetchmail/ in the
"Getting help with fetchmail" section the "G3" link is broken due to
"http:" at the beginning.

Today a message arrived on debian-devel list about gopher.  As far as I
can tell it broke something either on my POP3 server or fetchmail.
Using '-avv' options I get the log below.  Notice for message 3 it gets
confused due to message header problem or something.  It tries to QUIT
while out of sync with the server and fails.  In this setup it leaves
the broken message on the server.  So repeated use of fetchmail always
gets stuck in the same spot.  Yuck.  I had to manually telnet in to POP3
server and do a DELE 3 on the message by hand and QUIT and then
everything started working again.  I also have access via "WebMail"
"Powered by WebMail v3.61 -- © Copyright 1995-2000 by Infinite
Technologies" at http://webmail.vt.edu/ and unfortunately that software
just didn't bother to even display the message... so I couldn't delete
it that way.

It would be nice if fetchmail could handle whatever situation this is a
little better.  Something like noticing it's out of sync and trying to
get back to a sane state before doing QUIT.  Here it just prints
'client/protocol error' and exits.  That left my deamon in a loop
unfortunately.  Kept getting those first few messages over and over.  I
didn't try another POP client... not sure how this would be handled with
other software.  Though I suppose if it had done QUIT properly the main
body of the broken message would have been lost since it did a DELE on
it.  hmm.

Unfortunately I didn't save the whole broken message while doing POP3 by
hand (whoops!).  Though part of the headers did pop up in my mbox.  I'm
sure someone on debian-devel has the whole thing.  Something about
gopher.

Linux 2.2.19 i686 unknown
Debian packages:
exim 3.33-1.1 
fetchmail 5.9.6-2

------

Log from 'fetchmail -avv -l log':

fetchmail: starting fetchmail 5.9.6 daemon 
fetchmail: 5.9.6 querying mail.vt.edu (protocol POP3) at Wed Jan  9 19:02:05 
2002: poll started
fetchmail: POP3< +OK POP-3 gkar.cc.vt.edu - Sun Internet Mail Server - 
sims.3.5.2000.03.23.18.03.p10 at Wed, 9 Jan 2002 19:02:05 -0500 (EST) 
fetchmail: POP3> USER dlehn
fetchmail: POP3< +OK User name accepted, password please
fetchmail: POP3> PASS *
fetchmail: POP3< +OK Mailbox open, 258 messages
fetchmail: selecting or re-polling default folder
fetchmail: POP3> STAT
fetchmail: POP3< +OK 258 1091979
fetchmail: 258 messages for dlehn at mail.vt.edu (1091979 octets).
fetchmail: POP3> LIST
fetchmail: POP3< +OK Mailbox scan listing follows
fetchmail: POP3< 1 2796
fetchmail: POP3< 2 3270
fetchmail: POP3< 3 11857
fetchmail: POP3< 4 2601
....
fetchmail: POP3< 257 4334
fetchmail: POP3< 258 1551
fetchmail: POP3< .
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK 2796 octets
fetchmail: reading message dlehn(_at_)mail(_dot_)vt(_dot_)edu:1 of 258 (2796 
octets)
fetchmail: About to rewrite Return-path: 
<linux-kernel-owner(_at_)vger(_dot_)kernel(_dot_)org>
Rewritten version is Return-path: 
<linux-kernel-owner(_at_)vger(_dot_)kernel(_dot_)org>

fetchmail: About to rewrite From: Michael Zhu <mylinuxk(_at_)yahoo(_dot_)ca>
Rewritten version is From: Michael Zhu <mylinuxk(_at_)yahoo(_dot_)ca>

fetchmail: About to rewrite Sender: 
linux-kernel-owner(_at_)vger(_dot_)kernel(_dot_)org
Rewritten version is Sender: linux-kernel-owner(_at_)vger(_dot_)kernel(_dot_)org

fetchmail: About to rewrite To: root(_at_)chaos(_dot_)analogic(_dot_)com
Rewritten version is To: root(_at_)chaos(_dot_)analogic(_dot_)com

fetchmail: About to rewrite Cc: linux-kernel(_at_)vger(_dot_)kernel(_dot_)org
Rewritten version is Cc: linux-kernel(_at_)vger(_dot_)kernel(_dot_)org

fetchmail: SMTP< 220 crib.corepower.com ESMTP Exim 3.33 #1 Wed, 09 Jan 2002 
19:02:10 -0500
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-crib.corepower.com Hello dlehn at localhost [127.0.0.1]
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250 HELP
fetchmail: forwarding to localhost
fetchmail: SMTP> MAIL 
FROM:<linux-kernel-owner(_at_)vger(_dot_)kernel(_dot_)org> SIZE=2796
fetchmail: SMTP< 250 <linux-kernel-owner(_at_)vger(_dot_)kernel(_dot_)org> is 
syntactically correct
fetchmail: SMTP> RCPT TO:<dlehn(_at_)localhost>
fetchmail: SMTP< 250 <dlehn(_at_)localhost> is syntactically correct
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter message, ending with "." on a line by itself
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 OK id=16OSfa-0003QY-00
fetchmail:  flushed
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK Message deleted
fetchmail: POP3> RETR 2
fetchmail: POP3< +OK 3270 octets
fetchmail: reading message dlehn(_at_)mail(_dot_)vt(_dot_)edu:2 of 258 (3270 
octets)
fetchmail: About to rewrite Return-path: 
<bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org>
Rewritten version is Return-path: 
<bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org>

fetchmail: About to rewrite Resent-from: 
debian-devel(_at_)lists(_dot_)debian(_dot_)org
Rewritten version is Resent-from: debian-devel(_at_)lists(_dot_)debian(_dot_)org

fetchmail: About to rewrite From: Yves Arrouye <yves(_at_)realnames(_dot_)com>
Rewritten version is From: Yves Arrouye <yves(_at_)realnames(_dot_)com>

fetchmail: About to rewrite Resent-sender: 
debian-devel-request(_at_)lists(_dot_)debian(_dot_)org
Rewritten version is Resent-sender: 
debian-devel-request(_at_)lists(_dot_)debian(_dot_)org

fetchmail: About to rewrite To: 'Glenn McGrath' 
<bug1(_at_)optushome(_dot_)com(_dot_)au>
Rewritten version is To: 'Glenn McGrath' 
<bug1(_at_)optushome(_dot_)com(_dot_)au>

fetchmail: About to rewrite Cc: debian-devel(_at_)lists(_dot_)debian(_dot_)org
Rewritten version is Cc: debian-devel(_at_)lists(_dot_)debian(_dot_)org

fetchmail: forwarding to localhost
fetchmail: SMTP> MAIL 
FROM:<bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org> 
SIZE=3270
fetchmail: SMTP< 250 
<bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org> is 
syntactically correct
fetchmail: SMTP> RCPT TO:<dlehn(_at_)localhost>
fetchmail: SMTP< 250 <dlehn(_at_)localhost> is syntactically correct
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter message, ending with "." on a line by itself
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 OK id=16OSfa-0003QY-01
fetchmail:  flushed
fetchmail: POP3> DELE 2
fetchmail: POP3< +OK Message deleted
fetchmail: POP3> RETR 3
fetchmail: POP3< +OK 11857 octets
fetchmail: reading message dlehn(_at_)mail(_dot_)vt(_dot_)edu:3 of 258 (11857 
octets)
fetchmail: About to rewrite Return-path: 
<bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org>
Rewritten version is Return-path: 
<bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org>

fetchmail: message delimiter found while scanning headers
fetchmail: forwarding to localhost
fetchmail: SMTP> MAIL 
FROM:<bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org> 
SIZE=11857
fetchmail: SMTP< 250 
<bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org> is 
syntactically correct
fetchmail: SMTP> RCPT TO:<dlehn(_at_)localhost>
fetchmail: SMTP< 250 <dlehn(_at_)localhost> is syntactically correct
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter message, ending with "." on a line by itself
fetchmail: message dlehn(_at_)mail(_dot_)vt(_dot_)edu:3 was not the expected 
length (1031 actual != 11857 expected)
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 OK id=16OSfa-0003QY-02
fetchmail:  flushed
fetchmail: POP3> DELE 3
fetchmail: POP3<  with ESMTP id 17F1B3B814; Wed, 09 Jan 2002 11:57:35 -0500 
(EST)
fetchmail: POP3> QUIT
fetchmail: POP3< Received: by christoph.complete.org (Postfix, from userid 1000)
fetchmail: client/server protocol error while fetching from mail.vt.edu
fetchmail: 5.9.6 querying mail.vt.edu (protocol POP3) at Wed Jan  9 19:02:10 
2002: poll completed
fetchmail: Query status=4 (PROTOCOL)
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 crib.corepower.com closing connection
fetchmail: Deleting fetchids file.
fetchmail: sleeping at Wed Jan  9 19:02:10 2002
fetchmail: terminated with signal 15
fetchmail: Deleting fetchids file.

------

Headers I got in my mbox.  Someone on debian-devel have the rest?

From bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org 
Wed Jan 09 19:02:10 2002
Return-path: 
<bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org>
Envelope-to: dlehn(_at_)localhost
Received: from localhost ([127.0.0.1] ident=dlehn)
        by crib.corepower.com with esmtp (Exim 3.33 #1 (Debian))
        id 16OSfa-0003QY-02
        for <dlehn(_at_)localhost>; Wed, 09 Jan 2002 19:02:10 -0500
Received: from mail.vt.edu [198.82.161.8]
        by localhost with POP3 (fetchmail-5.9.6)
        for dlehn(_at_)localhost (single-drop); Wed, 09 Jan 2002 19:02:10 -0500 
(EST)
Received: from steiner.cc.vt.edu ([198.82.161.185])
 by gkar.cc.vt.edu (Sun Internet Mail Server sims.3.5.2001.05.04.11.50.p10)
 with ESMTP id <0GPO00H3XKJ3ZF(_at_)gkar(_dot_)cc(_dot_)vt(_dot_)edu> for 
dlehn(_at_)sims-ms-daemon; Wed,
 9 Jan 2002 11:59:27 -0500 (EST)
Received: from murphy.debian.org (murphy.debian.org [216.234.231.6])
 by steiner.cc.vt.edu (Mirapoint) with SMTP id AHT17395; Wed,
 09 Jan 2002 11:59:26 -0500 (EST)
Received: (qmail 17895 invoked by uid 38); Wed, 09 Jan 2002 16:57:44 +0000
Received: (qmail 17554 invoked from network); Wed, 09 Jan 2002 16:57:35 +0000
Received: from pi.glockenspiel.complete.org 
(postfix(_at_)64(_dot_)242(_dot_)77(_dot_)171)
 by murphy.debian.org with SMTP; Wed, 09 Jan 2002 16:57:35 +0000
Received: from christoph.complete.org (unknown [168.215.193.254])
 (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
 (Client CN "christoph.complete.org", Issuer CN "John Goerzen -- Root CA"
Message-Id: <E16OSfa-0003QY-02(_at_)crib(_dot_)corepower(_dot_)com>
From: bounce-debian-devel=dlehn=vt(_dot_)edu(_at_)lists(_dot_)debian(_dot_)org
Bcc:
Date: Wed, 09 Jan 2002 19:02:10 -0500
Status: RO
Content-Length: 0
Lines: 0

------

Thanks.

-dave
-- 
David I. Lehn <dlehn(_at_)vt(_dot_)edu>  | http://www.lehn.org/~dlehn/
Computer Engineering Graduate @ Virginia Tech in sunny Blacksburg, VA


<Prev in Thread] Current Thread [Next in Thread>
  • [fetchmail]broken message handling, David I. Lehn <=