Re: doveadm import uninterruptable?

2021-02-17 Thread Timo Sirainen
On 16. Feb 2021, at 12.12, Ralf Hildebrandt  wrote:
> 
> I'm using
> 
> % doveadm import -u restore@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



doveadm import uninterruptable?

2021-02-16 Thread Ralf Hildebrandt
I'm using

% doveadm import -u restore@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?

Using 2.3.13 here.

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | https://www.charite.de