unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* How to find mails which are sent to 'undisclosed-recipients' ?
@ 2013-07-11 15:24 Vladimir Marek
  2013-07-11 17:01 ` Adam Wolfe Gordon
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Marek @ 2013-07-11 15:24 UTC (permalink / raw)
  To: notmuch

Hi,

Since my mail works in a way that it hides everything but what I
selected to be shown to me, I was overlooking all mails which where sent
to undisclosed-recipients. I tried to match such mails by
to:undisclosed-recipients but that does not seem to work. Is there any
workaround to find such mails?

Thank you
-- 
	Vlad

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to find mails which are sent to 'undisclosed-recipients' ?
  2013-07-11 15:24 How to find mails which are sent to 'undisclosed-recipients' ? Vladimir Marek
@ 2013-07-11 17:01 ` Adam Wolfe Gordon
  2013-07-11 18:03   ` Vladimir Marek
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Wolfe Gordon @ 2013-07-11 17:01 UTC (permalink / raw)
  To: Vladimir Marek; +Cc: Notmuch Mail

Hi Vladimir,

On Thu, Jul 11, 2013 at 9:24 AM, Vladimir Marek
<Vladimir.Marek@oracle.com> wrote:
> Since my mail works in a way that it hides everything but what I
> selected to be shown to me, I was overlooking all mails which where sent
> to undisclosed-recipients. I tried to match such mails by
> to:undisclosed-recipients but that does not seem to work. Is there any
> workaround to find such mails?

I have some mail with this To header:

To: Undisclosed recipients <Undisclosed recipients:;>

I can find them with the search to:"Undisclosed recipients". Note the quotes.

-- Adam

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: How to find mails which are sent to 'undisclosed-recipients' ?
  2013-07-11 17:01 ` Adam Wolfe Gordon
@ 2013-07-11 18:03   ` Vladimir Marek
  2013-07-11 21:52     ` Austin Clements
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Marek @ 2013-07-11 18:03 UTC (permalink / raw)
  To: Notmuch Mail

> > Since my mail works in a way that it hides everything but what I
> > selected to be shown to me, I was overlooking all mails which where sent
> > to undisclosed-recipients. I tried to match such mails by
> > to:undisclosed-recipients but that does not seem to work. Is there any
> > workaround to find such mails?
> 
> I have some mail with this To header:
> 
> To: Undisclosed recipients <Undisclosed recipients:;>
> 
> I can find them with the search to:"Undisclosed recipients". Note the quotes.

The To: line in my case looks like:

To: undisclosed-recipients:;

And I'm not able to find it in any way. Maybe notmuch won't parse it as an
email and so won't store the To header to the database?

Any idea if there is a way to dump what notmuch knows about given email?

Thank you
-- 
	Vlad

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: How to find mails which are sent to 'undisclosed-recipients' ?
  2013-07-11 18:03   ` Vladimir Marek
@ 2013-07-11 21:52     ` Austin Clements
  2013-07-15 12:53       ` Vladimir Marek
  0 siblings, 1 reply; 5+ messages in thread
From: Austin Clements @ 2013-07-11 21:52 UTC (permalink / raw)
  To: Vladimir Marek; +Cc: Notmuch Mail

Quoth Vladimir Marek on Jul 11 at  8:03 pm:
> > > Since my mail works in a way that it hides everything but what I
> > > selected to be shown to me, I was overlooking all mails which where sent
> > > to undisclosed-recipients. I tried to match such mails by
> > > to:undisclosed-recipients but that does not seem to work. Is there any
> > > workaround to find such mails?
> > 
> > I have some mail with this To header:
> > 
> > To: Undisclosed recipients <Undisclosed recipients:;>
> > 
> > I can find them with the search to:"Undisclosed recipients". Note the quotes.
> 
> The To: line in my case looks like:
> 
> To: undisclosed-recipients:;

RFC822 group syntax!  Fascinating.  You're right that notmuch doesn't
index group names, though I think it could with a small addition to
_index_address_group.  It already descends into group addresses, it
just currently ignores the group name.

> And I'm not able to find it in any way. Maybe notmuch won't parse it as an
> email and so won't store the To header to the database?

I suspect it is indexing it.  The only thing notmuch requires is that
the message be at least slightly well-formed and have either a From,
Subject, or To header.  You can find the message's Message-ID header
and try a search like

  notmuch search id:<message-id>

> Any idea if there is a way to dump what notmuch knows about given email?

There's no easy way.  You can use Xapian's quest and delve tools to
find the document ID and get the term list of a message, but this is a
*very* low-level view of what notmuch knows.

> Thank you

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: Re: How to find mails which are sent to 'undisclosed-recipients' ?
  2013-07-11 21:52     ` Austin Clements
@ 2013-07-15 12:53       ` Vladimir Marek
  0 siblings, 0 replies; 5+ messages in thread
From: Vladimir Marek @ 2013-07-15 12:53 UTC (permalink / raw)
  To: Austin Clements; +Cc: Notmuch Mail

> > > > Since my mail works in a way that it hides everything but what I
> > > > selected to be shown to me, I was overlooking all mails which where sent
> > > > to undisclosed-recipients. I tried to match such mails by
> > > > to:undisclosed-recipients but that does not seem to work. Is there any
> > > > workaround to find such mails?
> > > 
> > > I have some mail with this To header:
> > > 
> > > To: Undisclosed recipients <Undisclosed recipients:;>
> > > 
> > > I can find them with the search to:"Undisclosed recipients". Note the quotes.
> > 
> > The To: line in my case looks like:
> > 
> > To: undisclosed-recipients:;
> 
> RFC822 group syntax!  Fascinating.  You're right that notmuch doesn't
> index group names, though I think it could with a small addition to
> _index_address_group.  It already descends into group addresses, it
> just currently ignores the group name.
> 
> > And I'm not able to find it in any way. Maybe notmuch won't parse it as an
> > email and so won't store the To header to the database?
> 
> I suspect it is indexing it.  The only thing notmuch requires is that
> the message be at least slightly well-formed and have either a From,
> Subject, or To header.  You can find the message's Message-ID header
> and try a search like
> 
>   notmuch search id:<message-id>
> 
> > Any idea if there is a way to dump what notmuch knows about given email?
> 
> There's no easy way.  You can use Xapian's quest and delve tools to
> find the document ID and get the term list of a message, but this is a
> *very* low-level view of what notmuch knows.


Thank you for looking at this. At the moment I plugged procmail to my
setup to tag any such messages (sent to undisclosed recipients) with
appropriate tag.

Thank you
-- 
	Vlad

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-15 12:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-11 15:24 How to find mails which are sent to 'undisclosed-recipients' ? Vladimir Marek
2013-07-11 17:01 ` Adam Wolfe Gordon
2013-07-11 18:03   ` Vladimir Marek
2013-07-11 21:52     ` Austin Clements
2013-07-15 12:53       ` Vladimir Marek

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).