doveadm import uninterruptable?
Timo Sirainen
timo at sirainen.com
Wed Feb 17 17:00:23 EET 2021
On 16. Feb 2021, at 12.12, Ralf Hildebrandt <Ralf.Hildebrandt at charite.de> wrote:
>
> I'm using
>
> % doveadm import -u restore at backup.invalid mdbox:/home/archive/mdbox "" mailbox INBOX header From $PATTERN
>
> sometimes, I mistype the pattern and immediately try to stop the
> doveadm command with CTRL-C - and this never succeeds.
>
> Is it inentional that I cannot interrupt the "doveadm import" command?
This has been in TODO for years, but we've never gotten around to implementing it. Not specifically doveadm import, but anything that is processing multiple mails should be able to stop on a signal (mailbox_search_next() would return error).
For now you can use ctrl-z and kill -9 %1
More information about the dovecot
mailing list