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 [10.7.7.5] (unknown [182.253.183.71]) by gnuweeb.org (Postfix) with ESMTPSA id AAE55804D1; Wed, 19 Oct 2022 18:11:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666203080; bh=lSjINYYzNiJ9ZOxK4PKpKI8HUpzgd2batXY1kfuvjR4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=IK7ewK8Q0mVYoBLAOen+x8HrtQVmxeGpTUs6AWBBHcLX5/V5o00kAFYWf7xOh2Yas A/ZX6qGG2cRpg+N9y4u1hfpTBg/wy9a5yFbG+TjZNG0q8tWLPTPiTZoBmzV8FnqjG2 0tQnMdEHnhf4ql846hzRYu7yBx00fSI737TefNFkuRKT+qY4twZdFXgBe8sMrLbWIY eP6o8xqRp0qE8tB6JJqWqvveVHBjvFTCeVxKbDihCkpQmWneGf21yKd7AXHneJXGJz IqUBtAJGgxIqzMT/q4y/Lqw3O+rJ/at4wioUqzdCmahYRsWuWSl7VucsSSG7RZcxKS lsxBnkVLNkdcg== Message-ID: Date: Thu, 20 Oct 2022 01:11:15 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v1 4/7] atom: Improve fix_utf8_char() Content-Language: en-US To: Muhammad Rizki Cc: Alviro Iskandar Setiawan , 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: Ammar Faizi In-Reply-To: <77f4a6d1-0eba-cf9c-4db7-36ebf96670c4@gnuweeb.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: 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". -- Ammar Faizi