unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Paul Tarvydas <paultarvydas@gmail.com>
To: notmuch@notmuchmail.org
Subject: tags vs. show
Date: Sat, 08 Aug 2015 11:25:30 -0400	[thread overview]
Message-ID: <55C61F6A.10103@gmail.com> (raw)

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

             reply	other threads:[~2015-08-08 15:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-08 15:25 Paul Tarvydas [this message]
2015-08-09 21:55 ` tags vs. show David Bremner

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=55C61F6A.10103@gmail.com \
    --to=paultarvydas@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).