[Patchew-devel] [PATCH] importer: Prune messages in IMAP server after import

Fam Zheng famz at redhat.com
Tue Jul 3 06:00:49 UTC 2018


Don't wait until the next offlineimap_import() to delete messages from
mail server, this saves work for next time if we quit before the next
iteration.

Signed-off-by: Fam Zheng <famz at redhat.com>
---
 scripts/patchew-importer | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/patchew-importer b/scripts/patchew-importer
index d9de74f..e372068 100755
--- a/scripts/patchew-importer
+++ b/scripts/patchew-importer
@@ -101,6 +101,8 @@ offlineimap_import()
         fi
         import "$f" || true
     done
+    # Flush message deletions
+    timeout -k 2000 1800 offlineimap -c $offlineimap_rc
 }
 
 while :; do
-- 
2.17.1




More information about the Patchew-devel mailing list