Unable to undelete emails from roundcubemail
Lance Charette
lcharette at slingshottech.net
Wed Sep 20 13:17:14 CEST 2017
On 9/20/2017 1:51 AM, Timotheus Pokorra wrote:
> Hello Homer,
>
>
>> The issue is that they want to un-delete these emails and I have read
>> that there is suppose to be a way to do this within roundcubemail by
>> right clicking on the folder and selecting 'un-delete' however this
>> option does not exist in either of two different Kolab 3.4
>> installations. (I will add that I have done recent (withing last 2
>> weeks) updates of both services for the Kolab environment.
>
> I have looked at https://github.com/roundcube/roundcubemail/issues/1635
> and was able to recover a deleted email like this in Kolab 3.4:
>
> Just click into the space, where there is usually the star for marking
> an email as read or unread.
> Once you click there, the email changes from grey to black, and I
> assume it is undeleted.
>
> Does this work for you?
>
> It does not work for multiple emails though.
> Ok, here is an open request for that functionality:
> https://github.com/roundcube/roundcubemail/issues/5133
>
> I looked at cyrus unexpunge as well.
> According to
> https://serverfault.com/questions/377748/how-deleted-flag-can-be-unset-for-all-mails-in-cyrus-imapd-mailbox
> Roundcube sets a silent flag with the name Deleted: -FLAGS.SILENT
> (\Deleted)
> see also https://www.cyrusimap.org/2.5/imap/admin/sop/deleting.html
> and
> https://cyrusimap.org/imap/reference/faqs/o-deleted-expired-expunged-purged.html
> It seems that the mails marked for deletion are not expunged yet, and
> therefore cannot be unexpunged.
> We need to unset the Deleted flag somehow different.
>
> I found the imap_undelete function in PHP:
> http://php.net/manual/en/function.imap-undelete.php
> You could write yourself or ask someone to write a little PHP script
> that opens the mailbox, and then calls imap_undelete on each message.
>
> Timotheus
>
> ----------------------------------------------------------------
> Diese Nachricht wurde versandt mit Webmail von www.tbits.net.
> This message was sent using webmail of www.tbits.net.
>
Timotheus,
I failed in my last response to acknowledge that I could indeed click in
the space where the star for marking an email as read or unread does
indeed 'un-mark' the email for deletion. Quite an obscure option in my
opinion but it does work. It will be a very tedious and time consuming
endeavor however to perform this action on each one of 100's if not
1000's of emails that were mistakenly marked for deletion by the user.
Given the life of roundcubemail and it's lengthy history, I am
astoundingly surprised that this isn't an issue that was already long
since addressed.... that is, the simple inclusion of an 'un-delete'
option in the pop up menu right below the 'delete' option.
Theoretically the code is already there to make this simple addition as
it it merely toggling the flag that was set for selected messages during
a delete action.
I would settle for such a capability at the command line however this is
a function that should be a natural fit in the roundcubemail app as it
is by far not the first time I have seen emails, even complete folders,
mistakenly marked for deletion.
More information about the users
mailing list