Push issues and no push setting available

Hi,

First of all, I want to thank you all for this great application. You’re doing amazing work.

I am using version v21.1 on Android 17.0 with a Google Pixel 9a. All my email accounts are configured via IMAP.

However, I do not receive any emails via push from any of the IMAP servers of the various providers (Apple, Google, etc.).

There is no Push setting in the “Fetching mail” menu, nor any feature resembling it. The only existing setting is ‘Folder poll frequency’, but this does not seem related to push.

Do you have any idea what might be causing this?

Kind regards,

Hi @foxyfox

Push is a per folder setting.

You can find a guide to set it up linked here.

I am having the exact same issue. I followed the directions on that page you linked but when I click the slider for push on my inbox folder it does nothing. I get no bell icon on the top. Nothing happens.

@Sentinel

Are you using pop to connect to your mail provider. The Push service is only available when using Imap.

No, sorry I should have provided more info as the OP. I have my own domain so I am the email provider. I use IMAP only.

I’m using K-9 Mail version 22.0 on Android 15.

Hi @Sentinel

Enabling Push ON for folder normally immediately shows a notification in Androids notification shade.

The app relies on IMAP Idle (RFC2177). Does your email service support this?

To check if it advertises IDLE capability. Type the below is a command prompt.
The below example uses Gmail. Change the server name and port to your own.

openssl s_client -connect imap.gmail.com:993 -crlf

a003 CAPABILITY

You should see “IDLE” in the response if supported.

a003 CAPABILITY
* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER
a003 OK Thats all she wrote! e09e53db590de-8e4fd249aeamb104071539d85

You can also check this in K-9’s debug log as an alternative.

  1. Navigate to settings > general settings > debugging. Toggle ON Enable debug logging
  2. Toggle Push ON for Inbox
  3. Return to the debug options page at step 1
  4. Press the three dot menu > Export log

Search the logs for “Capability”. You should see IDLE in the reply similar to the below.

08-20 23:50:32.008 10979 11049 D RealImapConnection: Connecting to imap.gmail.com as imap.gmail.com/[REDACTED]
08-20 23:50:32.009 10979 14381 V PushServiceManager: PushServiceManager.start()
08-20 23:50:32.010 10979 14381 V PushServiceManager: ..PushService already running
08-20 23:50:32.010 10979 14381 V BootCompleteManager: Enable BootCompleteReceiver
08-20 23:50:32.361 10979 11049 V RealImapConnection: conn250675661 <<< #null# [OK, Gimap ready for requests from [REDACTED] cdcc0902adbc2-4348bcf1208mb69526107d76]
08-20 23:50:32.362 10979 11049 I RealImapConnection: Did not get capabilities in banner, requesting CAPABILITY for conn250675661
08-20 23:50:32.365 10979 11049 V RealImapConnection: conn250675661>>> 1 CAPABILITY
08-20 23:50:32.426 10979 11049 V ImapResponseParser: conn250675661<<<#null# [CAPABILITY, IMAP4rev1, UNSELECT, IDLE, NAMESPACE, QUOTA, ID, XLIST, CHILDREN, X-GM-EXT-1, XYZZY, SASL-IR, AUTH=XOAUTH2, AUTH=PLAIN, AUTH=PLAIN-CLIENTTOKEN, AUTH=OAUTHBEARER]
08-20 23:50:32.427 10979 11049 V ImapResponseParser: conn250675661<<<#1# [OK, Thats all she wrote! cdcc0902adbc2-4348bcf1208mb69526107d76]
08-20 23:50:32.428 10979 11049 D RealImapConnection: Saving [NAMESPACE, QUOTA, AUTH=XOAUTH2, UNSELECT, X-GM-EXT-1, SASL-IR, XLIST, CHILDREN, AUTH=PLAIN, AUTH=PLAIN-CLIENTTOKEN, IMAP4REV1, IDLE, XYZZY, ID, AUTH=OAUTHBEARER] capabilities for conn250675661

CAPABILITY, IMAP4rev1, UNSELECT, IDLE, NAMESPACE

Thank you @Zeroid for your prompt answer.

I’ve set it up on all my email accounts (13) and terminal (3)… patience was requested. :grin:

That works fine. :face_savoring_food:

It’s really surprising and unexpected that this feature isn’t enabled by default in an IMPA inbox.

Hi @foxyfox

Great to hear you managed to set it up.

The TB team have recently made the decision to enable Push by default for new accounts in an upcoming release. See here for more information .

Does this setting now enabled is also saved when I export account settings ?

Export settings: An other so useful feature that you implemented :folded_hands:

Your Push folder preferences are saved in the settings export :+1:

OK so first problem is that I am hijacking the OP topic here and I apologize greatly for that. His issue is resolved so I will start another topic. Please join me over there. My apologies.