unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: Firmin Martin <firminmartin24@gmail.com>, notmuch@notmuchmail.org
Subject: Re: Query emails sent to undisclosed-recipients
Date: Tue, 23 Mar 2021 20:33:28 +0200	[thread overview]
Message-ID: <m28s6dk9dz.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <875z1iauay.fsf@Inspiron.i-did-not-set--mail-host-address--so-tickle-me>

On Tue, Mar 23 2021, Firmin Martin wrote:

> Hi,
>
> I have emails whose the "To" field is undisclosed recipients. In JSON:
>
> ```
> "To": "undisclosed-recipients: ;"
> ```
>
> I would want to tag such email as spam, but I can't query them
> using 
>
> ```
>  notmuch show --format=json to:"undisclosed-recipients: ;"
> ```
>
> or any variation (regex etc.).
>
> This question has already been addressed in 2013 [1]. Are there any plan
> to implement this feature or available workaround ?

Tried. many things. did not work. notmuch-search-terms(7) tells

     to:<name-or-address>

(so no regex syntax...)

I don't know why that doesn't work. IIRC no plan, but patches welcome >;D

Tomi

PS: I tried

    1  20:21  0:00  notmuch search to:undisclosed-recipients
    2  20:21  0:00  notmuch search to:/undisclosed-recipients/
    6  20:22  0:00  notmuch search id:msg-w-ur@not.an.example
    9  20:23  0:00  notmuch search 'to:undisclosed*'
   10  20:23  0:00  notmuch search 'to:undisclosed'
   11  20:23  0:17  notmuch search 'to:tomi.ollila'
   12  20:24  0:01  notmuch search 'to:/undisclosed/'
   13  20:24  0:00  notmuch search 'to:/undisclosed*/'
   14  20:24  0:00  notmuch search 'to:/undisclosed.*/'
   15  20:24  0:00  notmuch search 'to:/.*undisclosed.*/'
   16  20:25  0:14  notmuch help search
   17  20:25  0:00  notmuch help notmuch-search-terms
   18  20:25  0:02  notmuch help search
   19  20:25  0:00  notmuch help notmuch-search-terms
   20  20:25  0:07  notmuch help search
   21  20:25  0:53  notmuch help search-terms
   22  20:26  0:00  notmuch search 'to:undisclosed-recipients:'
   23  20:26  0:00  notmuch search 'to:undisclosed-recipients'
   24  20:27  0:00  notmuch search 'to:tomi.oll*'
   25  20:27  0:03  notmuch search 'to:tomi.'
   26  20:27  0:02  notmuch search 'to:tomi.*'
   27  20:27  0:00  notmuch search 'to:tomi.o*'
   28  20:27  0:00  notmuch search 'to:undisclosed-recipients:'
   29  20:28  1:35  notmuch help search-terms
   30  20:30  0:00  notmuch search 'to:undisclosed-recipients:;'

>
> Thanks,
>
> Firmin Martin
>
> [1] https://notmuchmail.org/pipermail/notmuch/2013/015516.html

  reply	other threads:[~2021-03-23 18:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-23 13:11 Query emails sent to undisclosed-recipients Firmin Martin
2021-03-23 18:33 ` Tomi Ollila [this message]
2021-03-23 19:26   ` David Bremner
2021-03-23 20:03     ` Tomi Ollila
2021-03-24  0:24       ` [PATCH] test: add known broken test for indexing RFC822 group names David Bremner
2021-03-24  0:37         ` David Bremner
2021-06-07 23:33         ` David Bremner
2021-04-15  2:46       ` Query emails sent to undisclosed-recipients NeilBrown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m28s6dk9dz.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=firminmartin24@gmail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).