From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 10 11:18:23 2020 Received: (at submit) by debbugs.gnu.org; 10 Oct 2020 15:18:23 +0000 Received: from localhost ([127.0.0.1]:38298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRGdb-0000Z6-B4 for submit@debbugs.gnu.org; Sat, 10 Oct 2020 11:18:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:32870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRGdY-0000Yx-2f for submit@debbugs.gnu.org; Sat, 10 Oct 2020 11:18:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRGdX-0006fS-PU for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2020 11:18:19 -0400 Received: from mout.gmx.net ([212.227.17.21]:48255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRGdV-0006t4-Ek for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2020 11:18:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602343086; bh=d0ihofVisCYTlfrZQNJhwtwt5bag1vQfiX1y6j0gA7M=; h=X-UI-Sender-Class:From:To:Subject:Date; b=hls4wJ+Xu2ADYRpTxgdiYssGYyyr97CvTDHnv+v+g2n880lxUBO04SKzi5Khnq1Xo K5SaZUeBzxqrJqgUc50PImacKFjHFCVsB4qX8ml2d0TdD4WsTR1RfnNMgG0HEHITr0 OaRT2/msQwbslEzQEMDOiwp8Cm4gMShfR8xuOoaY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from X260 ([95.223.75.187]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1ML9uU-1kjLkS09TO-00I9sk for ; Sat, 10 Oct 2020 17:18:06 +0200 From: Rasmus To: bug-gnu-emacs@gnu.org Subject: 28.0.50; gnus-icalendar-identities bug X-Debbugs-Package: emacs,gnus Date: Sat, 10 Oct 2020 17:18:05 +0200 Message-ID: <87mu0uqfde.fsf@gmx.us> User-Agent: Emacs Gnus MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:ldmq2Am9Yo90uVxFhv6IsBFeNDPbstKKtzhbRu6Wu4lSVuzO74P szN7ovgJ8bzEXo0tOsYIdpRKoDqEQvmumJP7gFlvn8Vdp+xVBZWTWtz2NSn2UTgKlxL/NDl 1yTfEBhmEFTvYVR3NJwFhnQ6SSouUIvIckAQRGaMWmv01N7Zjmap7OWpvovEhRhCugmmsEl iGVHDKfl2e4ClvuO8ABsg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:j4qNdsTf7FQ=:g9v3Jd4xtxxuRB76Gddgpx gjpbxmnpPtvZoBHz5LI4yZL5JVASFrlgpr+p/CMcXecIgJ0zDu1D+oKWWex8SmmkFheor8Xzy bZbQ2Ga1SoeA78piJiTiBCfJv+T4tGl9aBPgMPmW60Z9wbxwDytcAPwF3U1kR6litkv1+yJCZ J5q7zz3rOx2H3KsSF9fNTNotD0iEJouQyKvUL+KxHHe8+01xzcAHiE+DfnCHOAu1PAmEEqAmy Us1gHsDMSkhWgXc4QJws7QQcXnzv0zCEF+j9TDlZG8XNJf917Yvya6tozrPyVpiEITlCSFBYn L3DfTFOx3mxTKI+Y1bvEPOISQJXA4vOFu2AHR7cDHbIa1csH5bYXHfy9dtx4UoTcQ5GnU+Dcd VB9YOvtZow4e2GYCv3wL7G3dxsvgboodREW2EcBKeGDfBWVu7g0WKHWHGtW3+eGF+jJiTxtmU yBrkdgYehXszOrp8V+rWccqup3MAfAw6rrmnab3eDSbrVJU+J6FmXb3+ma1T0RqA0VaueQcHU wqJOpX9M0rPEIXA02VBluAIkDpdkD9z+3oiBEfeHe3irLrXzd//FUZf6elUnlIhGorHj2KpuG iF1YgBfEs+FTqDSIPWO7Mg8+zRPsTquvFOvyOHyuOdWW/91NoYz8P+j6Pa0Ux2B3hRRgfXQIh PnGSz0sdb6C+RloK5Lgx6iiA9Xs+F38c9kZNq+cOORQxl6dcROTjfhLGavFYtWw+Oy1Y6EieB YJIIGOlHgFyU52NqydKvd0c87/Oq3c/3o9OC/wcTP+eYIjmSpAaofcBT1oeQWOV6qXoI4Vkz5 Tt5yZK+AwU+rQiD77pkpajHreYpjDHkoCTMU8pvdKivgZCRWCNXOZhMGw2WkS3zTSs86Rkb8H LiCJ3mo78XwbvE3F3EAvZAPPcXW9qbe/nDHfZVV8dwNULxMFof5jdxEaIcSzk0nb780wG3CD0 J3jojIg6pwj35bz91jA5TnxO8DrWD6jUEnM1VFSEpIrEbrP1wzmFqAjKHL+th/RQyanYYatj7 diRJ5c+2ZNh+UW0H26dTfDK+YYsfHYYtzmjPd0lJ6SGUdKkGwJeskWhqM1ZO3PeHKlgy5IMmN UEOp3nn+prko0oiTHzU2DIo22Tqg0070okF8KUKKnXAODfKNFVo5XZvG6L1xT6VRUAnsDTor/ f1FZChS0fmT1KL9Ux81mjTZf8TGEWZsJzmgnZ2N9ZB/LzN8jpQzf+RYNOdN5e4b0b6Go0k/b4 0FyefijD+0hd0EU5yHmp3sw11NJxeOy27t+VK7g== Received-SPF: pass client-ip=212.227.17.21; envelope-from=rasmus@gmx.us; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/10 11:18:06 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, =E2=80=98gnus-ignored-from-addresses=E2=80=99 can be a function, but this is not supported by =E2=80=98gnus-icalendar-identities=E2=80=99 (v= ia=20 =E2=80=98gnus-icalendar-event--find-attendee=E2=80=99). This means that rendering stops due to an error if an email with=20 an icalendar invitation is loaded when gnus-ignored-from-addresses=20 is a function.=20 I have attached a patch that fixes the bug for me. Maybe it should be split into two patches as it also changes how=20 =E2=80=98message-alternative-emails=E2=80=99 is handled (this too can be a= =20 function). Thanks in advance, Rasmus =20 In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version=20 3.24.23, cairo version 1.17.3)=20 of 2020-10-06 built on X260=20 Repository revision: d36cfa21b6b695862dae772a94c63ce3aca8467e=20 Repository branch: makepkg Windowing system distributor 'The X.Org=20 Foundation', version 11.0.12009000 System Description: Arch Linux=20 --=20 What will be next? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnus-icalendar.el-Fix-bug-in-gnus-icalendar-identiti.patch Content-Transfer-Encoding: quoted-printable =46rom 1e731ceaa0ca9156d281fca77251a19651b5aac0 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Thu, 1 Oct 2020 12:36:21 +0200 Subject: [PATCH] * gnus-icalendar.el: Fix bug in gnus-icalendar-identities `gnus-ignored-from-addresses' and `message-alternative-emails' may be functions. This is not supported by `gnus-icalendar-event--find-attendee'. =2D-- lisp/gnus/gnus-icalendar.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el index 7d4fa6c35c..d7e35c5587 100644 =2D-- a/lisp/gnus/gnus-icalendar.el +++ b/lisp/gnus/gnus-icalendar.el @@ -180,8 +180,10 @@ gnus-icalendar-event--find-attendee (or (member (attendee-name prop) name-or-email) (let ((att-email (attendee-email prop))) (gnus-icalendar-find-if - (lambda (email) - (string-match email att-email)) + (lambda (str-or-fun) + (if (functionp str-or-fun) + (funcall str-or-fun att-email) + (string-match str-or-fun att-email))) name-or-email)))))) (gnus-icalendar-find-if #'attendee-prop-matches-p event-props)))) @@ -763,9 +765,8 @@ gnus-icalendar-identities (lambda (x) (if (listp x) x (list x))) (list user-full-name (regexp-quote user-mail-address) ;; NOTE: these can be lists - gnus-ignored-from-addresses ; already regexp-quoted - (unless (functionp message-alternative-emails) ; String or function. - message-alternative-emails) + gnus-ignored-from-addresses ; String or function. + message-alternative-emails ; String or function. (mapcar #'regexp-quote gnus-icalendar-additional-identities))))) ;; TODO: make the template customizable =2D- 2.28.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 10 16:34:48 2020 Received: (at 43908) by debbugs.gnu.org; 10 Oct 2020 20:34:48 +0000 Received: from localhost ([127.0.0.1]:38683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRLZo-0008NK-62 for submit@debbugs.gnu.org; Sat, 10 Oct 2020 16:34:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRLZl-0008N2-BK for 43908@debbugs.gnu.org; Sat, 10 Oct 2020 16:34:46 -0400 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:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=duZkI5wAscUMbpeGpr18hcWinyVWGlgYoQ+CobB3vwI=; b=PzK2Da4+5mMimf7aAk1QLOxDzV beUuTyt+oxaYMUVdKEOjxI3TKpE4xDvWE3qgamjZSm1idJNRx24xjlYfT/lb7/32F2Pow/cKGbYW3 mRmy17TcCrLONZ84CRV3f5GoChJOF7/9GvDrG4/+Zm1T9QyCHduTJ8jk2VBjAG+fk4Hw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kRLZc-0006L6-IM; Sat, 10 Oct 2020 22:34:39 +0200 From: Lars Ingebrigtsen To: Rasmus Subject: Re: bug#43908: 28.0.50; gnus-icalendar-identities bug References: <87mu0uqfde.fsf@gmx.us> X-Now-Playing: David Sylvian's _Sleepwalkers_: "Trauma" Date: Sat, 10 Oct 2020 22:34:35 +0200 In-Reply-To: <87mu0uqfde.fsf@gmx.us> (rasmus@gmx.us's message of "Sat, 10 Oct 2020 17:18:05 +0200") Message-ID: <87zh4t252c.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Rasmus writes: > This means that rendering stops due to an error if an email with an > icalendar invitation is loaded when gnus-ignored-from-addresses is a > function. I have attached a patch that fixes the bug for [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43908 Cc: 43908@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Rasmus writes: > This means that rendering stops due to an error if an email with an > icalendar invitation is loaded when gnus-ignored-from-addresses is a > function. I have attached a patch that fixes the bug for me. Thanks; applied to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 10 16:34:53 2020 Received: (at control) by debbugs.gnu.org; 10 Oct 2020 20:34:53 +0000 Received: from localhost ([127.0.0.1]:38686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRLZt-0008Na-Ek for submit@debbugs.gnu.org; Sat, 10 Oct 2020 16:34:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRLZr-0008NC-VF for control@debbugs.gnu.org; Sat, 10 Oct 2020 16:34:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type: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=v+DlEx5tkT5AgbrIu2KfFLK1/zDO0YYRKObV/P2JrHs=; b=LujW4y0G4z5W2bk6u10PzIlcAh sUIJr/BCA0eCPkIGsflI298wcS6IoyQhW3NJPpc3f8mmSXqcBVHOJaMgKxN6hmnczbgXLK1MVOFjk HRNyfePWTznBG8FE0/eeKkfdTPD2u8620hdO0L831QItBlE5TQmAkMHEvwgIAADLk23A=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kRLZk-0006LD-7J for control@debbugs.gnu.org; Sat, 10 Oct 2020 22:34:46 +0200 Date: Sat, 10 Oct 2020 22:34:43 +0200 Message-Id: <87y2kd2524.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43908 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 43908 fixed close 43908 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 43908 fixed close 43908 28.1 quit From unknown Thu Aug 21 12:12:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 08 Nov 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator