st3fan / dovecot-xaps-daemon

MIT License
162 stars 36 forks source link

Support subscribing to subfolders #35

Open freswa opened 6 years ago

freswa commented 6 years ago

When connected to the dovecot-xaps-plugin, iOS offers to choose which mailboxes/imap subfolders should be pushed. Two parts are needed for this:

The plugin only needs to notify the daemon when:

The daemon then looks up if the client is subscribed to this mailbox/subfolder and sends a notification.

There is still some work to be done: At the moment we only send a notification to the client, which then automatically fetches the INBOX. But even though other folders are marked as subscribed, they do not get fetched upon notification. So there must be some information that needs to be added to the notification which then triggers a certain folder to be fetched.

freswa commented 6 years ago

We use payload.APS.AccountId = reg.AccountId where AccountId is a not documented parameter only for the mail app. I think that there is probably more undocumented there...

markus-meissner commented 6 years ago

Hi, a customer of mine is very interested in this feature and willing to invest some money in order to bring this forward.

What would be the next action to do here in order to solve this issue?

Kind regards Markus

freswa commented 6 years ago

Hey @markus-meissner this is being havily worked on. The main problem is to find out how Apple implemented subfolder push. I can give you some more details via email. freswa

SteffanCline commented 3 years ago

Has there been any development on this?

titanism commented 1 month ago

@freswa any more updates?