discussion and development of piem
 help / color / mirror / code / Atom feed
* [PATCH 0/3] inject: Add support for skipping messages
@ 2020-08-22 19:01 Kyle Meyer
  2020-08-22 19:01 ` [PATCH 1/3] inject: Abbreviate piem-maildir-directory in message Kyle Meyer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kyle Meyer @ 2020-08-22 19:01 UTC (permalink / raw)
  To: piem

When I'm using Gnus to read a thread via nntp and decide I want it in
my regular mail (notmuch), I call piem-inject-thread-into-maildir to
pull the thread into my notmuch database.  If I call it again at a
later time to get new messages, a duplicate message is added for each
message that came in with the previous call.

For notmuch at least, that's not a big deal because those messages are
mostly hidden, but it'd still be nice to avoid.  This series makes
that possible with

    (setq piem-mail-injection-skipif-predicate
          #'piem-notmuch-known-mid-p)

This might also end up being useful outside of avoiding duplicates for
things like this:

    (setq piem-mail-injection-skipif-predicate
          #'<skip message if From: matches X>)

  [1/3] inject: Abbreviate piem-maildir-directory in message
  [2/3] inject: Support skipping messages
  [3/3] notmuch: Extract "known message?" logic to function

 piem-notmuch.el | 32 +++++++++++++----------
 piem.el         | 67 ++++++++++++++++++++++++++++++++++++-------------
 2 files changed, 68 insertions(+), 31 deletions(-)


base-commit: 846c69cae321442bb2f5cefec7000328943c7560
-- 
2.28.0


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

end of thread, other threads:[~2020-08-22 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-22 19:01 [PATCH 0/3] inject: Add support for skipping messages Kyle Meyer
2020-08-22 19:01 ` [PATCH 1/3] inject: Abbreviate piem-maildir-directory in message Kyle Meyer
2020-08-22 19:01 ` [PATCH 2/3] inject: Support skipping messages Kyle Meyer
2020-08-22 19:01 ` [PATCH 3/3] notmuch: Extract "known message?" logic to function Kyle Meyer

Code repositories for project(s) associated with this public inbox

	https://git.kyleam.com/piem/

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