From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YNWHM8x87WFpfQAAgWs5BA (envelope-from ) for ; Sun, 23 Jan 2022 17:05:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EETkMMx87WEb3QAA9RJhRA (envelope-from ) for ; Sun, 23 Jan 2022 17:05:32 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 964171E98B for ; Sun, 23 Jan 2022 17:05:32 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F25265F720; Sun, 23 Jan 2022 16:05:29 +0000 (UTC) X-Greylist: delayed 413 seconds by postgrey-1.36 at yantan; Sun, 23 Jan 2022 16:05:27 UTC Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 53B635F71E for ; Sun, 23 Jan 2022 16:05:27 +0000 (UTC) Received: from mithlond (mobile-access-6df051-70.dhcp.inet.fi [109.240.81.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: tlikonen) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 0C5EB1B0016E; Sun, 23 Jan 2022 17:58:33 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1642953513; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YS7qRVBfm0LGjCf5y4MOlvuLq+uiQid53GmOZ55oWVE=; b=Uvur/FSmenyiGfITEK1qwF7N4FvFCjlOQPvkzFxGIqAvnY3sOQ7iz2LvfGCty93w5AD3Yu /KrA1DR/ao8MbjBOIfAqlS+aouG/1fpi10K1HlItM5E0BMBfKu5Y43g4EPgdbZrD0dnOVo 9u513KoCMdTAnHq4QX76fXecWZr/xyJJ/cGC22abN6FRP6hBvLkrT3LfKhWJSjAS5WKn0r kWcWmcWLboYrcpTUqA/Wj85ysLt8evr+4uBCnNPFscJesN/HZKtWoLvbghKM4fDlIoHABH k+4UuZYB8UWIohOjwN+yBvgOTJkNIfHCz1fB15PBjxikb2UNZIW6cFOYiMeuNw== From: Teemu Likonen To: Jonas Bernoulli , notmuch@notmuchmail.org Subject: Re: Variable used to detect reply prefixes in Subject In-Reply-To: <87bl02k0ap.fsf@bernoul.li> References: <87bl02k0ap.fsf@bernoul.li> User-Agent: Notmuch/0.34.3 (https://notmuchmail.org) Emacs/28.0.90 (x86_64-pc-linux-gnu) Date: Sun, 23 Jan 2022 17:58:24 +0200 Message-ID: <87tudu8mvz.fsf@iki.fi> MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1642953513; a=rsa-sha256; cv=none; b=u6vtFnpuoMJL7MzDid3Y1yiVyDf50VUF9Xgjx4OACS+QhmOex9/aoUC4PHqLN9FWoptEdb Ho2fWeijjb5CqKrUavuS426J9Ykg8pIuU4t5sN4triXEwqqucctGP4tgRnLDIialvrIyEw rRWjbS28Ed1Mo/X3sa8mH8zYMP2JwB/IKRbzIFPzb/KS0xXTohFeFO+68dLwtnTfiVaDTj nmm+ptXICjWi8pItkgreFRXiPXVdME9tTUzUm3HdUdi3ysErERttLYjUiGXj1qHVVj/e7K Rrtx3wgMqBH/BDdCpNqh+XeUaD7o+w1vFs74h5dcSSdgs01RppFiX3/hJOv1UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1642953513; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YS7qRVBfm0LGjCf5y4MOlvuLq+uiQid53GmOZ55oWVE=; b=MtNCf2k4QXcDbEvg9gYLVhYdMzx9lN71Sy2xZhqH+tmiyS646Tm5QXk7/rj17difEEflUQ u54DTRk/QwdVd0NmqOIIp3UiKPF5xuZXnmzY3ZIDfGexoiesY+qb12AATDOmK/6WGgKUWE z9FEdzdu9EgLmWj/QAQt6ahNHj1FxhJ8AB983XRxeD0q/mZKN6ZZy9LU2Nb+B4tJr16MdZ LUlUzxhk/UACP4Vrjgls1j1CPY2dWLSIXqWV4jiLLZg+MexIPk2+6RTg78YAvf+bspTpRD Y285gKlhVS0ZtOlF2ATeZiTho/LBLq/Xfi4A5BA3L4Oq+8uJL7RwaHvxO1qDgA== Message-ID-Hash: XBQ6HXF5Z7375NSCJCE6WR3EADCY2ZN4 X-Message-ID-Hash: XBQ6HXF5Z7375NSCJCE6WR3EADCY2ZN4 X-MailFrom: tlikonen@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============9070353584203236176==" X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642953932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JTtg8Qxx6PM75hBHUCgM00cHeF67SdW5bxITRhQ2TUY=; b=fluZMRo0sLrA6gi3tOoeqWAOvYz7nEiShP/x/eP+tkaws3U10Xn/GD9oehicFd+Z1xbOfG lzoI4qpXdRgOpsoHeIzcJArmNiXTAw44hJh6/DYt+PyrlrbubXRcG327/UNpDSV+keM08i gr0CS333EOqatjOJyxB3Cju4gOf5sWRW8M6PVrguyg6m5J5FGEJXhSCEYUWl0rAFMfGofo 53LmDCqkEurDm3bN+xf5jOCV76mGMMaYuVEGDTGCiqXSs3j0KSYI1Qm9Ve2Gz9acJkwwOr FSSvw5wYkYN9/LLDFYk3mHuN1SJKkXNHSGN6aK1R+fknG27hdz6HvybJRiXPmQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1642953932; a=rsa-sha256; cv=fail; b=NgyrRi6oQo1D2ipDfmWpbtasHvJ205QUvJZnqkcthkSdruqjnEFZeB2bJCleIHlYcHq9UB amsEvOzv2qe/bTXW5w6gYXqeqopy25TcC7rVwVOttz2DY4NutVVC5E1MiQsgh1quof2uNS NCm6ngK0GrNQmJRROW9jA3I8ATYdzPLebeRMzw9FyRzEGnqMekuQP5m1NliLh+p4SMHAOu GwaegcIJKsYqGbnM9TAXy9l4EV7cltzjeZhmdNkxgf3/XZFGaRVt/tufQ4NottJOniWd9g Zmvothc4uqT4jICQT6tseaC/CYwdNwN8nb83i9YDsFbUbuwuUEcriwgenXsamQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b="Uvur/FSm"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -3.95 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b="Uvur/FSm"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 964171E98B X-Spam-Score: -3.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: upaYdmTlWntq --===============9070353584203236176== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * 2022-01-23 15:13:18+0100, Jonas Bernoulli wrote: > Please tell me what variable I have to customize to recognize > additional unusual prefixes that some people add to the subject when > they send a reply. There is message-subject-re-regexp.=20 > Ps: Since (I assume) many notmuch users also frequent emacs-devel, > where a frequent commentator uses the prefix "RE: [External] : ", > maybe notmuch could even recognize that by default? (I asked him > to consider not doing that anymore, but even if he agrees, that > would not affect his numerous past replies.) Yes. That is annoying. I have written a custom Subject cleaner for my replies: (add-hook 'message-setup-hook 'my-message-subject-clean) (defun my-message-subject-clean () ;; Delete first \( ... \) group from Subject header. (my-with-message-headers (let ((case-fold-search nil)) (dolist (re '(".*\\(\\[ ?SPAM\\(?: UNSURE\\|\\?\\)? ?\\] \\(?:Re: \\)= ?\\)" ".*\\(\\(?:Re: \\)* *\\[External\\][ :]*\\(?:Re: *\\)*\= \)")) (goto-char (point-min)) (when (re-search-forward (concat "^Subject: " re) nil t) (delete-region (match-beginning 1) (match-end 1))))))) (defmacro my-with-message-headers (&rest body) (declare (indent 0)) `(save-excursion (save-restriction (save-match-data (message-narrow-to-head) ,@body)))) =2D-=20 /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/ // OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIYEARYIAC4WIQQL23klfGMkeOvdGCt57xklfWtWWwUCYe17IBAcdGxpa29uZW5A aWtpLmZpAAoJEHnvGSV9a1ZbzYMBAOj7s1wB1bXO3KOYL4pLcLhnOOGqarZmUpwQ fycqjFLxAQCgrIMV+FsRF+mqGz6KDjQVZSPWgwc2qdR/DipgbpLSA4iGBAEWCAAu FiEEyVtsKrXpcQtYB3W4rZ11q+6UwnMFAmHteycQHHRsaWtvbmVuQGlraS5maQAK CRCtnXWr7pTCc+yFAP9EAz2qpS4uvZWIAXbTRlNv+otoyHN6pPk6F6cWslMg6QEA tIC+UBLmKidWycazrBm3/3y9syXdZF28qkgpkcYpCAQ= =Rs/y -----END PGP SIGNATURE----- --=-=-=-- --===============9070353584203236176== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============9070353584203236176==--