On 03/07/2018 08:00, Fam Zheng wrote:
> 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@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
>
Looks good, though I don't know much about the importer.
Paolo
_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel