From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac To: Ricardo Wurmus Cc: guile-email@systemreboot.net Subject: Re: [guile-email] parse-email-headers returns just =?utf-8?B?4oCc?= =?utf-8?B?ZmllbGRz4oCd?= In-Reply-To: <875zdqlnfs.fsf@elephly.net> References: <87k129kowf.fsf@elephly.net> <875zdqlnfs.fsf@elephly.net> Date: Thu, 23 Apr 2020 17:01:50 +0530 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: --=-=-= Content-Type: text/plain > Hmm, I still get this error when the first line of an email to be > parsed is something like > > From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 22 11:26:37 2020 Did the parse-email snippet I sent in my previous mail work on the attached mbox you sent earlier? Could you send me any other mboxes you are having trouble with? I'm unable to reproduce your problem, and having a copy of the problematic mboxes would help very much. > (parse-email > (and=> (call-with-input-string contents mbox->emails) first)) Also, it isn't a good idea to handle emails or mboxes as strings (the `contents' variable). They should be handled as bytevectors. Perhaps it doesn't matter here, but just saying. And, just out of curiosity, if there's no sensitive information in it, could you share a copy of a debbugs log file? Thank you! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl6hfKwACgkQLiXui2GA K7NiFwgAom6QJqv3vHFVbluabMhsR+/Viar3YPabolnjNyV/oCCKeQ4QNMMH6iho VEOlouhmrmjYy6mgjADT2LleXxu0i3/2YsUf4q+t3SMy/kg40ZRRnFoqnj7gdJO6 r6NBGG/AcPMd2zM5RefQ3W8jTp603Xruv4wEninCdYJeTSfTUSknH2vnMrfAvfji ONvj3S09lJJ8ViLbSNXw/nkrOaTzHocJZm7EuHhiK6jpZSsZUsz2AZkpH04qa/ND exZokZCJp5opz8CGvMppf6WucQnPF11O9MXILQ28WVQXqSF/TaldA/0TJncodB9F 7VqTDv15eaC+0LKZdreHduQ+AHX3Iw== =EiI7 -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.systemreboot.net (mugam.systemreboot.net [139.59.75.54]) by localhost (mpop-1.4.7) with POP3 for ; Thu, 23 Apr 2020 21:09:33 +0530 Return-path: Envelope-to: arunisaac@systemreboot.net Delivery-date: Thu, 23 Apr 2020 17:01:59 +0530 Received: from localhost.localdomain ([127.0.0.1] helo=[192.168.2.12]) by systemreboot.net with esmtp (Exim 4.93) (envelope-from ) id 1jRa5H-0002Yk-R2 for arunisaac@systemreboot.net; Thu, 23 Apr 2020 17:01:59 +0530 Received: from [192.168.2.1] (helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jRa5E-0002YZ-GR; Thu, 23 Apr 2020 17:01:56 +0530 From: Arun Isaac To: Ricardo Wurmus In-Reply-To: <875zdqlnfs.fsf@elephly.net> References: <87k129kowf.fsf@elephly.net> <875zdqlnfs.fsf@elephly.net> Date: Thu, 23 Apr 2020 17:01:50 +0530 Message-ID: MIME-Version: 1.0 Subject: Re: [guile-email] =?utf-8?q?parse-email-headers_returns_just_?= =?utf-8?b?4oCcZmllbGRz4oCd?= X-BeenThere: guile-email@systemreboot.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: guile-email discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guile-email@systemreboot.net Content-Type: multipart/mixed; boundary="===============5744780649060564705==" Errors-To: guile-email-bounces@systemreboot.net Message-ID: <20200423113150.jC9tZDOO_z8_DWiDAPbItN1fDW_41ue4UV5yz6mttcU@z> --===============5744780649060564705== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain > Hmm, I still get this error when the first line of an email to be > parsed is something like > > From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 22 11:26:37 2020 Did the parse-email snippet I sent in my previous mail work on the attached mbox you sent earlier? Could you send me any other mboxes you are having trouble with? I'm unable to reproduce your problem, and having a copy of the problematic mboxes would help very much. > (parse-email > (and=> (call-with-input-string contents mbox->emails) first)) Also, it isn't a good idea to handle emails or mboxes as strings (the `contents' variable). They should be handled as bytevectors. Perhaps it doesn't matter here, but just saying. And, just out of curiosity, if there's no sensitive information in it, could you share a copy of a debbugs log file? Thank you! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl6hfKYACgkQLiXui2GA K7Ni2Af/QUXlZgElamWQO7Oh1z8trl2tpPDqZSNJQpBZaqu+BkDw4VZsE9BMd340 MF377jkxiUEOegDw5tCay5CzaDCUc9otpXci+27empYbxbGICM6zvg8+n9wQ450W kh5j02EHZFIQhkeMTugC9Z9c/aB0cW2fxossz3VQ9Nii6RXxzBvqmRhf375fv8z/ H+h9cO3JByziaJUxb6kcVgvMyqpcJkUOu1igDWv6kkpFltKKCwhxcPCHNX3v/fau tIbiUP+b4GfeJ5grmWkttYHgPc0Bz6ansG18fqgkpfC7ookxETTCZ29bG5NJ3whZ KkSEA2xJAOTxVEnmaFJy23LQ53PGqg== =V8yP -----END PGP SIGNATURE----- --=-=-=-- --===============5744780649060564705== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- guile-email mailing list guile-email@systemreboot.net https://lists.systemreboot.net/listinfo/guile-email --===============5744780649060564705==--