From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED,URI_FIREBASEAPP autolearn=no autolearn_force=no version=3.4.6 Received: from [192.168.1.2] (unknown [101.128.125.123]) by gnuweeb.org (Postfix) with ESMTPSA id EFCDF804D1; Fri, 21 Oct 2022 15:35:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666366536; bh=+jNw4KhaMbgKu9sCFpVdU5+n9HE0zaHRXcIxG8c/54s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=WKsLuKP/UFt7ruyGfll+OJfJeiHAfyIRiLYfFMTTYT0ktFlSwHZ0gh0JzhMqq1muM IeBk13WP6hE9Jf3w2fYK1GyfD4PfFRvVLG4glKJpZeFSIpQ6pAggkY270/pp/5G1hq e1bbvn1pWj6/jzJQzbLQHtDl8yjkBiTDNZwja/iVyYTKMGO0eeYe4kStBh5o7bN3jo yAlFY9nkJSBfdXUpY0WkxoLiYfEUBIqGcWXQqGRi/iCWN+47QIeoMpEaonkWDbZE5b bqiL5etoXMSoW+E649NPQoM10WNUpFaNF3CP26ADGQCBt2CpOW3hPAAu7Ug9M1jeDG a6bsbQ5xQI7GQ== Message-ID: <769ea5e8-2b28-ce92-451d-7ca43b9f3d43@gnuweeb.org> Date: Fri, 21 Oct 2022 22:35:30 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v3 8/9] enum: Add Platform enumeration Content-Language: en-US To: Ammar Faizi Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List References: <20221021134520.701-1-kiizuha@gnuweeb.org> <20221021134520.701-9-kiizuha@gnuweeb.org> <6fb1d238-de6a-325c-8d17-6801ae24c717@gnuweeb.org> <982b723b-5c22-cfe2-6fcf-d0584b8c142d@gnuweeb.org> <90fb2819-443d-2665-e42b-b069e7dbbaff@gnuweeb.org> <64f50068-72bc-6f53-17f5-54826bd7947f@gnuweeb.org> <77f5a9df-0268-0e54-262c-ab53cc9bb43d@gnuweeb.org> <2362bd76-fd02-13ab-760d-4d07c07aee69@gnuweeb.org> <85fd624a-f579-8a6a-92db-719aae815ddd@gnuweeb.org> From: Muhammad Rizki In-Reply-To: <85fd624a-f579-8a6a-92db-719aae815ddd@gnuweeb.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 21/10/2022 22.21, Ammar Faizi wrote: > On 10/21/22 10:12 PM, Muhammad Rizki wrote: >> It's from the enum library itself. You can see at >> https://docs.python.org/3/library/enum.html#using-a-descriptive-string > > OK, I leave the decision to you, feel free to use this fancy enum > library. With the function name change and review tag from Al picked > up, let's get the v4 applied. > > Thanks. > OK. But, I catched error just now. Traceback (most recent call last): File "D:\Riski\Coding\Github\lore-daemon\daemon\telegram\mailer\listener.py", line 50, in __run await self.__handle_atom_url(url) File "D:\Riski\Coding\Github\lore-daemon\daemon\telegram\mailer\listener.py", line 69, in __handle_atom_url await self.__handle_mail(url, mail) File "D:\Riski\Coding\Github\lore-daemon\daemon\telegram\mailer\listener.py", line 76, in __handle_mail should_wait = await self.__send_mail(url, mail, File "D:\Riski\Coding\Github\lore-daemon\daemon\telegram\mailer\listener.py", line 102, in __send_mail text, files, is_patch = utils.create_template(mail, Platform.TELEGRAM) File "D:\Riski\Coding\Github\lore-daemon\daemon\atom\utils.py", line 199, in create_template content, files = extract_body(thread, platform) File "D:\Riski\Coding\Github\lore-daemon\daemon\atom\utils.py", line 137, in extract_body p = get_decoded_payload(thread) File "D:\Riski\Coding\Github\lore-daemon\daemon\atom\utils.py", line 264, in get_decoded_payload return quopri.decodestring(p.encode()).decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 75: invalid start byte It's from the quoted-printable transfer encoding. See: https://bytetool.web.app/en/ascii/code/0xf6/ Can we just ignore it temporary or solve it now? It's hard to catch them again, I didn't catch the raw URL.