From mboxrd@z Thu Jan 1 00:00:00 1970 X-Greylist: delayed 488 seconds by postgrey-1.37 at hurricane; Wed, 02 Sep 2020 15:56:04 PDT Received: from resqmta-ch2-11v.sys.comcast.net (resqmta-ch2-11v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:43]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 8BE3077C3E for ; Wed, 2 Sep 2020 15:56:04 -0700 (PDT) Received: from resomta-ch2-11v.sys.comcast.net ([69.252.207.107]) by resqmta-ch2-11v.sys.comcast.net with ESMTP id DZzdkfiPIJJRkDbXnkr7MM; Wed, 02 Sep 2020 22:47:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1599086875; bh=YvK5dDoXea9x1Xx2Q42uejqxnAeAf+gqqbkPDJphfkk=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=R+xuj8GgIDBrxPzy8QG23JVAFmcKUTu5dHt6ftTRJvEeGhoTaIC5HHJPiOolks0rC mylZt7uSBf/DBRHgHuXmt7L4h5O+w1998cr/bGPcOmMnkI8wVZJk3x35DFwj8XyeTt 8HVEoPOqdPVqD8VdIqna9xJ8QpgP3FYwWpPJ8Yiu4BzcySe0q+Kl2VuUie0sFWbmuE JOcI0ywZH8niew/oRyB4I8oCTuJjgLSVx4iYJzGaf6P1GfFKrNlCw8srH/yxMUKfEP vkWwMEuYo66IULDuxRxnv8J9pJUZAw9TPOL9eEdP5VICfmdOAr0Iq+V99GRbUVYYLr gSn2NNiH+2oRA== Received: from unknown ([IPv6:2601:408:c300:a3d0::794e]) by resomta-ch2-11v.sys.comcast.net with ESMTPSA id DbXkkJCGzP7sUDbXlkpGjn; Wed, 02 Sep 2020 22:47:54 +0000 X-Xfinity-VMeta: sc=0.00;st=legit To:edbrowse-dev@edbrowse.org From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.7.6 Subject: [edbrowse-dev] imap and curl Date: Wed, 02 Sep 2020 18:47:52 -0400 Message-ID: <20200802184752.eklhad@comcast.net> X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-716522 Content-Transfer-Encoding: 7bit This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --nextpart-eb-716522 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable This is for you curl experts, or anyone who wants to debug something. Though I kinda think it's a curl bug. If so we should report it. I've only seen this on imap, and only comcast imap, because the envelope is sometimes spread across two lines. gmail never does that. curl is suppose to call our callback function with each chunk of data, = and we put those chunks together, and there is your web page or mail message or envelope or whatever it = is. All good, but curl only calls our callback function on the first line = of the envelope and not the second. Here is part of a run with db4. The verbose gives us all the curl traffic in and out. You'll see both lines there, but, I have a debug print on the length of = data in the callback function, and you'll see the length of the first line and not the second. Here's an envelope on one line, as most of them are. curl> A015 FETCH 4 ALL curl< * 4 FETCH (FLAGS ($HasNoAttachment) INTERNALDATE "01-Sep-2020 22:08:38 = +0000" RFC822.SIZE 23730 ENVELOPE ("1 Sep 2020 22:00:31 +0000" "Wendy, = I hope you're ready..." (("Publishers Clearing House" NIL = "PublishersClearingHouse" "e.superprize.pch.com")) (("Publishers = Clearing House" NIL "PublishersClearingHouse" "e.superprize.pch.com")) = (("Publishers Clearing House" NIL "PublishersClearingHouse" = "e.superprize.pch.com")) (("Wendy Dahlke" NIL "kwnre" "comcast.net")) = NIL NIL NIL = "<543.22827028370.202009012200313999957.0062470136@e.superprize.pch.com>= ")) callback 555 A015 OK Fetch completed (0.001 + 0.000 secs). Here's an envelope across two lines, with just one callback. curl> A016 FETCH 5 ALL curl< * 5 FETCH (FLAGS (\Seen $HasNoAttachment) INTERNALDATE "26-Aug-2020 = 21:14:43 +0000" RFC822.SIZE 41510 ENVELOPE ("26 Aug 2020 21:03:04 = +0000" {77} callback 147 =3D?utf-8?B?4p2XIE5vIGZ1cnRoZXIgYXR0ZW1wdHMgd2lsbCBiZSBtYWRl?=3D = =3D?utf-8?B?Li4u?=3D (("Publishers Clearing House" NIL = "PublishersClearingHouse" "e.superprize.pch.com")) (("Publishers = Clearing House" NIL "PublishersClearingHouse" "e.superprize.pch.com")) = (("Publishers Clearing House" NIL "PublishersClearingHouse" = "e.superprize.pch.com")) (("Wendy Dahlke" NIL "kwnre" "comcast.net")) = NIL NIL NIL = "<543.22761811853.202008262102597548748.0037250599@e.superprize.pch.com>= ")) A016 OK Fetch completed (0.001 + 0.000 secs). Without the second half of the envelope there is no subject, no from, = basically pretty useless. I literally have to read the email to know what the hell it is. Any help appreciated. Karl Dahlke --nextpart-eb-716522--