unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* tags vs. show
@ 2015-08-08 15:25 Paul Tarvydas
  2015-08-09 21:55 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Tarvydas @ 2015-08-08 15:25 UTC (permalink / raw)
  To: notmuch

I'm having a problem with "notmuch show" producing too many results.

Can somebody tell me how to "notmuch show" only emails that a specific tag?


Specifics (linux mint, emacs 24.3.1):

I run this tagging query at the command line:

 > notmuch tag +xyz -- '(to:xyz@me.com or from:xyz@me.com or cc:xyz@me.com)'

In emacs, notmuch-hello, I search

   tag:xyz

and I get a buffer of emails that I expect.

Then, I run on the command line:

 > notmuch show --format=mbox "tag:xyz" >xyz-all.txt

the resulting xyz-all.txt contains many other emails (e.g. spam from 
linkedin, etc).


In the end, I want to create a new gmail account containing only the 
above tagged emails.  I will upload it with:

 > python imap_upload.py --gmail --box inbox --error Friends.err --user 
xyz --password xyz xyz-all.txt

I did this several years ago and see, from my scripts, that I had the 
same problem.  I worked around it by clearing tags, then creating an 
exclusion tag and tagging everything with that and, etc. ...  I would 
prefer to know how to do this exactly, this time.


Thanks in advance for any advice!

pt

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

end of thread, other threads:[~2015-08-09 21:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-08 15:25 tags vs. show Paul Tarvydas
2015-08-09 21:55 ` David Bremner

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