Re: Shift-delete feature request

Jan Schneider <[email protected]>
Newsgroups gmane.comp.horde.imp
Message-ID <[email protected]>
Zitat von Jens Wahnes <[email protected]>:

> On Fri, Nov 27 2015, at 11:04:08 +0100, Simon B wrote:
>
>> It's odd, because I thought I had advanced settings shown by default.
>
> AFAIK, showing the advanced prefs can only be enabled for a specific
> session, but not permanently.
>
>> However, I'd still like the ability to permanently delete mail from any
>> folder.
>
> All I can say about that it that from my point of view, that feature is
> difficult to implement, because it would require one to *reliably*
> (re-)set the flags of potentially many mails in a folder since IMAP
> does not allow the deletion of a single arbitrary message per se.  So
> it can only be done by emulating this, i.e. removing any "deleted"
> flags present, flagging the message in question as deleted, doing
> EXPUNGE (or CLOSE, for that matter) and resetting all message flags
> removed previously.  Since there can be several IMAP clients active on
> a mailbox at any given time, it would be very hard to get this right
> since these operations are not atomic.  That's true especially if you
> consider that there could be trouble with the imap connection in
> between the commands required to do this, so this might require to
> implement some "to do list" of IMAP commands that would need to be
> (reliably) stored somewhere until the connection to the IMAP server can
> be re-established.  In essence, I would not consider the effect of this
> worth the effort needed.
>
>
> Jens

You can expunge individual messages too, and we already have a method  
argument in IMP's API to delete and purge individual message. So it  
should be rather simple to implement (keyhandler, AJAX API method,  
help text).

-- 
Jan Schneider
The Horde Project
http://www.horde.org/

-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
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.