List of queries that we would need for the read only mail client
Closed, ResolvedPublic

Description

we just need flat lists for now

Folder List

  • all accounts
  • all folders from an account

Properties:

  • "folder/account name"
  • "icon-name"

MailList

  • unread mail for all accounts
  • imporant mail from all account
  • all mail from 1 Folder (e.g. inbox)
  • all mail that matches a given search string
  • thread leader that contains unread mail for all accounts
  • thread leader that contains imporant mail from all account
  • all thread leader from 1 Folder (e.g. inbox)

Properties:

  • "sender name"
  • "sender email"
  • "subject"
  • "date"
  • "is unread"
  • "is important"

thread leader results should also have

  • number of mails in theard property
  • list of names that participated in the thread

MailView

  • all properties of a single mail
  • all properties of all mail that belong to a thread

Properties

  • all there is
mbohlender updated the task description. (Show Details)
mbohlender raised the priority of this task from to Needs Triage.
mbohlender added a project: Kube.
mbohlender assigned this task to cmollekopf.
mbohlender added a subscriber: mbohlender.
cmollekopf moved this task from Backlog to In Progress on the Kube board.Nov 23 2015, 1:20 PM
cmollekopf moved this task from In Progress to Backlog on the Kube board.
cmollekopf moved this task from Backlog to In Progress on the Kube board.Dec 3 2015, 3:59 PM

We have implemented:

  • mail
    • sender: QString
    • senderName: QString
    • subject: QString
    • date: QString
    • unread: bool
    • important: bool
    • folder: QByteArray

*folder

  • name: QString
  • icon: QByteArray
  • parent: QByteArray

The dummy resource creates a bunch of folders with mails on sync.

cmollekopf moved this task from In Progress to Done on the Kube board.Dec 4 2015, 3:59 PM

We also need the Folder / Mail uid so that we can communicate between the modules

We also need the Folder / Mail uid so that we can communicate between the modules

The folder property of the mail contains the Akonadi2::ApplicationDomain::Folder::identifier(), so that's what your looking for.
You can get the ApplicationDomainType from the model as well. Try to use the Akonadi2::ApplicationDomain::ApplicationDomainType object directly, and avoid using the identifier as far as possible (you'll need it when constructing the query). We'll want to avoid having the identifier stored anywhere, as it would i.e. not persist over the akonadi db getting deleted and recreated again.

The Mail property mimeMessage now contains the path to the mime message.

cmollekopf moved this task from Done to Backlog on the Kube board.Nov 8 2016, 3:46 PM
cmollekopf closed this task as Resolved.Feb 10 2017, 1:34 PM