[Top][All Lists]

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

Re: [bug-mailutils] movemail: looses messages if connection broken

From: Sergey Poznyakoff
Subject: Re: [bug-mailutils] movemail: looses messages if connection broken
Date: Mon, 02 Jan 2017 10:58:18 +0200

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.

> 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 
   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);


reply via email to

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