[haiku-development] Re: [GSoC proposal] IMAP FS - A few queries

  • From: Donn Cave <donn@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 8 Apr 2011 07:47:00 -0700 (PDT)

Quoth Anshul Singhle <xashck@xxxxxxxxx>,

> ... It says here
> that EXPUNGE is an expensive operation and it is recommended that users
> should not EXPUNGE frequently. Therefore, on deletion it would be better  to
> move the file to "trash" and also set the /Deleted flag.

Yes.  EXPUNGE for every remove would be poor design for this reason.

> This might cause a problem. Who will set the trash folder? the user? perhaps
> when the user is setting up his account we can check for a folder named
> "Trash" and if it doesn't exist, we can ask the user to specify the trash
> folder.

I think that's a key point - IMAP protocol itself does not say anything
about trash folders, and the existence of any such thing on IMAP server
accounts is due to client applications.  An initial implemention to the
protocol would, in my opinion, do well to just use the Trash Can metaphor
*per folder* as a way to present messages with \Delete flag set.  (So
remove means apply remote \Delete flag & move locally to folder's trash.)
Other clients should be able to deal with \Delete flags, as it's clearly
the way it's done in IMAP.

        Donn Cave

Other related posts: