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=-1.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 autolearn=ham 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 DDD66804D1; Thu, 20 Oct 2022 04:26:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666239964; bh=4LV+FywdX5u8gPI6NwWmAo4/ljPOYIA+zPs6NRycjv0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qPZrIRHyhzYtKOuUgai3OtaXmUSo43N2DxhZotJgcvNC1nTT06oUZBUHiqLPkny36 y0WHLR4pi3pRizBdI4fkHlqNKLV0UsL/vRWtvQeqC+nJjvXNFnomC2PaNuS+3gW7id sSPZZgqaraC3DzupTV0UwRrJvtyNbuS7M30cybIEeB1nTLxKM2NIsiMhdfcBWMYI1T uvR9JH/UaDWCyM2in8vQqfZx80cl9HKugGtwOts/qQZ1f082LlsQ5pNON2A5sxrpM3 L3AceEtdOBWtREF/8Z1OmorNvJLOx++yRNfM45ddKHkGXDB7CslkQFXB0BNiHd+7fz +gtxNwZMkn/6A== Message-ID: Date: Thu, 20 Oct 2022 11:26:00 +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 v1 4/7] atom: Improve fix_utf8_char() Content-Language: en-US To: Alviro Iskandar Setiawan , Ammar Faizi Cc: GNU/Weeb Mailing List References: <20221018081635.1617-1-kiizuha@gnuweeb.org> <20221018081635.1617-5-kiizuha@gnuweeb.org> <14303851-8483-0737-8edc-649ee121f0ee@gnuweeb.org> <785390ce-e3ed-f1eb-dec6-a383563d139b@gnuweeb.org> <76df4a7f-dafc-c167-3b86-ae9dd6d0a233@gnuweeb.org> <31408c83-e9d3-3fcb-c109-b4b93df104d8@gnuweeb.org> <367d8f78-29a0-1e00-8019-c383c0a49d11@gnuweeb.org> <77f4a6d1-0eba-cf9c-4db7-36ebf96670c4@gnuweeb.org> From: Muhammad Rizki In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 20/10/2022 05.34, Alviro Iskandar Setiawan wrote: > On Thu, Oct 20, 2022 at 1:11 AM Ammar Faizi wrote: >> On 10/20/22 12:55 AM, Muhammad Rizki wrote: >>> So, I just misunderstood here. But, the email payload extracting an HTML tags when send to Discord, not an empty email. >> >> See: >> >> https://lore.kernel.org/all/CAOnxWcsdyTkY+nDGz0ca-SP7cxjx8z1YSXxEwEwYsf-2FeAouQ@mail.gmail.com/ >> >> That email is literally empty. >> >> I know what happened. Let me explain. >> >> When you send an *HTML* email from gmail, gmail generates two types of >> email, which it does by default when you don't explicitly ask to send >> a plain text email. >> >> The first one with "text/plain", and the second one with "text/html". >> Both are sent in one email with: >> >> "Content-Type: multipart/alternative;" >> >> Those two are sent as an attachment. Both attachments have the same >> content, but the "text/html" one is formatted as HTML. >> >> When that happens, you only take the "text/plain". > > weird that lore accepts an HTML email, but that's already set in stone > > -- Viro Wait, so we shouldn't have receive an HTML email? I could just use if statement here.