• Re: How gracefully does Pine fail at saving messages?

    From Adam H. Kerman@21:1/5 to Nicholas Saunders on Sat Dec 2 17:27:42 2023
    Nicholas Saunders <saunders.nicholas@gmail.com> wrote:

    I'm saving large numbers of messages from IMAP (Gmail) to local storage
    and am looking at:

    FEATURE: Save Will Not Delete

    This feature controls one aspect of the Save command. If set, Save will
    not mark the message "deleted" (its default behavior) after it has been >copied to the designated folder.

    <End of help on this topic>

    Now, if there's a networking or other problem, what happens on a bulk >operation? Is the message deleted only once successfully saved? Is
    that done individually for each message?

    In a typical setup, the message isn't deleted but marked for deletion.
    Upon closing the folder, the expunge command is executed (or the user is
    asked to confirm expunge), which deletes messages marked for deletion.

    As you are taking Eduardo's advice, moving several hundred messages at a
    time, I would set Save Will Not Delete, then after SUCCESSFULLY copying
    the first group of messages into the desired mbox archive folder, mark
    the messages to be deleted in the remote folder with the bulk selection
    command first "; N [range]", then apply the deletion mark with the apply command "a d" then MANUALLY expunge messages marked for deletion with
    "x".

    These are additional steps to take but if your connection goes kerflooey
    during your attempt to copy messages in bulk, this may keep you out of
    some trouble.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eduardo Chappa@21:1/5 to Adam H. Kerman on Sat Dec 2 19:59:04 2023
    On Sat, 2 Dec 2023, Adam H. Kerman wrote:

    In a typical setup, the message isn't deleted but marked for deletion.
    Upon closing the folder, the expunge command is executed (or the user is asked to confirm expunge), which deletes messages marked for deletion.

    There are a few extra complications to this. Some servers remove the
    message upong marking it deleted. However, Alpine marks the message
    deleted after it has saved it.

    As you are taking Eduardo's advice, moving several hundred messages at a time, I would set Save Will Not Delete, then after SUCCESSFULLY copying
    the first group of messages into the desired mbox archive folder, mark
    the messages to be deleted in the remote folder with the bulk selection command first "; N [range]", then apply the deletion mark with the apply command "a d" then MANUALLY expunge messages marked for deletion with
    "x".

    These are additional steps to take but if your connection goes kerflooey during your attempt to copy messages in bulk, this may keep you out of
    some trouble.

    Generally speaking I agree, but I have to go back to what I said earlier. Saving messages is an atomic operation, which means that it either saves
    all messages or saves no messages (for example if the internet goes down
    while the save is in progress), there is no middle ground here, so if
    Alpine tells you that all 500 messages were saved, then that is correct
    and you can delete them (which can be done automatically) and expunge them
    (if the server has not expunged on your behalf upon marking them deleted).

    I hope this clarifies this issue.

    --
    Eduardo
    https://alpineapp.email (web)
    http://repo.or.cz/alpine.git (Git)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)