On 2010-01-25, at 15:10 , Thomas Worrall wrote: > > I've been thinking a bit about gmail. Some folks (including me) want a > really good gmail client. (For the record, I also want a standard IMAP > client, but that's not relevant to this issue.) Gmail does odd things > regarding mapping folders to labels. > <snip>
> To assign labels, I propose that Letters has a standard labels UI. On > a normal IMAP server we do something (assign a custom header? Dunno) > to apply the label. On Gmail, our plugin intercepts the Apply Label > action and sends the IMAP command to move it to the appropriate > folder. <snip> > Thoughts? I have already proposed that source list items (folders, smart or not, labels) be all implemented on top of searches. That's tangential to what we have here, except for another thing I mentioned in that email: To be able to implement normal folders as searches, we need to be able to define how the source item responds to certain events. That's also true if we want to implement labels that way. Basically the events that you need to respond to are put in and put out (generally a drag/drop operation), and you have to handle a copy/move modifier, which in case of folders means exactly that, in case of gmail labels is slightly more complicated but workable. So, basically when your source list item that represents a label receives a drop of an inbox message, it removes it from inbox and adds the label. When it receives a message from another label, you add the new label, and you modify the operation with the command key to have the original label either kept or removed. _______________________________________________ [email protected] mailing list List help: http://lists.ranchero.com/listinfo.cgi/email-init-ranchero.com
