I do think I see the bug here. It looks for the first \r\n, which
normally would be a different header. Looks like there is the need for
some more intelligence. Thank you for the report; I will think about
this some more yet.
Jö Fahlke wrote:
> Am Fri, 23. May 2008, 09:37:30 -0500 schrieb John Goerzen:
>> Could you please:
>>
>> 1) Test this with 6.0.0
>
> Upgraded to 6.0.0 on both machines.
>
>> 2) Run it under -1 -d imap
>>
>> 3) Send me the snippet of the log that contains the APPEND command where
>> it uploads the message to the server
>
> ======================================================================
> OfflineIMAP 6.0.0
> Copyright (C) 2002 - 2008 John Goerzen <[EMAIL PROTECTED]>
> This software comes with ABSOLUTELY NO WARRANTY; see the file
> COPYING for details. This is free software, and you are welcome
> to distribute it under the conditions laid out in COPYING.
> Now debugging for imap: IMAP protocol debugging
> ***** Processing account [EMAIL PROTECTED]
> [...]
> DEBUG[imap]: 51:03.93 < NKGP555 OK [READ-WRITE] Ok
> DEBUG[imap]: 51:03.93 matched r'(?P<tag>NKGP\d+) (?P<type>[A-Z]+)
> (?P<data>.*)' => ('NKGP555', 'OK', '[READ-WRITE] Ok')
> DEBUG[imap]: 51:03.93 matched r'\[(?P<type>[A-Z-]+)(
> (?P<data>[^\]]*))?\]' => ('READ-WRITE', None, None)
> DEBUG[imap]: 51:03.93 untagged_responses[READ-WRITE] 0 += [""]
> DEBUG[imap]: savemessage: using date "23-May-2008 16:50:24 +0200"
> DEBUG[imap]: savemessage: initial content is: 'Received: by paranoia (fdm
> 1.5, account "stdin");\r\n\tFri, 23 May 2008 16:50:24 +0200\r\nReceived: from
> joe by paranoia with local (Exim 4.69)\r\n\t(envelope-from <[EMAIL
> PROTECTED]>)\r\n\tid 1JzYbA-0000K4-Ot\r\n\tfor [EMAIL PROTECTED]; Fri, 23 May
> 2008 16:50:24 +0200\r\nDate: Fri, 23 May 2008 16:50:24 +0200\r\nFrom:
> =?iso-8859-1?Q?J=F6?= Fahlke <[EMAIL PROTECTED]>\r\nTo: [EMAIL PROTECTED]:
> test\r\nMessage-ID: <[EMAIL PROTECTED]>\r\nMIME-Version: 1.0\r\nContent-Type:
> text/plain; charset=iso-8859-1\r\nContent-Disposition:
> inline\r\nContent-Transfer-Encoding: quoted-printable\r\nUser-Agent:
> Mutt/1.5.17+20080114 (2008-01-14)\r\n\r\n\r\n--=20\r\nDas Erststudium soll
> bis zum berufsqualifizierenden Abschluss\r\ngeb=FChrenfrei bleiben, also bis
> zur Erlangung der Taxi-Lizenz.\r\n-- Akr=FCtzel, Ausgabe vom 16.5.2002
> (www.akruetzel.de)\r\n\r\n'
> DEBUG[imap]: savemessage: new headers are:
> X-OfflineIMAP-x492786201-58656e65726973-494e424f58:
> 1211554263-00656035023587-v6.0.0
> DEBUG[imap]: savemessage_addheader: called to add
> X-OfflineIMAP-x492786201-58656e65726973-494e424f58:
> 1211554263-00656035023587-v6.0.0
> DEBUG[imap]: savemessage_addheader: insertionpoint = 49
> DEBUG[imap]: savemessage_addheader: leader = 'Received: by paranoia (fdm 1.5,
> account "stdin");'
> DEBUG[imap]: savemessage_addheader: newline =
> '\r\nX-OfflineIMAP-x492786201-58656e65726973-494e424f58:
> 1211554263-00656035023587-v6.0.0'
> DEBUG[imap]: savemessage_addheader: trailer = '\r\n\tFri, 23 May 2008
> 16:50:24 +0200\r\nReceived: from joe by paranoia with local (Exim
> 4.69)\r\n\t(envelope-from <[EMAIL PROTECTED]>)\r\n\tid
> 1JzYbA-0000K4-Ot\r\n\tfor [EMAIL PROTECTED]; Fri, 23 May 2008 16:50:24
> +0200\r\nDate: Fri, 23 May 2008 16:50:24 +0200\r\nFrom: =?iso-8859-1?Q?J=F6?=
> Fahlke <[EMAIL PROTECTED]>\r\nTo: [EMAIL PROTECTED]: test\r\nMessage-ID:
> <[EMAIL PROTECTED]>\r\nMIME-Version: 1.0\r\nContent-Type: text/plain;
> charset=iso-8859-1\r\nContent-Disposition:
> inline\r\nContent-Transfer-Encoding: quoted-printable\r\nUser-Agent:
> Mutt/1.5.17+20080114 (2008-01-14)\r\n\r\n\r\n--=20\r\nDas Erststudium soll
> bis zum berufsqualifizierenden Abschluss\r\ngeb=FChrenfrei bleiben, also bis
> zur Erlangung der Taxi-Lizenz.\r\n-- Akr=FCtzel, Ausgabe vom 16.5.2002
> (www.akruetzel.de)\r\n\r\n'
> DEBUG[imap]: savemessage: new content is: 'Received: by paranoia (fdm 1.5,
> account "stdin");\r\nX-OfflineIMAP-x492786201-58656e65726973-494e424f58:
> 1211554263-00656035023587-v6.0.0\r\n\tFri, 23 May 2008 16:50:24
> +0200\r\nReceived: from joe by paranoia with local (Exim
> 4.69)\r\n\t(envelope-from <[EMAIL PROTECTED]>)\r\n\tid
> 1JzYbA-0000K4-Ot\r\n\tfor [EMAIL PROTECTED]; Fri, 23 May 2008 16:50:24
> +0200\r\nDate: Fri, 23 May 2008 16:50:24 +0200\r\nFrom: =?iso-8859-1?Q?J=F6?=
> Fahlke <[EMAIL PROTECTED]>\r\nTo: [EMAIL PROTECTED]: test\r\nMessage-ID:
> <[EMAIL PROTECTED]>\r\nMIME-Version: 1.0\r\nContent-Type: text/plain;
> charset=iso-8859-1\r\nContent-Disposition:
> inline\r\nContent-Transfer-Encoding: quoted-printable\r\nUser-Agent:
> Mutt/1.5.17+20080114 (2008-01-14)\r\n\r\n\r\n--=20\r\nDas Erststudium soll
> bis zum berufsqualifizierenden Abschluss\r\ngeb=FChrenfrei bleiben, also bis
> zur Erlangung der Taxi-Lizenz.\r\n-- Akr=FCtzel, Ausgabe vom 16.5.2002
> (www.akruetzel.de)\r\n\
r\n'
> DEBUG[imap]: savemessage: new content length is 896
> DEBUG[imap]: 51:03.93 > NKGP556 APPEND INBOX () "23-May-2008 16:50:24
> +0200" {896}
> DEBUG[imap]: 51:03.94 < + OK
> DEBUG[imap]: 51:03.94 matched r'\+( (?P<data>.*))?' => (' OK', 'OK')
> DEBUG[imap]: 51:03.94 write literal size 896
> DEBUG[imap]: 51:03.96 < NKGP556 OK [APPENDUID 1211471538 206] APPEND Ok.
> DEBUG[imap]: 51:03.96 matched r'(?P<tag>NKGP\d+) (?P<type>[A-Z]+)
> (?P<data>.*)' => ('NKGP556', 'OK', '[APPENDUID 1211471538 206] APPEND Ok.')
> DEBUG[imap]: 51:03.96 matched r'\[(?P<type>[A-Z-]+)(
> (?P<data>[^\]]*))?\]' => ('APPENDUID', ' 1211471538 206', '1211471538 206')
> [...]
> ======================================================================
>
> The message itself goes (on the uploading machine)
> ======================================================================
> Received: by paranoia (fdm 1.5, account "stdin");
> Fri, 23 May 2008 16:50:24 +0200
> Received: from joe by paranoia with local (Exim 4.69)
> (envelope-from <[EMAIL PROTECTED]>)
> id 1JzYbA-0000K4-Ot
> for [EMAIL PROTECTED]; Fri, 23 May 2008 16:50:24 +0200
> Date: Fri, 23 May 2008 16:50:24 +0200
> From: =?iso-8859-1?Q?J=F6?= Fahlke <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: test
> Message-ID: <[EMAIL PROTECTED]>
> MIME-Version: 1.0
> Content-Type: text/plain; charset=iso-8859-1
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
> User-Agent: Mutt/1.5.17+20080114 (2008-01-14)
>
>
> --=20
> Das Erststudium soll bis zum berufsqualifizierenden Abschluss
> geb=FChrenfrei bleiben, also bis zur Erlangung der Taxi-Lizenz.
> -- Akr=FCtzel, Ausgabe vom 16.5.2002 (www.akruetzel.de)
>
> ======================================================================
>
> Thanks,
> Jö.
>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]