imain / notmuch-vim

Plug-in for vim to use notmuch
17 stars 7 forks source link

only tag messages currently viewed #10

Open ff2000 opened 9 years ago

ff2000 commented 9 years ago

Just happened:

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.

imain commented 9 years ago

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.