• Deleting Yahoo Mail Expunges immediately

    From Sriraaman Sridharan@21:1/5 to All on Thu Dec 8 11:38:15 2022
    Hi,

    I am using Alpine 2.22 to check Yahoo Mail using IMAP. Everything works fine except delete. When I delete an Yahoo email from Alpine, it is deleted and expunged immediately. It is not marked for delete or moved to Trash. As far as I can tell, the
    message is gone forever.

    How can I prevent this? I would like to either mark the message for delete and then expunge or move it to Trash. This does not happen with GMail, where I have set the IMAP Auto-Expunge off.

    Here's the IMAP debug from Alpine, where it appears to EXPUNGE automatically after STORE +Flags (\Deleted):

    IMAP DEBUG 11:23:21 12/8: 0000000b FETCH 4386 BODY[1]
    IMAP DEBUG 11:23:22 12/8: * 4386 FETCH (FLAGS (\Seen $NotJunk) UID 303318 BODY[1] {14}
    IMAP DEBUG 11:23:22 12/8: )
    IMAP DEBUG 11:23:22 12/8: 0000000b OK FETCH completed
    IMAP DEBUG 11:23:25 12/8: 0000000c STORE 4386 +Flags (\DELETED)
    IMAP DEBUG 11:23:25 12/8: * 4386 FETCH (FLAGS (\Deleted \Seen $NotJunk) UID 303318)
    IMAP DEBUG 11:23:25 12/8: * 4386 EXPUNGE
    IMAP DEBUG 11:23:25 12/8: * 4385 EXISTS
    IMAP DEBUG 11:23:26 12/8: 0000000c OK STORE completed
    IMAP DEBUG 11:23:34 12/8: 0000000e LOGOUT
    IMAP DEBUG 11:23:34 12/8: * BYE IMAP4rev1 Server logging out
    IMAP DEBUG 11:23:34 12/8: 0000000e OK LOGOUT completed

    Any help would be appreciated.

    Thanks,
    Sri.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eduardo Chappa@21:1/5 to Sriraaman Sridharan on Thu Dec 8 19:59:54 2022
    On Thu, 8 Dec 2022, Sriraaman Sridharan wrote:

    Here's the IMAP debug from Alpine, where it appears to EXPUNGE
    automatically after STORE +Flags (\Deleted):

    The first character of the line is a "*" which means it is an untagged
    reply from the server, that is, the server it telling you that the
    messages 4386 and 4385 were expunged. You did not expunge them, the server
    did. I imagine Yahoo has a setting to stop the expunge from happening.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sriraaman Sridharan@21:1/5 to Eduardo Chappa on Thu Dec 8 21:40:19 2022
    Thank you Eduardo. That's what I thought. I've searched a lot, and I couldn't find a setting in Yahoo to turn off auto-expunge.

    Question for you: Is there any way to turn off or remap the 'D' (delete) key in Alpine. I accidentally hit D this morning, and it deleted the message forever.

    Thanks,
    Sri.

    On Thursday, December 8, 2022 at 6:59:58 PM UTC-8, Eduardo Chappa wrote:
    On Thu, 8 Dec 2022, Sriraaman Sridharan wrote:

    Here's the IMAP debug from Alpine, where it appears to EXPUNGE automatically after STORE +Flags (\Deleted):
    The first character of the line is a "*" which means it is an untagged
    reply from the server, that is, the server it telling you that the
    messages 4386 and 4385 were expunged. You did not expunge them, the server did. I imagine Yahoo has a setting to stop the expunge from happening.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eduardo Chappa@21:1/5 to Sriraaman Sridharan on Fri Dec 9 07:39:04 2022
    On Thu, 8 Dec 2022, Sriraaman Sridharan wrote:

    Question for you: Is there any way to turn off or remap the 'D' (delete)
    key in Alpine. I accidentally hit D this morning, and it deleted the
    message forever.

    There is no way to do this unless you patch Alpine. There is a patch that allows you to remap keys in different screens. Since the "D" key is
    available in two screens (index and message view) you would have to do it twice. You can remap it to do anything. For example, to save the message
    to a folder and then delete the message.

    This is a link to the patch

    https://alpineapp.email/alpine/info/rules.html

    I hope this helps.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sriraaman Sridharan@21:1/5 to Eduardo Chappa on Fri Dec 9 17:08:02 2022
    Hi Eduardo,

    Perfect! Thank you. That'll work. I'll check out the patch.

    Thanks,
    Sri.


    On Friday, December 9, 2022 at 6:39:08 AM UTC-8, Eduardo Chappa wrote:
    On Thu, 8 Dec 2022, Sriraaman Sridharan wrote:

    Question for you: Is there any way to turn off or remap the 'D' (delete) key in Alpine. I accidentally hit D this morning, and it deleted the message forever.
    There is no way to do this unless you patch Alpine. There is a patch that allows you to remap keys in different screens. Since the "D" key is
    available in two screens (index and message view) you would have to do it twice. You can remap it to do anything. For example, to save the message
    to a folder and then delete the message.

    This is a link to the patch

    https://alpineapp.email/alpine/info/rules.html

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sriraaman Sridharan@21:1/5 to Sriraaman Sridharan on Fri Dec 9 19:37:19 2022
    I installed the Rules patch and rebuilt Alpine. I added a simple rule to map Delete key to Save like this:

    key-definition-rules="_SCREEN_ == {index} && _FOLDER_ == {Yahoo} && _PKEY_ == {d} => _COMMAND_{s}"

    and it works great! I added similar rule for {text} screen.

    Thanks Eduardo!

    Regards,
    Sri.


    On Friday, December 9, 2022 at 5:08:03 PM UTC-8, Sriraaman Sridharan wrote:
    Hi Eduardo,

    Perfect! Thank you. That'll work. I'll check out the patch.

    Thanks,
    Sri.
    On Friday, December 9, 2022 at 6:39:08 AM UTC-8, Eduardo Chappa wrote:
    On Thu, 8 Dec 2022, Sriraaman Sridharan wrote:

    Question for you: Is there any way to turn off or remap the 'D' (delete) key in Alpine. I accidentally hit D this morning, and it deleted the message forever.
    There is no way to do this unless you patch Alpine. There is a patch that allows you to remap keys in different screens. Since the "D" key is available in two screens (index and message view) you would have to do it twice. You can remap it to do anything. For example, to save the message
    to a folder and then delete the message.

    This is a link to the patch

    https://alpineapp.email/alpine/info/rules.html

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sriraaman Sridharan@21:1/5 to Sriraaman Sridharan on Fri Dec 9 21:19:40 2022
    How do I specify a folder collection in a save rule? The following rule defaults to <Mail>/YahooTrash

    save-rules="_FOLDER_ == {Yahoo} => _SAVE_{YahooTrash}"

    but I would like to save in Incoming-Folders/YahooTrash.

    Thanks,
    Sri.



    On Friday, December 9, 2022 at 7:37:20 PM UTC-8, Sriraaman Sridharan wrote:
    I installed the Rules patch and rebuilt Alpine. I added a simple rule to map Delete key to Save like this:

    key-definition-rules="_SCREEN_ == {index} && _FOLDER_ == {Yahoo} && _PKEY_ == {d} => _COMMAND_{s}"

    and it works great! I added similar rule for {text} screen.

    Thanks Eduardo!

    Regards,
    Sri.
    On Friday, December 9, 2022 at 5:08:03 PM UTC-8, Sriraaman Sridharan wrote:
    Hi Eduardo,

    Perfect! Thank you. That'll work. I'll check out the patch.

    Thanks,
    Sri.
    On Friday, December 9, 2022 at 6:39:08 AM UTC-8, Eduardo Chappa wrote:
    On Thu, 8 Dec 2022, Sriraaman Sridharan wrote:

    Question for you: Is there any way to turn off or remap the 'D' (delete)
    key in Alpine. I accidentally hit D this morning, and it deleted the message forever.
    There is no way to do this unless you patch Alpine. There is a patch that allows you to remap keys in different screens. Since the "D" key is available in two screens (index and message view) you would have to do it twice. You can remap it to do anything. For example, to save the message to a folder and then delete the message.

    This is a link to the patch

    https://alpineapp.email/alpine/info/rules.html

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eduardo Chappa@21:1/5 to Sriraaman Sridharan on Sat Dec 10 08:26:42 2022
    On Fri, 9 Dec 2022, Sriraaman Sridharan wrote:

    How do I specify a folder collection in a save rule? The following rule defaults to <Mail>/YahooTrash

    save-rules="_FOLDER_ == {Yahoo} => _SAVE_{YahooTrash}"

    but I would like to save in Incoming-Folders/YahooTrash.

    That is a very good question. There is no such language to do that, but I
    see now it is needed. Let me think little bit about how to do that. If
    you want to suggest a solution, I'd love to read your ideas too.

    Thank you!

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sriraaman Sridharan@21:1/5 to Eduardo Chappa on Sat Dec 10 10:06:20 2022
    My suggestion would be something like <Incoming-Folders>/YahooTrash for the folder name:

    save-rules=_FOLDER_ == {Yahoo} => _SAVE_{<Incoming-Folders>/YahooTrash}

    But I tried a temporary workaround and it works! I modified the key-rule to insert a control-p, and it now offers the Incoming-Folders as default save:

    key-definition-rules="_SCREEN_ == {index} && _FOLDER_ == {Yahoo} && _PKEY_ == {d} => _COMMAND_{s,"^P"}"

    Thanks,
    Sri.

    On Saturday, December 10, 2022 at 7:26:46 AM UTC-8, Eduardo Chappa wrote:
    On Fri, 9 Dec 2022, Sriraaman Sridharan wrote:

    How do I specify a folder collection in a save rule? The following rule defaults to <Mail>/YahooTrash

    save-rules="_FOLDER_ == {Yahoo} => _SAVE_{YahooTrash}"

    but I would like to save in Incoming-Folders/YahooTrash.
    That is a very good question. There is no such language to do that, but I
    see now it is needed. Let me think little bit about how to do that. If
    you want to suggest a solution, I'd love to read your ideas too.

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

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