fetchmail-friends
[Top] [All Lists]

[fetchmail]mail with incorrect header end is lost

2004-03-10 12:01:38
Hi,

if the RFC822 emtpy line after the header lines is missing, fetchmail should
insert that emtpy line and process the mail.

Fetchmail 5.9.13 (SuSE 8.1) delivers both header and body, and deletes the
mail on the server. However, the first body line is lost as it gets
replaced by an empty line.

Fetchmail 6.2.3 (SuSE 9.0) delivers the header, but stops, leaving the mail
on the server so that it tries to fetch it over and over again.

Fetchmail 6.2.5 (compiled with gcc-Version 3.3.1 on SuSE 9.0 Linux) deletes
the mail without delivery, without any indication that it's lost:

telnet example.com 110
Trying 213.131.231.14...
Connected to example.com. 
Escape character is '^]'.
+OK <8002(_dot_)1074537858(_at_)example(_dot_)com>
USER example
+OK
PASS *
+OK
TOP 1 99999999
+OK
Return-Path: <fetchmailtest(_at_)example(_dot_)com>
Delivered-To: example-example(_dot_)com-example(_at_)example(_dot_)com
Received: (qmail 8261 invoked by uid 1252); 19 Jan 2004 18:44:12 -0000
Delivered-To: example-example(_dot_)com-fetchmailtest(_at_)example(_dot_)com
Received: (qmail 17041 invoked from network); 19 Jan 2004 18:44:06 -0000
Received: from unknown (HELO example.com) (213.6.67.218)
  by 0 with SMTP; 19 Jan 2004 18:44:06 -0000
Subject: fetchmailtest
body 1
body 2
body 3

body 4
body 5
body 6

.
QUIT
+OK
Connection closed by foreign host.
/usr/src/packages/SOURCES/fetchmail-6.2.5/fetchmail -v -v
fetchmail: 6.2.5 querying example.com (protocol POP3) at Mo 19 Jan 2004 
19:39:50 CET: poll started
fetchmail: POP3< +OK <14723(_dot_)1074537869(_at_)example(_dot_)com>
fetchmail: POP3> CAPA
fetchmail: POP3< -ERR authorization first
fetchmail: authorization first
fetchmail: Repoll immediately on example(_at_)example(_dot_)com
fetchmail: POP3< +OK <22071(_dot_)1074537869(_at_)example(_dot_)com>
fetchmail: POP3> USER example
fetchmail: POP3< +OK
fetchmail: POP3> PASS *
fetchmail: POP3< +OK
fetchmail: selecting or re-polling default folder
fetchmail: POP3> STAT   
fetchmail: POP3< +OK 1 464
fetchmail: POP3> LAST
fetchmail: POP3< +OK 0
1 message for example at example.com (464 octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 464
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK
reading message example(_at_)example(_dot_)com:1 of 1 (464 octets)
fetchmail: incorrect header line found while scanning headers
fetchmail: line: body 1
fetchmail: message example(_at_)example(_dot_)com:1 was not the expected length 
(481 actual != 464 expected)
 flushed
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK
fetchmail: POP3> QUIT
fetchmail: POP3< +OK
fetchmail: 6.2.5 querying example.com (protocol POP3) at Mo 19 Jan 2004 
19:39:54 CET: poll completed
fetchmail: not swapping UID lists, no UIDs seen this query
fetchmail: Deleting fetchids file.
fetchmail: normal termination, status 0
fetchmail: Deleting fetchids file.
/usr/src/packages/SOURCES/fetchmail-6.2.5/fetchmail -V
This is fetchmail release 6.2.5+NLS
Fallback MDA: (none)
Linux example 2.4.21-99-athlon #1 Wed Sep 24 13:34:32 UTC 2003 i686 athlon i386 
GNU/Linux
Taking options from command line and /home/example/.fetchmailrc
Idfile is /home/example/.fetchids
Fetchmail will show progress dots even in logfiles.
Fetchmail will forward misaddressed multidrop messages to example.
Fetchmail will direct error mail to the postmaster.
Options for retrieving from example(_at_)example(_dot_)com:   
  True name of server is example.com.
  Protocol is POP3.
  All available authentication methods will be tried.
  Server nonresponse timeout is 300 seconds (default).
  Default mailbox selected.
  Only new messages will be retrieved (--all off).
  Fetched messages will not be kept on the server (--keep off).
  Old messages will not be flushed before message retrieval (--flush off).
  Rewrite of server-local addresses is disabled (--norewrite on).
  Carriage-return stripping is enabled (stripcr on).
  Carriage-return forcing is disabled (forcecr off).
  Interpretation of Content-Transfer-Encoding is enabled (pass8bits off).
  MIME decoding is disabled (mimedecode off).
  Idle after poll is disabled (idle off).
  Nonempty Status lines will be kept (dropstatus off)
  Delivered-To lines will be kept (dropdelivered off)
  Received-message limit is 25 (--fetchlimit 25).
  Fetch message size limit is 100 (--fetchsizelimit 100).
  Do binary search of UIDs during 9 out of 10 polls (--fastuidl 10).
  Messages will be delivered with "/usr/bin/procmail  -d %T".
  Single-drop mode: 1 local name(s) recognized.
  No UIDs saved from this host.


  Julian
-- 
Julian Ladisch, http://ladisch.de/
Using my data or passing them on for advertising, market research
or opinion research purposes is forbidden.

Attachment: pgpcpaR3sUVpR.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
  • [fetchmail]mail with incorrect header end is lost, Julian Ladisch <=