From nobody Sat Apr 20 07:31:46 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) client-ip=216.205.24.74; envelope-from=patchew-devel-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1585331668; cv=none; d=zohomail.com; s=zohoarc; b=DSnhO6F82fMmddsZyVRAtAAxzSVeCabxCE4ALgJ79hEcycKxzJzAau0HHxomfpqkXV9mI1mdT+JgUqC1InlGYcZlHSvQCvw5h0UzK78cM8V3/8Y51LqqM0q7j3BSMpL+IVp5Tw/guDRij18TqnFEuPqHUw70h7CLqFtagPPoEEA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585331668; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=lskyO3iADxS8oOzKep2I+/jULh9Tx/y7TqycGdNAJUc=; b=GgTul3378j1C9AJedidZ2oSersaeMKMHkGMlYS/YwNIjTS4waCPt0avYwt7O7eWQ6+JVK93bzGjcfn1iEi1gRWlsr7Wb3W7YINhGKxo9dX+4UdHi3Jlj3SW8WRPuKXUVCHanhOeWvpQ0u6BYmgGkdBKXXOgxgaeGASwjSLu8IQQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.zohomail.com with SMTPS id 1585331668164467.074643389466; Fri, 27 Mar 2020 10:54:28 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-465-sfFVxx7bNC6SmOAveHO2Bg-1; Fri, 27 Mar 2020 13:54:22 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8F7C51005509; Fri, 27 Mar 2020 17:54:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 85E2360BF3; Fri, 27 Mar 2020 17:54:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 07A8B18034E9; Fri, 27 Mar 2020 17:54:19 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02RHsIL4016070 for ; Fri, 27 Mar 2020 13:54:18 -0400 Received: by smtp.corp.redhat.com (Postfix) id B91E31001901; Fri, 27 Mar 2020 17:54:18 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-115-17.ams2.redhat.com [10.36.115.17]) by smtp.corp.redhat.com (Postfix) with ESMTP id 082C2100EBA4 for ; Fri, 27 Mar 2020 17:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585331667; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=lskyO3iADxS8oOzKep2I+/jULh9Tx/y7TqycGdNAJUc=; b=PQVyriZL8aD3CgU+MhttcGAG6Lwxx8wOEipqiXegw2yIPoITdpc4iaTLMk4sByFnqBO0kl sAhdjACJW2OLXRiD+d+K9u7Zesj8KnBi3cBRGPoOzuLRyGTN56NDon67s0bTrzCOtEjLxA y6HfeJD6IUcKXQNmzC13ELb5ZOGaOCE= X-MC-Unique: sfFVxx7bNC6SmOAveHO2Bg-1 From: Paolo Bonzini To: patchew-devel@redhat.com Date: Fri, 27 Mar 2020 18:54:14 +0100 Message-Id: <20200327175414.132872-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] add rfc822msgid: as a synonym of id: X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" There is a Chrome extension here https://chrome.google.com/webstore/detail/gmail-message-id-finder/comcoiiif= ldaaejpbgbincdkoohihbae that copies the message-id to the clipboard. It uses a "rfc822msgid:" prefix instead of Patchew's "id:", so accept that as well. Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- api/search.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/search.py b/api/search.py index d4213e5..4f6650c 100644 --- a/api/search.py +++ b/api/search.py @@ -183,6 +183,7 @@ Negative of an expression. Example: ### Search by message id =20 - Syntax: id:MESSAGE-ID + - Syntax: rfc822msgid:MESSAGE-ID =20 Exact match of message-id. Example: =20 @@ -192,6 +193,8 @@ or =20 id:1416902879-17422-1-git-send-email-user@domain.com =20 +The two prefixes are equivalent. + --- =20 ### Search by text @@ -294,7 +297,7 @@ Search text keyword in the email message. Example: elif term.startswith("subject:"): cond =3D term[term.find(":") + 1 :] return self._add_to_keywords(cond) - elif term.startswith("id:"): + elif term.startswith("id:") or term.startswith("rfc822msgid:"): cond =3D term[term.find(":") + 1 :] if cond[0] =3D=3D "<" and cond[-1] =3D=3D ">": cond =3D cond[1:-1] --=20 2.24.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel