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

Paolo Bonzini pbonzini at redhat.com
Tue Jul 3 16:28:32 UTC 2018


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

Looks good, though I don't know much about the importer.

Paolo




More information about the Patchew-devel mailing list