From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INVALID_MSGID, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: from mx2.math.uh.edu (mx2.math.uh.edu [129.7.128.33]) by inbox.vuxu.org (Postfix) with ESMTP id D334128988 for ; Thu, 7 Mar 2024 03:48:54 +0100 (CET) Received: from lists1.math.uh.edu ([129.7.128.208]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1ri3oS-000000076mM-0MLa for ml@inbox.vuxu.org; Wed, 06 Mar 2024 20:48:52 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.97.1) (envelope-from ) id 1ri3oR-00000001aki-3T2d for ml@inbox.vuxu.org; Wed, 06 Mar 2024 20:48:51 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.97.1) (envelope-from ) id 1ri3oP-00000001akc-2JPK for ding@lists.math.uh.edu; Wed, 06 Mar 2024 20:48:50 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1ri3oL-0000000AUMx-0neI for ding@lists.math.uh.edu; Wed, 06 Mar 2024 20:48:49 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=F8RmwnQju8RyUxZaRyJ3D+7kz8UqaOgaFF9Ub4ZJe9I=; b=tFAfKo48UEAv9md3VdKgntYASm i+qq1tGfKfRqkTuXro/JjQjf4Ukx5keDRwOKA5Y3sIDm0mH8J+GMLfpX+4osr7sJYZV56r5BSPXga iZil52B0DoWHqe/Fy+rq9LLQF+qfee8XoqvTMF7w6Ocs+Ni57QDblz2KAaw9HBJCa8R4=; Received: from wfout8-smtp.messagingengine.com ([64.147.123.151]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ri3oB-00063K-9b for ding@gnus.org; Thu, 07 Mar 2024 03:48:40 +0100 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.west.internal (Postfix) with ESMTP id BB8841C0008A for ; Wed, 6 Mar 2024 21:48:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 06 Mar 2024 21:48:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alshehhi.io; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1709779707; x=1709866107; bh=F8RmwnQju8RyUxZaRyJ3D+7kz8UqaOga FF9Ub4ZJe9I=; b=GCy1kgUc33NQiQXu9kWsIssvgHAAP7BAD70qqQN5852cG5xe M5fWHFOLMblMsO1rUNdF770GaLrJHQMoBRbeOvfQYusIf0vWeBJGNKBKF6ZiHaUd s3fFUZJp1o7EG8mVYI3RGBOqKTdP2brMKyIpPQ2pdLwrvU5Qu+gKxcPCx0jar9hl W47q9XIum7iOGY7L1uOOJyPuu/5lYAjgw3qCzLoZiNNBVHXZpof7JA7rnI6mAAQb AlC4S9ycwLL6iyGhmU5mWx7sWwgBFPp8Zn3lq7HBCzVzJZnb2gM8iDmrj/RhPWMO QkXf1Pf97yDs4mZyIzWSVFvT2Xixq6zH1FKf6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1709779707; x=1709866107; bh=F8RmwnQju8RyUxZaRyJ3D+7kz8UqaOgaFF9 Ub4ZJe9I=; b=UTsRxOrGZ3zkabAejlibUQANSO8Gyf+3c6Fb5rEC0QyN5S3lsRj n0zd5PDU3PrBJxmmc6cE0YlyTZvDwYRKABMhvRwT0zMY0+qo9RIGzw/LPasDgCeV WbcUh1bfbuoEw6sZxsGngOjQJMJRWqpk3hn/u2u07WXl4GWYemPu88RbOrOFckSB jFWwNsiMGcqraeFih23Cv2sw1088qwa3tBAwd3qlNyQUtJ5rFSOjCJCDyrv7xO24 bHeHzU6FGPaEfBpSjPy+CU51mNYhCpizBd+8L2790IViN+tN51rc9EmiJdW7Epya kJlvrBZZII0lCt1IFYh/1TOyci6tvMVlU5g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledriedvgdehtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddttd enucfhrhhomhepjfhushgrihhnucetlhhshhgvhhhhihcuoehhuhhsrghinhesrghlshhh vghhhhhirdhioheqnecuggftrfgrthhtvghrnhepudeiffejhfekuedtveffgfeiheduhe fgfeejjedutddtkeegveejvdejveeljeeunecuffhomhgrihhnpehgnhhurdhorhhgnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhushgrih hnsegrlhhshhgvhhhhihdrihho X-ME-Proxy: Feedback-ID: ic2a949cb:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 6 Mar 2024 21:48:26 -0500 (EST) From: Husain Alshehhi To: ding@gnus.org Subject: Advanced Scoring Syntax with "To" and "Cc" Headers Date: Wed, 06 Mar 2024 20:48:25 -0600 Message-ID: <877ciesqo6.fsf@> MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk >From the documentation[1], one can configure complex rules through and, or, not operators. The documentation also states that match operators are "header name strings followed by a match and a match type". The documentation also provides examples[2]. However, all the docs and the examples provide the simple "from", "body", "subject", "line" match operators. I am unable to create rules that use "header" or "extra" operators. Ultimately, I want to setup a rule that scores an message based on the (1) "from" header AND "to" header, (2) "from" header AND "cc" header, (3) "from" header AND an arbitrary header. gnus errors out when parsing the following rules: --8<---------------cut here---------------start------------->8--- ((& ("from" "example@domain.com") ("to" "example@domain.com")) 10) ((& ("from" "example@domain.com") ("header" "example@domain.com" "To")) 10) ((& ("from" "example@domain.com") ("header" "example@domain.com" s "To")) 10) ((& ("from" "example@domain.com") ("extra" "To: .*example@domain.com")) 10) --8<---------------cut here---------------end--------------->8--- Any help is appreciated. Thanks. [1] https://www.gnu.org/software/emacs/manual/html_node/gnus/Advanced-Scoring-Syntax.html [2] https://www.gnu.org/software/emacs/manual/html_node/gnus/Advanced-Scoring-Examples.html