Re: movemail: should hang forever?

Sergey Poznyakoff <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Organization GNU.org.ua
Message-ID <[email protected]>
Jean Louis <[email protected]> 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:[email protected]: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

_______________________________________________
Bug-mailutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-mailutils
stream-ioctl.diff (text/x-diff, 522 B)
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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.