Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support subscribing to subfolders #35

Open
freswa opened this issue Jan 1, 2018 · 5 comments
Open

Support subscribing to subfolders #35

freswa opened this issue Jan 1, 2018 · 5 comments

Comments

@freswa
Copy link
Collaborator

freswa commented Jan 1, 2018

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

  • daemon part (will come to that later)
  • plugin part

The plugin only needs to notify the daemon when:

  • mail is flagged as unseen
  • new mail is saved that is unseen
  • mail is moved that is unseen

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
Copy link
Collaborator Author

freswa commented Jan 1, 2018

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
Copy link

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
Copy link
Collaborator Author

freswa commented Jul 17, 2018

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
Copy link

Has there been any development on this?

@titanism
Copy link

@freswa any more updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants