Re: movemail: looses messages if connection broken

Jean Louis <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Message-ID <[email protected]>
On Mon, Jan 02, 2017 at 10:58:18AM +0200, Sergey Poznyakoff wrote:
> Hi Jean,
> 
> > I have experienced following before some time:
> > 
> > movemail: number of messages in source mailbox: 5
> > movemail: number of processed messages: 5
> > movemail: number of errors: 0 / 0
> [...]
> > 0 kept, 5 deleted.
> 
> What's this? None of mailutils code produces such message.

That message above? It is movmail.

> > The operation of movemail shall be changed so that unless all messages
> > are in local inbox, the remote shall not be deleted.
> 
> That's the way it operates now.  Quoting the source (with additional
> annotations for clarity):
> 
> // Synchronize destination mailbox with the disk and close it   
>    968    mu_mailbox_sync (dest);
>    969    rc = mu_mailbox_close (dest);
>    970    mu_mailbox_destroy (&dest);   
>    971    if (rc)
>    972      mu_error (_("cannot close destination mailbox: %s"), mu_strerror (rc));
>    973    else if (!preserve_mail)
> // Delete messages from the source mailbox   
>    974      mu_mailbox_expunge (source);
> // Close the source mailbox
>    975    mu_mailbox_close (source);
>    976    mu_mailbox_destroy (&source);
> 
> 
> Regards,
> Sergey

Well thank you. I still lost 5 messages, cannot know the reason.

Jean Louis
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.