Creating the view is not a problem. Using that view is.

Remember that messages also need to be exposed through imap. Even if you
set up the views, that still requires some code changes, depending on
the way such global message views would be implemented.

So no: no easy way. The imap code really relies on the current schema.
That schema tries to enforce a strict relationship:

owner -> mailbox -> message -> metadata

Currently mailboxes are implemented as intermediate tables. Simple, but
not very flexible.

Google doesn't do it that way; there messages are in one mailbox per
user, and mailboxes are implemented as 'views' based on flags assigned
to messages.

But we could define a special kind of mailfolder, maybe in a special
namespace, just like we do now for #Public and #User for shared mailboxes:

#View

could be used to define virtual mailboxes that circumvents the
message->mailbox reference

#View/ALL
#View/<flag or label>

I think that would be a very useful new feature. If someone wants to do
this, I'd be happy to review any patches.





On 02-08-14 20:17, Martin Richter wrote:
> Hello, 
> 
> ​
> 
> is there any easy waz to implement a view which shows all e-mails stored
> in a users e-mail account like Lotus Notes does? 
> 
> The only similar thing is a feature request for vFolders which is fairly
> old.
> 
> ​
> 
> Thanks in advance. 
> 
> ​
> 
> Martin
> 
> 
> 
> _______________________________________________
> DBmail mailing list
> [email protected]
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
> 

-- 
________________________________________________________________
Paul J Stevens       pjstevns @ gmail, twitter, github, linkedin
           www.nfg.nl/[email protected]/+31.85.877.99.97

_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to