Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 557A46DE01BE for ; Fri, 10 Jun 2016 01:38:19 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.479 X-Spam-Level: X-Spam-Status: No, score=-0.479 tagged_above=-999 required=5 tests=[AWL=0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZgtPIUEKCYtu for ; Fri, 10 Jun 2016 01:38:11 -0700 (PDT) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by arlo.cworth.org (Postfix) with ESMTPS id DDDC86DE0130 for ; Fri, 10 Jun 2016 01:38:10 -0700 (PDT) Received: by mail-wm0-f47.google.com with SMTP id k204so92077322wmk.0 for ; Fri, 10 Jun 2016 01:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaute-vetsj-com.20150623.gappssmtp.com; s=20150623; h=date:from:subject:to:cc:references:in-reply-to:user-agent :message-id:mime-version:content-transfer-encoding; bh=P21RWLKa/uWEzsk1DFcVa4TUlF8jlM/k7RXiqj2E/J8=; b=stSS5iqAkRiiadhozZ+9r6IIDBVT3Sa96C1yzK6GZwPuyQwg+DGFZIGOq0tO5D8Gt6 upoNmLnSpAl0UvLyDYdvG8849sj3EXCGoxNcgRAA5MAOEDZY08Kwjn16270LDWp5rHSo GvfLW7T2QObgOwI6xI57SH8gNvS6AMo7O9H43PIkkNI0iCSAeOiMlLuQsUToeXO6HuyZ kceM2MVzxuXozwKSATjsG0gF4i/WmVZtdVMh5f61bLmw8b4tagjZhxA5nXCO7m0vMa2a 48hA32Hrv8guS6koRBlBoEEeho5mhAe0h1u1Hj4i69KiYzd2XLIQQX2cOMQW8n5e5bkY XmLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :user-agent:message-id:mime-version:content-transfer-encoding; bh=P21RWLKa/uWEzsk1DFcVa4TUlF8jlM/k7RXiqj2E/J8=; b=Lnn07+R1sxWGpfCopDOpU1ArMJIMK08YuM6lrustBcsDSsh2O9fz1fU4mVH4nKvSRw 80wjMIi1ozvRtt5wFABEHGBo2HnBfnqZvO8EM9yMaC8LFRMNM6sEDLl1Zr3qiEfXoBFi Z5GuR0Zcdwyt4WNXb+u9JYxu8rDk7xhuhAbDUwervFTy1bF1OksyKcOdzIOZ0ziKGJlF 30PkxETAhSQMQEHYOnpkdvCYJwtbz4ovFtCIzwpDkq47S33Rqp/rYCwORDtB+UenHRm0 N2h2bZCBI4ed5DQj7s5ZbEypKBOXgHFD1BeOkU5zgAC+H9nFMuIz6Af123Q3q9UdZhH/ HDHQ== X-Gm-Message-State: ALyK8tKov1hxyArtskk2sgMpv2/XiqM6CGZTl+9QOI+ToExvxULt0FlnZVKWiPKkPgERAg== X-Received: by 10.28.176.7 with SMTP id z7mr1435714wme.17.1465547888501; Fri, 10 Jun 2016 01:38:08 -0700 (PDT) Received: from localhost (241.89-20-241.enivest.net. [89.20.241.241]) by smtp.gmail.com with ESMTPSA id m5sm11180254wji.16.2016.06.10.01.38.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jun 2016 01:38:06 -0700 (PDT) Date: Fri, 10 Jun 2016 08:38:05 +0000 From: Gaute Hope Subject: Re: [PATCH] WIP: regexp matching in 'subject' and 'from' To: David Bremner , Austin Clements Cc: sfischme@uwaterloo.ca, notmuch References: <1465265149-7174-1-git-send-email-david@tethera.net> <1465525688-30913-1-git-send-email-david@tethera.net> In-Reply-To: <1465525688-30913-1-git-send-email-david@tethera.net> User-Agent: astroid/v0.5-221-g4c2c7173 (https://github.com/gauteh/astroid) Message-Id: <1465547660-astroid-0-nudmv20lbk-1296@strange> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2016 08:38:19 -0000 David Bremner writes on juni 10, 2016 4:28: > the idea is that you can run >=20 > % notmuch search subject_re: > % notmuch search from_re:' >=20 > or >=20 > % notmuch search subject:"your usual phrase search" > % notmuch search from:"usual phrase search" >=20 > This should also work with bindings, since it extends the query parser. >=20 > This is trivial to extend for other value slots, but currently the only > value slots are date, message_id, from, subject, and last_mod. Date is > already searchable, and message_id is not obviously useful to regex > match. > --- >=20 > This is more or less complete codewise, it fixes the know problems > with the last version. Names of prefixes are debatable, and of course > it needs doc and tests. I don't see any reason not to do this at the mom= ent, > since it's basically free; no new terms are added to the database. Cool! Would it break a lot of things if you just replace the original prefix? Could it be made to work on the message body? Regards, Gaute =