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,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by gnuweeb.org (Postfix) with ESMTPSA id 05F3C7E257 for ; Wed, 19 Oct 2022 22:34:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666218866; bh=zUZX7gDg+z0BJI7OnI0M9chWC5bjOIe1ZDBjbqeGt1w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jsNISJ4uDQAAsk/xb/2KbbRJRHlog6+PI3BHeyRFIgKRshHOYCOdFT9p2cT6JLg7p 7qk+oi2GEOfDlOe0jOdD3nkwG5KB0D4kv/ttGbgI+Uwq5pcNPg/Yep8r4cgspdVII9 KQZGyXyWiH9Ar31EgU7acWecaZNqS/vGHtWyaHiuPGrou/ePo1TkttLB4fTKgENQln kAhLq1xAxPijc5FjBhGr1fsviGnHIFmDBsq7Uci0j6z9n3l5y2+2mEk6b6CLqh1fpO 2cpHR5yKeU11nyp5jcsgaHkUQmpfrPRHjfslM4kU6/BoEEX3s9Sz6gYZpStTuqmvQg ebeIMZw9IFd+g== Received: by mail-lf1-f43.google.com with SMTP id j4so30583374lfk.0 for ; Wed, 19 Oct 2022 15:34:25 -0700 (PDT) X-Gm-Message-State: ACrzQf2sNn+68V/f5kyAQln7qeQPwypAG512232kXu+DIspLAV89RBLR 58Rn+oFXFrCnJGCCRvxuyH0Z/bZSwbwvSU7P5Uo= X-Google-Smtp-Source: AMsMyM74G3VFBDej5Lko3S94xHVVb+h0FlJnBhxVAbMjbbXUAtLVXlvQ4GU4JuauddBljULIoI61udkgqxntimiYPyQ= X-Received: by 2002:ac2:5551:0:b0:4a2:4014:aeb8 with SMTP id l17-20020ac25551000000b004a24014aeb8mr3422675lfk.655.1666218864061; Wed, 19 Oct 2022 15:34:24 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Alviro Iskandar Setiawan Date: Thu, 20 Oct 2022 05:34:12 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 4/7] atom: Improve fix_utf8_char() To: Ammar Faizi Cc: Muhammad Rizki , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" List-Id: 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