bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] movemail: should hang forever?


From: Sergey Poznyakoff
Subject: Re: [bug-mailutils] movemail: should hang forever?
Date: Sat, 03 Dec 2016 22:00:58 +0200

Jean Louis <address@hidden> ha escrit:

> I cannot replicate now the hanging, as I don't want to spoil the
> mailboxes.

Why do you think they will be spoiled?

> mailbox `/home/data1/protected/Maildir/courier': cannot get UIDLs:
> Requested item not found
> 
> That courier is maildir, and totally empty. The command is:
> 
> movemail --debug-level='mailbox.prot,!trace6' -v -u 
> 'imaps://username:address@hidden:993/INBOX.courier' Maildir/courier

Thanks for additional data.  Please apply the attached patch and
recompile.  Then, please re-run the command with and without -u.

Regards,
Sergey

diff --git a/libmailutils/stream/stream.c b/libmailutils/stream/stream.c
index 0ddc435..2ab2cbe 100644
--- a/libmailutils/stream/stream.c
+++ b/libmailutils/stream/stream.c
@@ -1160,7 +1160,7 @@ mu_stream_ioctl (mu_stream_t stream, int family, int 
opcode, void *ptr)
 {
   int rc;
   _bootstrap_event (stream);
-  if ((rc = _stream_flush_buffer (stream, _MU_STR_FLUSH_ALL)))
+  if ((rc = _stream_flush_buffer (stream, 
_MU_STR_FLUSH_ALL|_MU_STR_FLUSH_KEEP)))
     return rc;
   if (stream->ctl == NULL)
     return ENOSYS;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]