notmuch-vim icon indicating copy to clipboard operation
notmuch-vim copied to clipboard

only tag messages currently viewed

Open ff2000 opened this issue 10 years ago • 1 comments

Just happened:

  • read a mailing list thread (several new mails)
  • during reading new mails arrived (didn't realize)
  • As usual archived the thread ('a' in notmuch-show)
  • This also archived the newly arrived mails, so I never realized there were new posts.

In notmuch-show we should only apply tags on the currently viewed/stored message-ids.

In notmuch-search we could also collect message-ids, but with long search results this might be some overkill. But we could store the datetime when entering the search view and only tag mails before that date. Don't know how robust that is, but it would be better than blindly tagging just everything in that thread.

Any thoughts? Hints? Ideas?

IMHO a "show_tag_message" to only tag the message under the cursor would be great, too.

ff2000 avatar Dec 29 '14 10:12 ff2000

Date range would work great but I guess it depends on the date stamps. Do they go to the second at least? Are they stamped by our computer (eg with our clock so they can't be out of sync)? If not then we probably can't use it. I think we could safely store the IDs in memory.. even a million IDs at 100bytes each (dunno how big they really are) would be 100MB. I doubt they are that big though.

imain avatar Jan 06 '15 16:01 imain