From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#72442: 31.0.50; Gnus or message.el doesn't handle international message reply subject prefixes and insults users Date: Thu, 22 Aug 2024 15:14:15 +0200 Message-ID: <87bk1ku2c8.fsf@gmail.com> References: <868qxdvchc.fsf@gnu.org> <861q35v80b.fsf@gnu.org> <87o75nv85p.fsf@gmail.com> <86ed6jwfkp.fsf@gnu.org> <87bk1nuwl3.fsf@gmail.com> <87jzg8u6tw.fsf@gmail.com> <66c7296a.a70a0220.2590d7.c939SMTPIN_ADDED_BROKEN@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28680"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72442@debbugs.gnu.org, Eli Zaretskii To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 22 15:16:42 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sh7g9-0007Fe-Rp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Aug 2024 15:16:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sh7fp-0001Dv-5l; Thu, 22 Aug 2024 09:16:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sh7fl-0001DZ-8F for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2024 09:16:18 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sh7fk-0005RR-CX for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2024 09:16:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=oDMpmFANv4bRHUTRYl1SoCsX7gMenABBjkbpn539inw=; b=khxN3qrFJTqnYBwQ8/53p5Opgn5xoFjZiMyXUwCqWwXRolAgwfkvmMmUZw1WuY/pSeuUH/qX6TDegnrk6HS/JGb0dUOt73gGVqafIILMRwScJLWV9HpRZuDtoNnAIPocXD2pMuvtL7MXCfqiCYFaQVVI5ZykIT5BXCSTusUbB/2c3Me4uRzaPUYrWZWvTw7wLYSUSSRiTtWQpnML2eh2o7+9FhHea4odOaB9SR+6uWUJV32zuEnOMMhjMcTWgjp+hKuNl99e7Q24vl4iFshu7PPb0vaFpCQgBQAwo7c9gXBuITVoOVhtO23Jnn2sJRSWx9ssRI48Os3hR7PeNe0Wnw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sh7gT-0001pl-Pp for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2024 09:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Aug 2024 13:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72442 X-GNU-PR-Package: emacs Original-Received: via spool by 72442-submit@debbugs.gnu.org id=B72442.17243325726956 (code B ref 72442); Thu, 22 Aug 2024 13:17:01 +0000 Original-Received: (at 72442) by debbugs.gnu.org; 22 Aug 2024 13:16:12 +0000 Original-Received: from localhost ([127.0.0.1]:37052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sh7fg-0001o8-Hh for submit@debbugs.gnu.org; Thu, 22 Aug 2024 09:16:12 -0400 Original-Received: from mail-wm1-f45.google.com ([209.85.128.45]:52323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sh7fd-0001no-RU for 72442@debbugs.gnu.org; Thu, 22 Aug 2024 09:16:11 -0400 Original-Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-428243f928fso7872685e9.0 for <72442@debbugs.gnu.org>; Thu, 22 Aug 2024 06:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724332458; x=1724937258; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=oDMpmFANv4bRHUTRYl1SoCsX7gMenABBjkbpn539inw=; b=Es8pNbthqSboV9ntb2YArsawIFH/8xnO2aU/+woYZae7RJThI9u/G3xCrOUoJmtB27 QTpI6PLmvDXy6VvXPn5l50g7DOk6ulucAcSVUlU3osiTvdKmGH/tmhwECm9mrxfM7x72 YUD1+zQ2EwuaiCbF+8L+I4Y1QemY6QPz4+2rtKs8DED1Y2/1MI9BE63hwl0Q74s5Rkw3 kjiAZtN/TkJxoZeVqJQwbWRD8IyQI4Tnu+DhQ+Dz21i6AU9PoCr800wD8fYCiO4QJdza niBgw/bL0PaEKpCGvDAnrvsrFHZ2MNfZPNwd72mMRa0DG/u0rLEL9JcVGU/+Q9/LLCbH VO9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724332458; x=1724937258; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oDMpmFANv4bRHUTRYl1SoCsX7gMenABBjkbpn539inw=; b=oObRCx/kJ4WfGwz+UcNppdJrXrvMjjcu33fhat6jvIHr1U1CNzxGQ4bj4oR7ih8D4w 9XXbxnBtramqt+jJdZihFYqbBxPVC46/AolFJ6mRoeOICPwCN1aEP2xlraIpkIxLoDEl 7LPDbtQdzffxjJj2nHdDNh9799rBA/IwWFSZYJ4JVK5JFqG3T9X670NgrzFzeqR/sctJ BU619UhkQMwFreMeopZoaMSJs1lzsW5gCVPT95CDCy+Etgq8UESE6psGvGltJ/cFj8mB 97KdW9Zy2HWInLHZ6Za/FrQud5I8PYNLp3zRRkboBvh54aDQ1/U0AwLi+vZhNTLX80ry DKCA== X-Forwarded-Encrypted: i=1; AJvYcCXhN0z82D4ElY+rL+HdE0FUdDMXo9UPRBIebUXxnzubwrbhoxIEiJrG+eGqaUeDDimcQeP65g==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzCGAvLNC66YdoL08nBE7HZcKmCF2spj+rI8975dPqT2dn1H76O oOsGSKwQvWMUT2kCZx4FF1PPbMx4eE9GiEXAox+rBr0+aCsk4qAJX4ee4g== X-Google-Smtp-Source: AGHT+IGGcvHLGMzLq4r2c8FZXYnZp8fUrZTFE0oxEvhdk48abVIhOaC3GiPayCcygDDgBllHrwafNQ== X-Received: by 2002:a05:6000:18a5:b0:366:ee01:30d6 with SMTP id ffacd0b85a97d-37308d75a58mr1710597f8f.49.1724332457399; Thu, 22 Aug 2024 06:14:17 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb51:c589:922e:91c1:6f28]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3730817a4bfsm1659543f8f.62.2024.08.22.06.14.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 06:14:16 -0700 (PDT) In-Reply-To: <66c7296a.a70a0220.2590d7.c939SMTPIN_ADDED_BROKEN@mx.google.com> ("=?UTF-8?Q?Bj=C3=B6rn?= Bidar"'s message of "Thu, 22 Aug 2024 15:04:56 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290536 Archived-At: >>>>> On Thu, 22 Aug 2024 15:04:56 +0300, Bj=C3=B6rn Bidar said: Bj=C3=B6rn> Robert Pluim writes: >>>>>>> On Tue, 20 Aug 2024 15:56:24 +0200, Robert Pluim said: >>=20 Robert> The first is easy. The second is a bit more difficult, since th= e two Robert> don=CA=BCt cover exactly the same cases, and message matches Robert> case-sensitively, unlike rmail, so we=CA=BCd need to either ada= pt eg "=CE=A3=CE=A7=CE=95=CE=A4" to Robert> "[=CE=A3=CF=83][=CE=A7=CF=87][=CE=95=CE=B5][=CE=A4=CF=84]" or m= ake the breaking change of binding Robert> `case-fold-search' in message. Personally I=CA=BCd prefer the l= atter. >>=20 Robert> (are there really mailers that prefix the subject with "R:"?) >>=20 >> The current setting for rmail is more complete than the suggestion in >> the Gnus manual, except it=CA=BCs missing: >>=20 >> - "R=C3=89" >> - an optional "." after "Antw" >> - an optional space between the "RE" string and the ":" >> - "FW"/"FWD" >>=20 >> The first 3 seem obvious. Adding the last might annoy people :-) >>=20 >> I can add those to `rmail-re-abbrevs', but perhaps it=CA=BCs better = to have a >> new defcustom that both rmail and message would use? Something like >> 'mail-re-regexps' in "mail-utils.el" perhaps? Plus some appropriate >> editing of the manual. Bj=C3=B6rn> If there would be an easy way to new prefix to the ignore l= ist that Bj=C3=B6rn> would work. Can't expect (avarage) users to build their reg= ular Bj=C3=B6rn> expression especially when multiple languages are involved. The new defcustom could be a list of regexps, ie ("RE" "R\u00c9\\.?" "FWD?" "=D8=B1=D8=AF" "=E5=9B=9E=E5=A4=8D" "=E5=9B=9E= =E8=A6=86" "SV" "Antw\\.?" "VS" "REF" "AW" =CE=91=CE=A0" "=CE=A3=CE=A7=CE=95=CE=A4" "=D7=94=D7=A9=D7= =91" "V=C3=A1" "R" "RIF" "BLS" "RES" "Odp" "YNT" "ATB") which we=CA=BCd concatenate with "\\|" to get the real regexp. That would be quite easy to edit in custom. Robert --=20