From nobody Wed Apr 24 04:17:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1530597660302764.5616752987231; Mon, 2 Jul 2018 23:01:00 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CD9E73082A44; Tue, 3 Jul 2018 06:00:59 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BA15C60BE4; Tue, 3 Jul 2018 06:00:59 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id ACE1418037EC; Tue, 3 Jul 2018 06:00:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w6360vWi022495 for ; Tue, 3 Jul 2018 02:00:58 -0400 Received: by smtp.corp.redhat.com (Postfix) id C4A902027047; Tue, 3 Jul 2018 06:00:57 +0000 (UTC) Received: from lemon.usersys.redhat.com (ovpn-12-86.pek2.redhat.com [10.72.12.86]) by smtp.corp.redhat.com (Postfix) with ESMTP id A74D72026D76 for ; Tue, 3 Jul 2018 06:00:56 +0000 (UTC) From: Fam Zheng To: patchew-devel@redhat.com Date: Tue, 3 Jul 2018 14:00:49 +0800 Message-Id: <20180703060049.19161-1-famz@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] importer: Prune messages in IMAP server after import X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 03 Jul 2018 06:00:59 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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 --- 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 } =20 while :; do --=20 2.17.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel