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-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) by gnuweeb.org (Postfix) with ESMTPSA id 030F47E6B9 for ; Sun, 6 Mar 2022 11:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1646564948; bh=vZD8ehYPryRTmxcz1GNZXF9H+8yVFxuyBzNH+5mN8so=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nJN4EQsGUPR/yQv0hHRPHIsNZ7XNVUmHlr8lfVjN3eMZXxwnRcOm5jm3Z3//eDgc6 ttSz0rqz1hdqtwWBEv9RyPzhgWl4qfUr0ysIJDJj/Z1dpChJQxzxs38xEhgdYIoWBJ wK09QbI9WwXib3jfgMOSmi5AndO5wncDqMVuYYMMsXrlb8iwalXzVD79wzbGVS0rBa 8LnAwMa8i8WYJK6ll+GomWl+rCs1+ui8kYRMc93ePw7prC5AmCln3odOlpd2Sr60hV ZG5fnRFpqYlqkW1nO6Fsa/Ynd35YcDeoAxY0JesOHQLBlqO7cCpc0UQTHidN7gX9Ql GZ4IPDlL0zoMQ== Received: by mail-lj1-f171.google.com with SMTP id q5so1982253ljb.11 for ; Sun, 06 Mar 2022 03:09:07 -0800 (PST) X-Gm-Message-State: AOAM531aFqvdN942xZHxSIC1pO7oM6gzrSCuhDYNgggcB1MTNWvVSVH3 ICB1VMeHtrujSUVHLMjhJCb37ZkwYOdJ26nXX4c= X-Google-Smtp-Source: ABdhPJxDINWWjpqPOgpseNx2bLBl1PGDYzEFy7XKPjJ5/XW8Tvrxbx4ReIHsqt/CGKpwXb+gCH2W7nphL4yG1akePJQ= X-Received: by 2002:a05:651c:50d:b0:247:d703:fd9a with SMTP id o13-20020a05651c050d00b00247d703fd9amr4274819ljp.109.1646564945575; Sun, 06 Mar 2022 03:09:05 -0800 (PST) MIME-Version: 1.0 References: <9b92db3f-499a-3bd5-baac-b66495cf44c5@gnuweeb.org> In-Reply-To: <9b92db3f-499a-3bd5-baac-b66495cf44c5@gnuweeb.org> From: Alviro Iskandar Setiawan Date: Sun, 6 Mar 2022 18:08:53 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: test debug To: Ammar Faizi Cc: "GNU/Weeb Mailing List" , Alviro Iskandar Setiawan Content-Type: text/plain; charset="UTF-8" List-Id: On Sun, Mar 6, 2022 at 6:04 PM Ammar Faizi wrote: > On 3/6/22 6:03 PM, Alviro Iskandar Setiawan wrote: > > test again > > Got your email! > I think this regex is wrong sir, if the message-id is located at the end of the header, we will not have double LF, because it's already split by the explode. if (!preg_match("/(?:^|\\n)message-id:\s+?(.+?)(?:\\n\S+\:|\\n\\n)/si", $hdr, $m)) { $err = "Cannot get the \"message-id\" line"; goto out; } maybe we should use this: "/(?:^|\\n)message-id:\s+?(.+?)(?:\\n\S+\:|$)/si" -- Viro