From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9396 invoked from network); 2 Dec 2021 16:08:28 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 2 Dec 2021 16:08:28 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1msodG-00Etfy-5w for ml@inbox.vuxu.org; Thu, 02 Dec 2021 10:08:26 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1msodF-001JpF-Mh for ml@inbox.vuxu.org; Thu, 02 Dec 2021 10:08:25 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1msodD-001Jp6-Cq for ding@lists.math.uh.edu; Thu, 02 Dec 2021 10:08:23 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1msodB-006TQI-6G for ding@lists.math.uh.edu; Thu, 02 Dec 2021 10:08:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To: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:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iutTzjNi+P/ZLxvEZk4LYDLmIVk2dD8WNjETPA/sE1w=; b=D+l0WdZC0DmeN5PCX4ZeapwWvw fIOZTkSudu3B/mx+vLyZTgy/UxG19xkM2R7mlwpJfH/CA38cDRWadSAluN6ZFN+s5VHpyMm+hivs/ LUYFDVfewsEU0KYdwOFsq8CCth+Wlj+ZlJpyLZtAcyVTtLfxCpYNGTTsVJgYd9vXCNnc=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msod3-0002XF-84 for ding@gnus.org; Thu, 02 Dec 2021 17:08:16 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1msod1-0008BU-1a for ding@gnus.org; Thu, 02 Dec 2021 17:08:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: "Jose A. Ortega Ruiz" Subject: Re: githubs notifications (different authors) and the froms in the summary buffer are a bit confusing Date: Thu, 02 Dec 2021 16:05:23 +0000 Message-ID: <87pmqfat6k.fsf@gnus.jao.io> References: <87zgpjsbco.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:T2K/dHW4qaCeq5WDi3GFI6qPJgM= X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: List-ID: Precedence: bulk On Thu, Dec 02 2021, Uwe Brauer wrote: [...] > So it seems that %U is the culprit here. That however seems difficult to > Any idea how to do that? A way is to define your own format function. For instance, i have this function to display the from address with anything matching the regexp jao-gnus--news-rx removed: (defun gnus-user-format-function-f (headers) (let* ((from (gnus-header-from headers)) (from (gnus-summary-extract-address-component from))) (replace-regexp-in-string jao-gnus--news-rx "" from))) the `-f' at the end or the name matters, it's the code to use in the line format: "... %uf ..." stands for "user-defined function f" hope this helps, jao -- "We must do something. This is something. Therefore, we must do this." - Antony Jay and Jonathan Lynn, "Yes Minister"