From ba02bab54366ef4a90eb9405e4d64a9e33c3fd82 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Mon, 21 Dec 2020 13:48:51 -0500 Subject: Add -f to "b4 mbox" to filter dupes When saving to a maildir, add option to filter out dupes. Note, that this requires going through the entire maildir to collect message-ids, so it's not going to be a great experience on large maildirs. Signed-off-by: Konstantin Ryabitsev --- b4/command.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'b4/command.py') diff --git a/b4/command.py b/b4/command.py index 0c87df9..59fefbf 100644 --- a/b4/command.py +++ b/b4/command.py @@ -84,6 +84,8 @@ def cmd(): # b4 mbox sp_mbox = subparsers.add_parser('mbox', help='Download a thread as an mbox file') cmd_mbox_common_opts(sp_mbox) + sp_mbox.add_argument('-f', '--filter-dupes', dest='filterdupes', action='store_true', default=False, + help='When adding messages to existing maildir, filter out duplicates') sp_mbox.set_defaults(func=cmd_mbox) # b4 am -- cgit v1.2.3